#1.好久没写日志了
#2.新公司数据分析系统的后台是php,2年没写php了,还要捡起来
开发环境:Windows + Zend Studio +wamp
问题1:新建本地项目,然后选择run as--php web aplication 后报错
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.【1】
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.
解决:
1.首先按照【1】的错误查了一下,一个答案是在apache的配置中加 Listen 80,另一个是由于文件权限(linux系统)
2.查看Apache的错误日志
发现有一条:[Wed May 16 15:20:07 2012] [alert] [client 127.0.0.1] D:/wamp/www/phptest/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
大概意思就是:RewriteEngine命令拼错了或者服务器的配置中没有加入RewriteEngine模块的支持。打开apache的配置文件,然后去掉LoadModule rewrite_module modules/mod_rewrite.so前面的#即可