XAMPP-Apache 服务在几秒钟后停止运行

XAMPP-Apache 服务在几秒钟后停止运行

我的 Xampp 服务器出现了一个大问题,由于某种原因,Apache 服务在启动几秒钟后就停止运行,我不知道问题是什么,而且错误日志也没有详细说明该问题。

[Fri May 07 01:09:32 2010] [notice] Digest: generating secret for digest authentication ...
[Fri May 07 01:09:32 2010] [notice] Digest: done
[Fri May 07 01:09:33 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri May 07 01:09:33 2010] [notice] Server built: Nov 11 2009 14:29:03
[Fri May 07 01:09:33 2010] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Fri May 07 01:09:33 2010] [crit] (OS 6)O identificador é inválido.  : master_main: create child process failed. Exiting.
[Fri May 07 01:09:33 2010] [notice] Parent: Forcing termination of child process 36 

identificador é inválido (pt_PT) => 标识符无效。

笔记:

  • 没有其他应用程序正在使用 Apache 端口。

我对 httpd.conf 文件做了一些更改,但它在很长一段时间内运行良好。

  • 添加了一些虚拟主机。
  • 已启用 xdebug。

因为任何人都遇到过这种情况,谁能告诉我问题是什么?

谢谢你的时间。

回答:

解决方案非常简单,我转到 Windows 中的计算机属性、高级选项卡,然后单击环境变量,并将Path我的用户的变量更改为:

C:\Program Files\JavaFX\javafx-sdk1.2\bin;C:\Program Files\JavaFX\javafx-sdk1.2\emulator\bin;C:\Program Files\PC Connectivity Solution\;%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Softimage;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\

如果您不确定在这里写什么,请从系统变量中复制Path

这解决了我的问题。感谢伊加尔·塞尔班

编辑2

我已禁用 Perl,然后 Apache 开始正常工作。但我需要激活 Perl。有什么建议吗?

编辑1

Igal Serban 建议

在 Apache 上更改调试级别后的结果:

[Fri May 07 10:38:58 2010] [info] Init: Seeding PRNG with 136 bytes of entropy
[Fri May 07 10:38:59 2010] [info] Loading certificate & private key of SSL-aware server
[Fri May 07 10:38:59 2010] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required
[Fri May 07 10:38:59 2010] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Fri May 07 10:38:59 2010] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Fri May 07 10:38:59 2010] [info] Init: Initializing (virtual) servers for SSL
[Fri May 07 10:38:59 2010] [info] Configuring server for SSL protocol
[Fri May 07 10:38:59 2010] [debug] ssl_engine_init.c(414): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Fri May 07 10:38:59 2010] [debug] ssl_engine_init.c(607): Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Fri May 07 10:38:59 2010] [debug] ssl_engine_init.c(370): Configuring TLS extension handling
[Fri May 07 10:38:59 2010] [debug] ssl_engine_init.c(738): Configuring RSA server certificate
[Fri May 07 10:38:59 2010] [debug] ssl_engine_init.c(777): Configuring RSA server private key
[Fri May 07 10:38:59 2010] [info] mod_ssl/2.2.14 compiled against Server: Apache/2.2.14, Library: OpenSSL/0.9.8l
[Fri May 07 10:39:00 2010] [info] Init: Seeding PRNG with 136 bytes of entropy
[Fri May 07 10:39:01 2010] [info] Loading certificate & private key of SSL-aware server
[Fri May 07 10:39:01 2010] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required
[Fri May 07 10:39:01 2010] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Fri May 07 10:39:01 2010] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(253): shmcb_init allocated 512000 bytes of shared memory
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(272): for 511952 bytes (512000 including header), recommending 32 subcaches, 133 indexes each
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(306): shmcb_init_memory choices follow
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(308): subcache_num = 32
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(310): subcache_size = 15996
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(312): subcache_data_offset = 2144
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(314): subcache_data_size = 13852
[Fri May 07 10:39:01 2010] [debug] ssl_scache_shmcb.c(316): index_num = 133
[Fri May 07 10:39:01 2010] [info] Shared memory session cache initialised
[Fri May 07 10:39:01 2010] [info] Init: Initializing (virtual) servers for SSL
[Fri May 07 10:39:01 2010] [info] Configuring server for SSL protocol
[Fri May 07 10:39:01 2010] [debug] ssl_engine_init.c(414): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Fri May 07 10:39:01 2010] [debug] ssl_engine_init.c(607): Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL]
[Fri May 07 10:39:01 2010] [debug] ssl_engine_init.c(370): Configuring TLS extension handling
[Fri May 07 10:39:01 2010] [debug] ssl_engine_init.c(738): Configuring RSA server certificate
[Fri May 07 10:39:01 2010] [debug] ssl_engine_init.c(777): Configuring RSA server private key
[Fri May 07 10:39:01 2010] [info] mod_ssl/2.2.14 compiled against Server: Apache/2.2.14, Library: OpenSSL/0.9.8l
[Fri May 07 10:39:02 2010] [notice] Digest: generating secret for digest authentication ...
[Fri May 07 10:39:02 2010] [notice] Digest: done
[Fri May 07 10:39:02 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri May 07 10:39:02 2010] [notice] Server built: Nov 11 2009 14:29:03
[Fri May 07 10:39:02 2010] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Fri May 07 10:39:02 2010] [crit] (OS 6)O identificador é inválido.  : master_main: create child process failed. Exiting.
[Fri May 07 10:39:02 2010] [notice] Parent: Forcing termination of child process 36 

答案1

更新 3:检查是否有环境变量指向与 apache 使用的 perl 安装不同的 perl 安装。

更新 2:使用进程监视器时,“当你看到它时你就会知道!”。你可以查找读取或写入内容的失败尝试。注意(从日志中)失败发生在第二httpd.exe 进程。它失败得非常快。所以你不需要费力地运行很多行。
你可以尝试的另一件事是禁用模块。也许问题与特定模块有关。

更新:日志没有帮助(我认为)。尝试使用进程监视器. 过滤 httpd.exe 图像。

更新前:尝试输入:

LogLevel debug

在你的conf文件中。并发布结果。

答案2

也许原因是用户权限?尝试以其他用户身份运行 Apache。

相关内容