Jump to content

Trying to install PEAR on Wamp Server and I see this...


theITvideos

Recommended Posts

Hi there,

 

I am  trying to install PEAR on my Wamp server. Everything is working fine. Its just that I don't have PEAR installed on my WAMP.

 

I double-clicked the go-pear.bat file located in:

 

C:\wamp\bin\php\php5.3.0

 

And I get this error in my command prompt :=

 

phar "C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar" does not have a signaturePHP W
arning:  require_once(phar://go-pear.phar/index.php): failed to open stream: pha
r error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\
wamp\bin\php\php5.3.0\PEAR\go-pear.phar on line 1236

Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha
r error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\

wamp\bin\php\php5.3.0\PEAR\go-pear.phar on line 1236

Press any key to continue . . .

 

Kindly let me know how I can fix this. See the Screenshots I've taken.

 

All comments and feedback are welcomed. :)

 

Thank you :)

 

[attachment deleted by admin]

Link to comment
Share on other sites

Change your go-pear.bat file to this:

 

@ECHO OFF
set PHP_BIN=php.exe
%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar
pause

 

I have tried installing Pear by dbl-clicking the go-pear.bat file and the installation is shown in the Screenshots which I've attached.

 

I believe it is installed as I've registered Pear by double-clicking 'PEAR_ENV.reg' file.  as shown in the Screenshot.

 

Now I am using a php file that uses PEAR and I still get the PEAR error as if it is not properly installed.

 

Can you see what is missing here.

 

Thank you :)

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

Installing PEAR has it's side-effects on Windows. The include_path is wrong, change it to:

 

 

.;C:\Wamp\bin\php\php5.3.0\PEAR

 

 

In your php.ini. If you have a default installation of WAMP find php.ini in your bin\apache\apache2.2.11\bin\ open it and search for include_path. The end result should look like:

 

 

; UNIX: "/path1:/path2";include_path = ".:/php/includes";; Windows: "\path1;\path2";include_path = ".;c:\php\includes";; PHP's default setting for include_path is ".;/path/to/php/pear"; http://php.net/include-pathinclude_path = ".;C:\Wamp\bin\php\php5.3.0\PEAR"

 

 

Chances are there isn't an include_path in this case just write it! Copy this line and paste it also in the php.ini located under bin\php\php5.3.0 this will make this settings effective under CLI.

Link to comment
Share on other sites

Installing PEAR has it's side-effects on Windows. The include_path is wrong, change it to:

 

 

.;C:\Wamp\bin\php\php5.3.0\PEAR

 

 

In your php.ini. If you have a default installation of WAMP find php.ini in your bin\apache\apache2.2.11\bin\ open it and search for include_path. The end result should look like:

 

 

; UNIX: "/path1:/path2";include_path = ".:/php/includes";; Windows: "\path1;\path2";include_path = ".;c:\php\includes";; PHP's default setting for include_path is ".;/path/to/php/pear"; http://php.net/include-pathinclude_path = ".;C:\Wamp\bin\php\php5.3.0\PEAR"

 

 

Chances are there isn't an include_path in this case just write it! Copy this line and paste it also in the php.ini located under bin\php\php5.3.0 this will make this settings effective under CLI.

 

 

That is exactly what is did and it worked!!!!

 

I am so happy!

 

Thanks for the help bro. You are great!! :o)

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.