本地wamp 访问时出错
2015-08-07 14:06
302 查看
本地wamp的Internal Server Error错误解决方法
一、本地wamp下调试url重写,加入htaccess文件后提示:500 Internal Server Error ...,而删除这个文件网站又可以正常访问,其实就是没有开启url重写的功能。开启一下就可以。错误信息为:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost 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.
WAMP下htaccess出错的解决方法:
1. 打开wamp安装目录,搜一下 httpd.conf 这个文件,找到后打开;2. 搜一下“LoadModule rewrite_module modules/mod_rewrite.so”,找到这一行,去掉前面的“#”;3. 重启wamp。
二、本地wamp开启了url重写功能或者网站没有htaccess文件后,仍然出现500 Internal Server Error...,检查网站config配置文件的路径和参数是否正确。
如果出现以下错误:
Apache/2.4.9 (Win32) PHP/5.5.12 Server at publishers2.defymedia.me Port 80
# Require all denied
Require all granted 这样改
一、本地wamp下调试url重写,加入htaccess文件后提示:500 Internal Server Error ...,而删除这个文件网站又可以正常访问,其实就是没有开启url重写的功能。开启一下就可以。错误信息为:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost 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.
WAMP下htaccess出错的解决方法:
1. 打开wamp安装目录,搜一下 httpd.conf 这个文件,找到后打开;2. 搜一下“LoadModule rewrite_module modules/mod_rewrite.so”,找到这一行,去掉前面的“#”;3. 重启wamp。
二、本地wamp开启了url重写功能或者网站没有htaccess文件后,仍然出现500 Internal Server Error...,检查网站config配置文件的路径和参数是否正确。
如果出现以下错误:
Forbidden
You don't have permission to access / on this server.Apache/2.4.9 (Win32) PHP/5.5.12 Server at publishers2.defymedia.me Port 80
# Require all denied
Require all granted 这样改
相关文章推荐
- 毕业后头五年决定你的一生
- HUD 5188(zhx and contest)有条件01背包
- 盤古化
- 【android控件学习笔记】DatePicker TimePicker
- Java高级-对象的完全复制
- hdu 5349 MZL's simple problem
- 大数据、数据挖掘、机器学习资料整理
- 转战AndroidStudio---AS快捷键
- cpu的ring0、ring1、ring2、ring3
- 英语学习的重要性
- Python长字符串的打印
- spring之Ioc机制
- Docker 初级教程
- Easyui - frozenColumns
- document.getElementById("xx").style.xxx中的所有属性
- Sphinx+Mysql+Php 12亿DNS数据秒查
- 六十三 七十二 八十一
- CSS布局学习笔记之图片居中
- Ambiguous mapping found. Cannot map 'fancyController' bean method
- 详解I2C(一)