作者:俊铭心怡雅琪 | 来源:互联网 | 2023-05-18 08:37
如果不加载PHP都没问题只要一加入LoadModulephp5_moduleC:phpphp5apache2.dllapache就启动不起来路径没问题apach
如果不加载PHP都没问题
只要一加入
LoadModule php5_module C:/php/php5apache2.dll
apache就启动不起来
路径没问题
apache 为2.0.59
php5ts.dll,libmysql.dll 也拷到system32
php_gd2.dll php_mysql.dll复制到system/system32
14 个解决方案
补充:
Apache is running a threaded MPM, but your PHP
Module is not compiled to be threadsafe. You need to recompile PHP.
Pre-configuration failed
把你...\Apache2.2\logs 下的error.log 下的提示贴出来看看
才好分析到底是哪儿的问题
我也是才装的,我的是
XP下 apache2.2.4 + 安装版php5.2.1 +mysql5.0.37
到EASYPHP.CN下载个套件看看去.APACH2+PHP5+MYSQL5适合新手使用.不懂的问偶就行了
[Fri Mar 30 09:12:25 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:12:25 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:12:25 2007] [notice] Parent: Created child process 5984
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Child process is running
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Acquired the start mutex.
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Starting 250 worker threads.
[Fri Mar 30 09:17:31 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:17:31 2007] [notice] Child 5984: Exit event signaled. Child process is ending.
[Fri Mar 30 09:17:31 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:17:31 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:17:31 2007] [notice] Parent: Created child process 516
[Fri Mar 30 09:17:31 2007] [notice] Child 516: Child process is running
[Fri Mar 30 09:17:32 2007] [notice] Child 516: Acquired the start mutex.
[Fri Mar 30 09:17:32 2007] [notice] Child 5984: Released the start mutex
[Fri Mar 30 09:17:32 2007] [notice] Child 516: Starting 250 worker threads.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: All worker threads have exited.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: Child process is exiting
[Fri Mar 30 09:23:10 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:23:10 2007] [notice] Child 516: Exit event signaled. Child process is ending.
[Fri Mar 30 09:23:10 2007] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Fri Mar 30 09:23:11 2007] [notice] Child 516: Released the start mutex
[Fri Mar 30 09:23:12 2007] [notice] Child 516: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:23:12 2007] [notice] Child 516: All worker threads have exited.
[Fri Mar 30 09:23:12 2007] [notice] Child 516: Child process is exiting
[Fri Mar 30 09:28:08 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:28:08 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:28:08 2007] [notice] Parent: Created child process 4384
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Child process is running
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Acquired the start mutex.
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Starting 250 worker threads.
[Fri Mar 30 09:30:17 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:30:17 2007] [notice] Child 4384: Exit event signaled. Child process is ending.
[Fri Mar 30 09:30:17 2007] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Fri Mar 30 09:30:18 2007] [notice] Child 4384: Released the start mutex
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: All worker threads have exited.
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: Child process is exiting
[Fri Mar 30 09:46:59 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:46:59 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:46:59 2007] [notice] Parent: Created child process 4184
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Child process is running
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Acquired the start mutex.
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Starting 250 worker threads.
[Fri Mar 30 09:47:03 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 09:47:03 2007] [notice] Child 4184: Exit event signaled. Child process is ending.
[Fri Mar 30 09:47:04 2007] [notice] Child 4184: Released the start mutex
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: All worker threads have exited.
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: Child process is exiting
[Fri Mar 30 09:47:05 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 09:49:49 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:49:49 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:49:49 2007] [notice] Parent: Created child process 1816
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Child process is running
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Acquired the start mutex.
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Starting 250 worker threads.
[Fri Mar 30 09:50:44 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:50:44 2007] [notice] Child 1816: Exit event signaled. Child process is ending.
[Fri Mar 30 09:50:44 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:50:44 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:50:44 2007] [notice] Parent: Created child process 4744
[Fri Mar 30 09:50:44 2007] [notice] Child 4744: Child process is running
[Fri Mar 30 09:50:45 2007] [notice] Child 1816: Released the start mutex
[Fri Mar 30 09:50:45 2007] [notice] Child 4744: Acquired the start mutex.
[Fri Mar 30 09:50:45 2007] [notice] Child 4744: Starting 250 worker threads.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: All worker threads have exited.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: Child process is exiting
[Fri Mar 30 09:50:47 2007] [error] [client 127.0.0.1] Directory index forbidden by rule: E:/network/Apache/
[Fri Mar 30 09:53:23 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 09:53:23 2007] [notice] Child 4744: Exit event signaled. Child process is ending.
[Fri Mar 30 09:53:24 2007] [notice] Child 4744: Released the start mutex
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: All worker threads have exited.
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: Child process is exiting
[Fri Mar 30 09:53:25 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:26:51 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:26:51 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:26:51 2007] [notice] Parent: Created child process 180
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Child process is running
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Acquired the start mutex.
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Starting 250 worker threads.
[Fri Mar 30 10:26:55 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 10:26:55 2007] [notice] Child 180: Exit event signaled. Child process is ending.
[Fri Mar 30 10:26:55 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:26:55 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:26:55 2007] [notice] Parent: Created child process 3976
[Fri Mar 30 10:26:55 2007] [notice] Child 3976: Child process is running
[Fri Mar 30 10:26:56 2007] [notice] Child 3976: Acquired the start mutex.
[Fri Mar 30 10:26:56 2007] [notice] Child 180: Released the start mutex
[Fri Mar 30 10:26:56 2007] [notice] Child 3976: Starting 250 worker threads.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: All worker threads have exited.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: Child process is exiting
[Fri Mar 30 10:27:08 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 10:27:08 2007] [notice] Child 3976: Exit event signaled. Child process is ending.
[Fri Mar 30 10:27:09 2007] [notice] Child 3976: Released the start mutex
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: All worker threads have exited.
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: Child process is exiting
[Fri Mar 30 10:27:10 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:27:27 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:27:27 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:27:27 2007] [notice] Parent: Created child process 3700
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Child process is running
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Acquired the start mutex.
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Starting 250 worker threads.
[Fri Mar 30 10:30:06 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 10:30:06 2007] [notice] Child 3700: Exit event signaled. Child process is ending.
[Fri Mar 30 10:30:07 2007] [notice] Child 3700: Released the start mutex
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: All worker threads have exited.
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: Child process is exiting
[Fri Mar 30 10:30:08 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:30:10 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:30:10 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:30:10 2007] [notice] Parent: Created child process 5152
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Child process is running
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Acquired the start mutex.
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Starting 250 worker threads.
[Fri Mar 30 10:44:46 2007] [error] [client 127.0.0.1] script 'C:/Apache/Apache2/htdocs/info.php' not found or unable to stat
[Fri Mar 30 10:44:49 2007] [error] [client 127.0.0.1] script 'C:/Apache/Apache2/htdocs/info.php' not found or unable to stat
[Fri Mar 30 10:47:50 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 10:47:50 2007] [notice] Child 5152: Exit event signaled. Child process is ending.
[Fri Mar 30 10:47:51 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:47:51 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:47:51 2007] [notice] Parent: Created child process 2328
[Fri Mar 30 10:47:51 2007] [notice] Child 5152: Released the start mutex
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Child process is running
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Acquired the start mutex.
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Starting 250 worker threads.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: All worker threads have exited.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: Child process is exiting
[Fri Mar 30 10:47:54 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3
[Fri Mar 30 10:47:56 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3
[Fri Mar 30 10:47:57 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3
能告诉我你QQ吗
谢谢
我配置的apache能够运行,php配置也可一。但是运行测试文件的时候,把全不得源文件显示出来了,,,,这是什么原因???
Ajampie() 你的Apache里面有没有声明.php类型页面?
....
[Fri Mar 30 10:47:51 2007] [notice] Child 5152: Released the start mutex
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Child process is running
.....
警告看书是php启动错误,不能加载 ./php_mysql.dll
你看你的php支持mysql的设置是否正确?
在php.ini 中做些修改,具体怎么改看你的php版本了
看看你的php版本,有没有更好的模板加载?
完整的模板加载命令如下:
LoadModule php5_module "C:/PHP5/php5apache2_2.dll" #php模板所在,在下用得是Apache2.2
AddType application/x-httpd-php .php #识别php文件
PHPIniDir "C:/PHP5" # 配置 php安装路径