Zend Studio+wamp 搭建php开发环境遇到的问题

废话:

#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前面的#即可

转载于:https://my.oschina.net/wangjiankui/blog/57627

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值