我的php 版本是 php-5.2.14
php解压后我放的目录为"C:\php"
安装后能正常启动Apache.
安装后 我按下面配置后就启动不了 Apache.
在"#LoadModule vhost_alias_module modules/mod_vhost_alias.so" 后面添加
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
把 DirectoryIndex index.html 修改:成DirectoryIndex index.php default.php index.html index.htm default.html
default.htm
把:DocumentRoot 该为 "DocumentRoot "D:/www" ;/////我在D盘有该文件名称
把:<Directory配置<Directory "D:/www">
配置后再也启动不了Apache啦???
是不是我配置啦?
这里的配置是不是和php.ini文件有关系??
10 个解决方案
#1
看看不该有空格的地方是不是有空格
#2
"DocumentRoot "D:/www" ;
改成
DocumentRoot "D:/www"
改成
DocumentRoot "D:/www"
#3
配置文件中是 DocumentRoot "D:/www"
这样的。
这样的。
#4
看一下Apache目录下的log/error.log文件中的具体错误
#5
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [warn] pid file C:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 13 17:12:43 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [notice] Server built: Jul 30 2010 16:15:37
[Wed Oct 13 17:12:43 2010] [notice] Parent: Created child process 4240
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Child process is running
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Acquired the start mutex.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting 64 worker threads.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting thread to listen on port 80.
[Wed Oct 13 17:15:37 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Oct 13 17:15:37 2010] [notice] Child 4240: Exit event signaled. Child process is ending.
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
[Wed Oct 13 17:15:37 2010] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Oct 13 17:15:38 2010] [notice] Child 4240: Released the start mutex
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: All worker threads have exited.
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: Child process is exiting
Logs 中 error 信息。
The Apache2.2 service is running.
] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [warn] pid file C:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 13 17:12:43 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [notice] Server built: Jul 30 2010 16:15:37
[Wed Oct 13 17:12:43 2010] [notice] Parent: Created child process 4240
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Child process is running
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Acquired the start mutex.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting 64 worker threads.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting thread to listen on port 80.
[Wed Oct 13 17:15:37 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Oct 13 17:15:37 2010] [notice] Child 4240: Exit event signaled. Child process is ending.
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
[Wed Oct 13 17:15:37 2010] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Oct 13 17:15:38 2010] [notice] Child 4240: Released the start mutex
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: All worker threads have exited.
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: Child process is exiting
Logs 中 error 信息。
#6
高手能看出点什么错误原因吗?
#7
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
C:/Apache/conf/httpd.conf 130行有错?少了一个参数
AddType requires at least two arguments, a mime type followed by one or more file extensions
C:/Apache/conf/httpd.conf 130行有错?少了一个参数
#8
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
----------------
C:/Apache/conf/httpd.conf第130行语法错误
AddType 只扫需要2个参数
例子
AddType application/x-httpd-php .php .html
----------------
C:/Apache/conf/httpd.conf第130行语法错误
AddType 只扫需要2个参数
例子
AddType application/x-httpd-php .php .html
#9
端口 可能被占用啦
#10
楼上的楼上,说的正确,
#1
看看不该有空格的地方是不是有空格
#2
"DocumentRoot "D:/www" ;
改成
DocumentRoot "D:/www"
改成
DocumentRoot "D:/www"
#3
配置文件中是 DocumentRoot "D:/www"
这样的。
这样的。
#4
看一下Apache目录下的log/error.log文件中的具体错误
#5
Starting the Apache2.2 service
The Apache2.2 service is running.
] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [warn] pid file C:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 13 17:12:43 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [notice] Server built: Jul 30 2010 16:15:37
[Wed Oct 13 17:12:43 2010] [notice] Parent: Created child process 4240
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Child process is running
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Acquired the start mutex.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting 64 worker threads.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting thread to listen on port 80.
[Wed Oct 13 17:15:37 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Oct 13 17:15:37 2010] [notice] Child 4240: Exit event signaled. Child process is ending.
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
[Wed Oct 13 17:15:37 2010] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Oct 13 17:15:38 2010] [notice] Child 4240: Released the start mutex
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: All worker threads have exited.
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: Child process is exiting
Logs 中 error 信息。
The Apache2.2 service is running.
] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [warn] pid file C:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 13 17:12:43 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
[Wed Oct 13 17:12:43 2010] [notice] Server built: Jul 30 2010 16:15:37
[Wed Oct 13 17:12:43 2010] [notice] Parent: Created child process 4240
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Child process is running
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Acquired the start mutex.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting 64 worker threads.
[Wed Oct 13 17:12:44 2010] [notice] Child 4240: Starting thread to listen on port 80.
[Wed Oct 13 17:15:37 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Oct 13 17:15:37 2010] [notice] Child 4240: Exit event signaled. Child process is ending.
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
[Wed Oct 13 17:15:37 2010] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Wed Oct 13 17:15:38 2010] [notice] Child 4240: Released the start mutex
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: All worker threads have exited.
[Wed Oct 13 17:15:39 2010] [notice] Child 4240: Child process is exiting
Logs 中 error 信息。
#6
高手能看出点什么错误原因吗?
#7
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
C:/Apache/conf/httpd.conf 130行有错?少了一个参数
AddType requires at least two arguments, a mime type followed by one or more file extensions
C:/Apache/conf/httpd.conf 130行有错?少了一个参数
#8
Syntax error on line 130 of C:/Apache/conf/httpd.conf:
----------------
C:/Apache/conf/httpd.conf第130行语法错误
AddType 只扫需要2个参数
例子
AddType application/x-httpd-php .php .html
----------------
C:/Apache/conf/httpd.conf第130行语法错误
AddType 只扫需要2个参数
例子
AddType application/x-httpd-php .php .html
#9
端口 可能被占用啦
#10
楼上的楼上,说的正确,