安装apache后配置好能访问,可是安装好php,对其进行配置后老是提示这样的错误!
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.我只改了httpd.conf文件中的:
1、增加了ScriptAlias /php/ "C:/php/"
2、增加了AddType application/x-httpd-php .php和Action application/x-httpd-php "/php/php.exe"
3、增加了
<Directory "C:/php/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
各位兄弟姐妹,拜托了!咱脑袋都给整大了!
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.我只改了httpd.conf文件中的:
1、增加了ScriptAlias /php/ "C:/php/"
2、增加了AddType application/x-httpd-php .php和Action application/x-httpd-php "/php/php.exe"
3、增加了
<Directory "C:/php/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
各位兄弟姐妹,拜托了!咱脑袋都给整大了!
LoadModule php5_module "D:\Server\PHP\php5apache2_2.dll"
PHPIniDir "D:\Server\PHP"
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
你的版本是什么?
有的版本不一样,配置也会有些小差别
#Action application/x-httpd-php "D:/Server/PHP/php-cgi.exe"#LoadModule php5_module "D:/Server/PHP/php5apache2_2.dll"
#AddType application/x-httpd-php .php
#PHPIniDir "D:/Server/PHP"
群主做了一个整合的包含有两种运行方式
Apache 、MySQL
Nginx 、FastCGI 、MySQL