首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 編程語言 >  >> 網頁程式設計 >> PHP 程式設計 >> PHP 綜合知識

Win7 下 XAMPP Apache 啟動失敗:mod_perl 模組衝突解決方案

     編輯:PHP 綜合知識

現象

安裝 XAMPP 後 Apache 閃爍 Running 後隨即停止,錯誤日誌顯示:

[crit] (22)Invalid argument: Parent: Failed to create the child process.
[crit] (OS 6)句柄無效。 : master_main: create child process failed. Exiting.

根因

Windows 7 環境下 mod_perl 模組與 Apache 進程模型不兼容,導致子進程創建失敗。

解決方法

編輯 httpd.conf,註釋掉 Perl 模組載入行:

# Perl settings
#Include "conf/extra/httpd-perl.conf"

保存後重啟 Apache 即可正常運行。

補充說明

  • 若不需要 Perl 支援,直接禁用最省事
  • 需 Perl 時可考慮升級 XAMPP 版本或改用 Strawberry Perl 獨立運行
  • 同理,其他實驗性/非核心模組(如 mod_webdav)若導致穩定性問題亦可嘗試禁用
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved