WAMP crashes easily those days: Some notes on PHP configuration
I’ve upgrade my WAMP(Windows+Apache+MySQL+PHP) to lastest versions, but Apache crashes more often then it used to be due to incorrect configuring PHP.
Now I’ve finially got a stably working development environment. And here is some notes:
-
go-pear.batdose not work.When initializing as usual using
go-pear.batcommand, I got an error message:1
2phar "E:\HTTPD\php-5.3.0-Win32-VC9-x86\PEAR\go-pear.phar" does not have a signature
PHP Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in E:\HTTPD\php-5.3.0-Win32-VC9-x86\PEAR\go-pear.phar on line 1236So,
go-pear.bardid not work for me, but:php -dphar.require_hash=0 PEAR\go-pear.pharis all right. -
Xdebugmakes Apache crashes everytime.As I said, I’ve upgraded all components to it’s lastest version: Apache, version 2.2.13 form offical site, PHP, version VC9 x86 Thread Safe, MySQL, version 5.1.38-community.
Following Xdebug manual, I have to download the one matches the PHP version I’m using. So, I downloaded Xdebug 2.0.5 5.3 VC9 (32 bit), made modification to php.ini to enable Xdebug, and restart Apache.
From now on, Apache crashed everytime I call
phpinof()function. I’ve tried some solution from Google ,but none of them works. Though, one page remains me of the version of PHP. And I found this on PHP for Windows download page:Which version do I choose?
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP
If you are using PHP with IIS you should use the VC9 versions of PHP
Change my PHP from VC6 to VC9, re-configure all settings and download Xdebug 2.0.5 5.3 VC96(32 bit), it works!
-
Can’t make new folder when installing PEAR.
After solve problems above, I came to a new one, When installing PEAR, ater set the dirs, PHP began to download and install PEAR components, installation programe breaks and shows:
1
2
3
4PHP Warning: mkdir(): No such file or directory in phar://E:/HTTPD/php-5.3.0-Win32-VC6-x86/PEAR/go-pear.phar/System.php on line 277
Warning: mkdir(): No such file or directory in phar://E:/HTTPD/php-5.3.0-Win32-VC6-x86/PEAR/go-pear.phar/System.php on line 277
Unable to create Temporary directory for processing E:\HTTPD\php\PEAR\tmp.
Run this script as administrator or pick another location.I’m sure nothing is wrong about dir premission. Solved this problem, I’m also sure that few people may face this, because it is due to the immature hardlink mechanism on Windows Server 2008.
I made hardlink named php to folder php-5.3.0-Win32-VC6-x86 and I was running the programe in php folder. After I change my current folder to php-5.3.0-Win32-VC6-x86, it goes well.
Conclusion: harklink on Windows is still a load of crap.
awesome, i suddenly found your english is pretty awesome now~
[Reply]
净空无道 Reply:
October 1st, 2009 at 21:01
FT~~~俺的英国历史是灰常灰常的破的~~~~
[Reply]