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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.