在一台干净的windows server 2003的电脑上安装ms4w,安装完后不能正常启动。
直接访问主页显示如下
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, dennisbing@126.com 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.
查看日志文件error.log
C:\ms4w\Apache\cgi-bin\mapserv.exe 由于应用程序配置不正确,应用程序未能启动。
最后发现是mapserv.exe和php.exe都是基于VC9.0环境编译的,windows server 2003若是没有安装相关运行库,就会出现
“由于应用程序配置不正确,应用程序未能启动”
mapserv.exe 由于应用程序配置不正确,应用程序未能启动。
可以安装 Microsoft 2008 C++ Runtime (x86) 来解决问题