Home > Backend Development > PHP Tutorial > 如何搭建php5.2.X开发环境?

如何搭建php5.2.X开发环境?

WBOY
Release: 2016-06-06 20:25:27
Original
1121 people have browsed it

搭建如下php开发环境:

  • windows 8.1

  • php-5.2.14-Win32-VC6-x86.zip下载连接

  • httpd-2.2.31-x64.zip

已经成功配置apache2.2并且正常运行,在htpd.conf文件中配置如下项目之后

<code>#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "d:/pf/php/"
LoadModule php5_module "d:/pf/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL</code>
Copy after login
Copy after login

重启apache报错如下:

<code>D:\pf\apache\bin>httpd
httpd: Syntax error on line 132 of 
D:/pf/apache/conf/httpd.conf: Cannot load 
D:/pf/php/php5apache2_2.dll into server: 
%1\xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 
Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3</code>
Copy after login
Copy after login

路径配置肯定是对的。在网上也没有找到有用的信息,暂时已经没有思路了,请各位指导指导,感激不尽。

回复内容:

搭建如下php开发环境:

  • windows 8.1

  • php-5.2.14-Win32-VC6-x86.zip下载连接

  • httpd-2.2.31-x64.zip

已经成功配置apache2.2并且正常运行,在htpd.conf文件中配置如下项目之后

<code>#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "d:/pf/php/"
LoadModule php5_module "d:/pf/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL</code>
Copy after login
Copy after login

重启apache报错如下:

<code>D:\pf\apache\bin>httpd
httpd: Syntax error on line 132 of 
D:/pf/apache/conf/httpd.conf: Cannot load 
D:/pf/php/php5apache2_2.dll into server: 
%1\xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 
Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3</code>
Copy after login
Copy after login

路径配置肯定是对的。在网上也没有找到有用的信息,暂时已经没有思路了,请各位指导指导,感激不尽。

最终也没有解决掉can't load php5apache2_2.dll的问题。
从网上下载了一个php版本为5.2.17的php study 凑合着用.....

可以的,64位系统兼容32位软件

我这里有很多32位的,今天技术总监要求我装5.2的,网址在http://windows.php.net/downloads/releases/archives

一般 64位的系统可以安装 32位的软件的,没问题的,win7 环境下我都是64位系统,搭配的是 32位apache + 32位php 的。

用5.3以上吧

为啥不可以呢。。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template