{"id":1125,"date":"2011-01-07T15:56:00","date_gmt":"2011-01-07T07:56:00","guid":{"rendered":"\/?p=1125"},"modified":"2011-01-07T15:56:00","modified_gmt":"2011-01-07T15:56:00","slug":"1125","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/other\/1125.html","title":{"rendered":"\u4fee\u6539xampp\u4e2d\u7684php5.3\u4e3aphp 5.2\u7248\u672c"},"content":{"rendered":"<\/p>\n
Thanks for the answer. I just got this working on Windows XP, with a few modifications. Here are my steps.<\/p>\n
(snip)<\/p>\n
<IfModule<\/span> <\/span>mime_module<\/span>><\/span>
LoadModule php5_module \"\/xampp\/apache\/bin\/php5apache2_2.dll\"
AddType application\/x-httpd-php-source .phps
AddType application\/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt
<\/span><Directory<\/span> <\/span>\"\/xampp\/htdocs\/xampp\"<\/span>><\/span>
<\/span><IfModule<\/span> <\/span>php5_module<\/span>><\/span>
<\/span><Files<\/span> <\/span>\"status.php\"<\/span>><\/span>
php_admin_flag safe_mode off
<\/span><\/Files><\/span>
<\/span><\/IfModule><\/span>
<\/span><\/Directory><\/span>
<\/span><\/IfModule><\/span>
<\/span><\/code><\/pre>\n\uff08\u6ce8\u610f\uff09\u5220\u9664\u539f\u6587\u4ef6\u7684PHP\u914d\u7f6e<\/p>\n
#
# PHP-Module setup
#
LoadFile “D:\/xampp\/php\/php5ts.dll”
LoadModule php5_module modules\/php5apache2_2.dll<\/p>\n
<IfModule php5_module>
<FilesMatch “\\.php$”>
SetHandler application\/x-httpd-php
<\/FilesMatch>
<FilesMatch “\\.phps$”>
SetHandler application\/x-httpd-php-source
<\/FilesMatch><\/p>\n
PHPINIDir “D:\/xampp\/php”
<\/IfModule><\/p>\n
\u4ed4\u7ec6\u60f3\u60f3\u5c31\u77e5\u9053\uff0c\u4f1a\u6709\u914d\u7f6e\u51b2\u7a81<\/p>\n
(Note that this is taken from the same file in the 1.7.0 xampp distribution. If you run into trouble, check that conf file and make the new one match it.)<\/p>\n
You should then be able to start the apache server with PHP 5.2.8. You can tail the G:\\xampp\\apache\\logs\\error.log file to see whether there are any errors on startup. If not, you should be able to see the XAMPP splash screen when you navigate to localhost.<\/p>\n
Hope this helps the next guy.<\/p>\n
<\/p>\n