Jump to content

Problems Installing PEAR


Recommended Posts

Hi, I have had quite a few problems installing PEAR on my local machine and would appreciate it greatly if someone could help me out.

 

I am using: PHP 5.2.0 , Apache 2, Windows XP, as a local server (and all are currently working fine).

 

I first tried running go-pear.bat in the PHP5 folder, specified to install as a local copy, then left the file layout as default, then got a whole bunch of errors which mostly state:

"Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268".

Which is bollocks  :'(

 

So I tried going to http://pear.php.net/go-pear, and then saving this as go-pear.php in my htdocs folder, then ran http://localhost/go-pear.php. This did not ran like the script says, and only displayed the code in my web browser (it didnt seem to parse - I have already set up the MIME types, etc, PHP is working fine on itself).

If anyone could help me out, or point me in the right direction (other than http://pear.php.net/manual/en/installation.cli.php, which just tells me to do what I have already done) I would greatly appreciate it!

 

Cheers,

Justin.

Link to comment
https://forums.phpfreaks.com/topic/55411-problems-installing-pear/
Share on other sites

Sorry guys,

just thought I should mention I just managed to get the web installer working (http://localhost/pear/go-pear.php).

However I still encountered problems, when I entered the localhost information in the web installer (localhost:8080) I received the error

 

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:8080 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

) in C:\apache2\htdocs\pear\go-pear.php on line 1031

 

Ahh why is it anything related to installing PHP turns into a massive headache  :'(

 

Any help would be greatly appreciated

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.