justinmarkdaniel Posted June 13, 2007 Share Posted June 13, 2007 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. Quote Link to comment Share on other sites More sharing options...
justinmarkdaniel Posted June 13, 2007 Author Share Posted June 13, 2007 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 Quote Link to comment Share on other sites More sharing options...
justinmarkdaniel Posted June 14, 2007 Author Share Posted June 14, 2007 Not to worry folks - I just downloaded the latest version of php and ran go-pear.bat and it works now ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.