我正在使用 XAMPP 1.7.2,但需要将 PHP 5.3 换成 PHP 5.2 - 我该怎么做?
I'm using XAMPP 1.7.2, but need to swap out PHP 5.3 for PHP 5.2 - how do I do this?
感谢您的回答.我刚刚在 Windows XP 上进行了一些修改.这是我的步骤.
Thanks for the answer. I just got this working on Windows XP, with a few modifications. Here are my steps.
(截图)
<IfModule mime_module>
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
<Directory "/xampp/htdocs/xampp">
<IfModule php5_module>
<Files "status.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
</Directory>
</IfModule>
(请注意,这是从 1.7.0 xampp 发行版中的同一个文件中获取的.如果遇到问题,请检查该 conf 文件并让新文件与之匹配.)
(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.)
然后您应该能够使用 PHP 5.2.8 启动 apache 服务器.您可以跟踪 G:xamppapachelogserror.log 文件以查看启动时是否有任何错误.如果没有,您应该能够在导航到 localhost 时看到 XAMPP 启动画面.
You should then be able to start the apache server with PHP 5.2.8. You can tail the G:xamppapachelogserror.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.
希望这对下一个人有所帮助.
Hope this helps the next guy.
干杯,
杰克
这篇关于使用 XAMPP,如何将 PHP 5.3 换成 PHP 5.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!