XAMPP Re Instal Problems

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP Re Instal Problems

Postby addACUMEN » 27. March 2007 14:07

I have been advised to uninstall and re-install XAMPP on Windows because of some problems I am having with PEAR.

All had been working well for PHP MySQL code. The problems arose when I moved into go-pear territory. First time round it appeared that the PEAR include path was incorrectly set to

.,C:\Program Files\xampp\php\pear\


When changed to a better value by overwriting the .

C:\Program Files\xampp\php\pear,C:\Program Files\xampp\php\pear\


circumstances improved but using go-pear.php or pear produced long error reports but overall produced the required results with repeated attempts. And I was making progress with PEAR.

Then there was a package I wanted but could not load. Which led to the advice to uninstall and re-instal.

I used the Windows uninstal process after I had stored my files elsewhere. Downloaded the XAMPP package and installed it. Now go-apache.bat produces the following output.

Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
apache.exe: Syntax error on line 477 of C:/Program Files/xampp/apache/conf/httpd
.conf: Syntax error on line 7 of C:/Program Files/xampp/apache/conf/extra/httpd-
xampp.conf: Cannot load C:/xampp/apache/bin/php5apache2.dll into server: The spe
cified module could not be found.

Apache konnte nicht gestartet werden
Apache could not be started
Press any key to continue . . .


The reason it could not be found is because its correct address should be

C://Program Files/xampp/apache/bin/php5apache2.dll


What do I need to do to correct this problem?

My PEAR problem was that the include path was not correct and I needed to edit it. This appears to be a similar problem although the missing element was not the same for each case.

Am I committing a fundamental error?
Thank you for your help

Tony D
addACUMEN
 
Posts: 15
Joined: 02. March 2007 22:26
Location: Wengen, Switzerland

Postby Wiedmann » 27. March 2007 14:15

.,C:\Program Files\xampp\php\pear\

The correct include path for your PHP is:
Code: Select all
include_path = ".;C:\Program Files\xampp\php\pear\"


Downloaded the XAMPP package and installed it. Now go-apache.bat produces the following output.

- what file have you downloaded?
- how have you installed XAMPP?
- you have changed something else?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby addACUMEN » 27. March 2007 14:28

Thank you. We may be developing two threads here.

The include path.

The change I made was recommended initially by Mark in the PEAR forum and was then inserted automatically by the process to create the PEAR installer.

Prior to making the change the installer process was reporting that it could not include files it required.

XAMPP installation.

The file I used was xampp-win32-1.6.0a.exe extracted from its zip

I simply ran that file to instal XAMPP

In view of my previous problems I have changed the php.ini files under Apache and php but I do not believe I have changed anything else. I moved the directories I had created under htdocs to a safe place for later re-installation.
Thank you for your help

Tony D
addACUMEN
 
Posts: 15
Joined: 02. March 2007 22:26
Location: Wengen, Switzerland

Postby Wiedmann » 27. March 2007 14:41

The change I made was recommended initially by Mark in the PEAR forum and was then inserted automatically by the process to create the PEAR installer.

He is wrong.
1) always put the "." into the include_path
2) paths are separated with ";" not with ","
3) include the same path twice makes no sense

The file I used was xampp-win32-1.6.0a.exe extracted from its zip
I simply ran that file to instal XAMPP

You have read the install instructions and execute "setup_xampp.bat" too?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby addACUMEN » 27. March 2007 15:42

Carl

Blushing self abasement.

Having apparently installed XAMPP correctly I thought I would just do it again. It appears that, in fact, neither attempt was performed correctly.

Following your guidance it installed and Apache started correctly.

I then went off to PEAR. My previous go-pear.bat had produced streams of errors This time it was much cleaner but not perfect. It produced this:


Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :

Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix) : C:\Program Files\xampp\php
2. Binaries directory : C:\Program Files\xampp\php
3. PHP code directory ($php_dir) : C:\Program Files\xampp\php\pear
4. Documentation directory : C:\Program Files\xampp\php\pear\docs
5. Data directory : C:\Program Files\xampp\php\pear\data
6. Tests directory : C:\Program Files\xampp\php\pear\tests
7. Name of configuration file : C:\Program Files\xampp\php\pear.ini
8. Path to CLI php.exe : C:\Program Files\xampp\php\.

1-8, 'all' or Enter to continue:
Beginning install...

Notice: unserialize(): Error at offset 73 of 368 bytes in phar://go-pear.phar/PE
AR/Config.php on line 1007

Fatal error: Call to undefined method PEAR_Error::set() in phar://go-pear.phar/P
EAR/Start.php on line 263
Press any key to continue . . .


I then created go-pear.php and ran that with many fewer errors than previously but still it did not complete cleanly. Like this:

C:\Program Files\xampp\php>php go-pear.php
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.

Use 'php go-pear.php local' to install a local copy of PEAR.

Go-pear also lets you download and install the PEAR packages bundled
with PHP: MDB2.


If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

*WARNING*
We found php.exe under C:\Program Files\xampp\php\.\php.exe, it uses an unknown
SAPI. PEAR commandline
tool has not been tested with it, if you have a CLI (or CGI) php.exe available,
we strongly recommand to use it.


Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation prefix : C:\Program Files\xampp\php
2. Binaries directory : $prefix
3. PHP code directory ($php_dir) : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
7. Temporary files directory : $prefix\temp
8. php.exe path : C:\Program Files\xampp\php\.\php.exe

1-8, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: MDB2.
Would you like to install these as well? [Y/n] : y

Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
Extracting installer..................ok

Fatal error: Call to undefined method PEAR_Error::set() in C:\Program Files\xamp
p\php\go-pear.php on line 782

C:\Program Files\xampp\php>pear list

Notice: unserialize(): Error at offset 73 of 368 bytes in Config.php on line 100
3
ERROR: The default config file is not a valid config file or is corrupted.




There are only 3 config.php files below XAMPP. Line 100 of one of them is comment, for the other two neither is longer than 70 characters.

Can you shed any light on this conundrum?
I will also report to the PEAR Forum
Thank you for your help

Tony D
addACUMEN
 
Posts: 15
Joined: 02. March 2007 22:26
Location: Wengen, Switzerland

Postby addACUMEN » 27. March 2007 15:54

Apologies again

Both the references are to line numbers larger than 1000,

Only php/PEAR/PEAR/config.php is that big and there is an unserialize on line 1003 - so that is the culprit though I do not understand enough to know why it is a culprit.

Though the character counting makes no sense at all.

I think this is PEAR territory rather than XAMPP

So thank you very much for all your help
Thank you for your help

Tony D
addACUMEN
 
Posts: 15
Joined: 02. March 2007 22:26
Location: Wengen, Switzerland

Postby Wiedmann » 27. March 2007 16:19

I think this is PEAR territory rather than XAMPP

Both...

Well, I can make a batchfile to install PEAR in a correct way. But first be sure, you have clean and correct working XAMPP installation.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 89 guests