SetHandler application/x-httpd-php
在设置文件里增加PHP 之后无法重启Apache
Logs error 如下:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Wed Aug 06 19:53:23 2014] [notice] Child 2840: Child process is running
[Wed Aug 06 19:53:23 2014] [notice] Child 2840: Acquired the start mutex.
[Wed Aug 06 19:53:23 2014] [notice] Child 2840: Starting 64 worker threads.
[Wed Aug 06 19:53:23 2014] [notice] Child 2840: Starting thread to listen on port 80.
[Wed Aug 06 19:56:09 2014] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Aug 06 19:56:09 2014] [notice] Child 2840: Exit event signaled. Child process is ending.
httpd.exe: Syntax error on line 134 of F:/php/apache/conf/httpd.conf: Expected
[Wed Aug 06 19:56:09 2014] [warn] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Aug 06 19:56:10 2014] [notice] Child 2840: Released the start mutex
[Wed Aug 06 19:56:11 2014] [notice] Child 2840: All worker threads have exited.
[Wed Aug 06 19:56:11 2014] [notice] Child 2840: Child process is exiting
SetHandler application/x-httpd-php
当前问题共有如下(2)个解决方案
- 阿里服务器租用
SetHandler application/x-httpd-php写错了,应该是 SetHandler application/x-httpd-php 少了个h - lizhihong404把php去掉