搞了三四天了,快要疯掉了,小女子在这里请教大家如何配置
下面是我修改的配置文件,php的目录是C:\php,php的ini文件也改好了apache也已经修改了
LoadModule php5_module "C:/php/php5apache2_2.dll"<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/php"
下面是我修改的配置文件,php的目录是C:\php,php的ini文件也改好了apache也已经修改了
LoadModule php5_module "C:/php/php5apache2_2.dll"<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/php"
计算机->属性->高级->环境变量,
有没有PHP程序的路径?
...
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
...
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Apache"
LoadModule php5_module "C:/Apache/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL我这边没有 AddType application/x-httpd-php-source .phps 这行.
你注释掉再试试?
application/x-httpd-php php
application/x-httpd-php-source phps
这2行.
application/x-httpd-php php
application/x-httpd-php-source phps难道有添加上去吗
桌面->计算机->管理->系统工具->事件查看器->应用程序.
Win32 Binary without crypto (no mod_ssl) (MSI Installer): httpd-2.2.22-win32-x86-no_ssl.msi
http://mirror.bjtu.edu.cn/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-no_ssl.msi
+
PHP 5.2 (5.2.17)
VC6 x86 Thread Safe (2011-Mar-22 13:29:30)
http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.msi
架设成功.
只改了2处地方,
首页设置:
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
...
文件尾PHP加载:
PHPIniDir "C:/Apache"
LoadModule php5_module "C:/Apache/php/php5apache2_2.dll"
PHP安装在: C:/Apache/PHP
系统环境变量添加: C:\Apache\;C:\Apache\PHP\;...
关键是loadmodule
唯一的方法就是一遍遍试,尽量做得和上次不一样。 上网搜下“apache php mysql”,找找自己有没有遗漏的步骤。
把AppServ 目录和你的apache及php目录对比,
马上就能找到差别了呀.另外,我提供一个免安装的绿色服务器,刚打的包,
在我的资源里面:
http://download.csdn.net/detail/guilyn/4214864
你试试Win7下好不好用,:)
郁闷了几分钟,忽然想到有个VC9版,
php-5.3.10-Win32-VC9-x86.msi
http://windows.php.net/download/
果然重装后就解决问题了。官方说明: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 PHPIf you are using PHP with IIS you should use the VC9 versions of PHPVC6 Versions are compiled with the legacy Visual Studio 6 compilerVC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installedDo NOT use VC9 version with apache.org binariesVC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.