使用XAMPP,如何将PHP 5.3换成PHP 5.2? [英] Using XAMPP, how do i swap out PHP 5.3 for PHP 5.2?

查看:406
本文介绍了使用XAMPP,如何将PHP 5.3换成PHP 5.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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.

  1. 下载最新的xampp并将其安装到G:\ xampp.截至2010/03/12,此值为1.7.3.
  2. 下载xampp-win32-1.7.0.zip的zip,这是没有php 5.3的最新xampp发行版.提取到某处G:\ xampp-win32-1.7.0 \
  3. 删除目录G:\ xampp \ php
  4. 删除G:\ xampp \ apache \ modules \ php5apache2_2.dll和php5apache2_2_filter.dll
  5. 将G:\ xampp-win32-1.7.0 \ xampp \ php复制到G:\ xampp \ php.
  6. 将G:\ xampp-win32-1.7.0 \ xampp \ apache \ bin \ php *复制到G:\ xampp \ apache \ bin
  7. 编辑G:\ xampp \ apache \ conf \ extra \ httpd-xampp.conf.
    • 该行之后的< IfModule alias_module>添加行
  1. Download and install latest xampp to G:\xampp. As of 2010/03/12, this is 1.7.3.
  2. Download the zip of xampp-win32-1.7.0.zip, which is the latest xampp distro without php 5.3. Extract somewhere, e.g. G:\xampp-win32-1.7.0\
  3. Remove directory G:\xampp\php
  4. Remove G:\xampp\apache\modules\php5apache2_2.dll and php5apache2_2_filter.dll
  5. Copy G:\xampp-win32-1.7.0\xampp\php to G:\xampp\php.
  6. Copy G:\xampp-win32-1.7.0\xampp\apache\bin\php* to G:\xampp\apache\bin
  7. Edit G:\xampp\apache\conf\extra\httpd-xampp.conf.
    • Immediately after the line, <IfModule alias_module> add the lines

(剪裁)

<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:\ xampp \ apache \ logs \ error.log文件以查看启动时是否有任何错误.如果没有,当您导航到本地主机时,您应该能够看到XAMPP初始屏幕.

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.

希望这对下一个家伙有帮助.

Hope this helps the next guy.

欢呼

杰克

这篇关于使用XAMPP,如何将PHP 5.3换成PHP 5.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆