安装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>
各位兄弟姐妹,拜托了!咱脑袋都给整大了!
解决方案 »
- php mail 发送邮件
- php gd库安装好了但是imagecreate还是不工作,imagecolorallocate提示没有定义
- 问一个mysql_fetch_array的问题
- 闲得无聊的问题,大家来看看
- alert(document.1.aa.value)提示undefined,其中1是form表单的name,急急急
- 怎样用php做一个用户反馈表?
- 有没有以前学过perl的朋友,麻烦帮我转换2个文件
- cookie注册以后可以直接当作变量引用么?
- 关于 php 4.2.1 版关闭 register_globals 后的 url 参数问题,100 求教,在线等待!
- php+mysql如何批量添加图片地址到数据库
- 刚接触php,请大家指点一下
- 这到底是怎么回事,郁闷死了!!!
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