Apache启动问题:overwritten -- Unclean shutdown of previous Apache run

本文介绍了解决Apache因PHP配置导致无法启动的问题。通过调整php.ini文件中不必要的扩展加载设置,或者重新安装PHP并只选择所需的扩展,成功解决了Apache启动失败的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 


Apache 的conf里的httpd.conf文件最后:

 

LoadModule php5_module "E:/Program Files/PHP/php5apache2_2.dll"

如果注释掉,Apache就能启动;所以应该是PHP的配置有问题。

 

网上搜了一下,在php.ini里,注释掉一些用不到的module就可以了,例如:

 

 

  1. [PHP_LDAP]  
  2. ;extension=php_ldap.dll  
  3. [PHP_MSSQL]  
  4. extension=php_mssql.dll  
  5. [PHP_MYSQL]  
  6. extension=php_mysql.dll  
  7. [PHP_MYSQLI]  
  8. extension=php_mysqli.dll  
  9. [PHP_OCI8]  
  10. ;extension=php_oci8.dll  
  11. [PHP_OPENSSL]  
  12. extension=php_openssl.dll  
  13. [PHP_SOAP]  
  14. extension=php_soap.dll  
  15. [PHP_SOCKETS]  
  16. extension=php_sockets.dll  
  17. [PHP_ZIP]  
  18. ;extension=php_zip.dll 

当然,我更偷懒,重新安装PHP5,但选择:change,在extensions里,别偷懒,选择自己需要的,如MySQL、xml,soap等,然后php.ini文件就自己修改了。

 

 

重启Apache,好了。

 

 

美国诺珍黄金免疫抗流感.增高.真空超低温诺珍冻干牛初乳90g*1g
528.0元 
[Sun Jun 29 14:55:13.531112 2025] [core:error] [pid 27208:tid 1168] [client ::1:61472] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Sun Jun 29 14:56:16.227311 2025] [core:error] [pid 27208:tid 1148] [client ::1:61485] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Sun Jun 29 15:04:18.703894 2025] [core:warn] [pid 35516:tid 364] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:04:18.862470 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:04:18.862470 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:04:18.862470 2025] [core:notice] [pid 35516:tid 364] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:04:18.873441 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00418: Parent: Created child process 37656 [Sun Jun 29 15:04:21.226512 2025] [mpm_winnt:notice] [pid 37656:tid 320] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:07:19.452902 2025] [core:warn] [pid 29396:tid 396] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:07:19.567596 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:07:19.567596 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:07:19.567596 2025] [core:notice] [pid 29396:tid 396] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:07:19.579564 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00418: Parent: Created child process 37736 [Sun Jun 29 15:07:21.852612 2025] [mpm_winnt:notice] [pid 37736:tid 332] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:07:32.462402 2025] [core:error] [pid 37736:tid 1180] [client ::1:61597] AH00126: Invalid URI in request 'index.php' 'GET /web/UserLogin/accountLogin HTTP/1.1' [Sun Jun 29 15:07:50.674094 2025] [core:error] [pid 37736:tid 1176] [client ::1:61598] AH00126: Invalid URI in request 'index.php' 'GET /web/UserLogin/accountLogin HTTP/1.1' [Sun Jun 29 15:08:28.424576 2025] [core:warn] [pid 25176:tid 336] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:08:28.539271 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:08:28.539271 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:08:28.539271 2025] [core:notice] [pid 25176:tid 336] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:08:28.574179 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00418: Parent: Created child process 12320 [Sun Jun 29 15:08:30.762870 2025] [mpm_winnt:notice] [pid 12320:tid 352] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:09:23.908308 2025] [core:error] [pid 12320:tid 1184] [client ::1:61618] AH00126: Invalid URI in request 'index.php' 'GET /web/Index/thinkPHP8 HTTP/1.1'
最新发布
06-30
root@cpms-linux:~# docker logs fossology-new ***************************************************** WARNING: No database host was set and therefore the internal database without persistency will be used. THIS IS NOT RECOMENDED FOR PRODUCTIVE USE! ***************************************************** Starting PostgreSQL 11 database server: main. *** Running postinstall for common actions*** *** Creating user and group *** NOTE: group 'fossy' already exists, good. NOTE: user 'fossy' already exists, good. *** Making sure needed dirs exist with right ownership/permissions *** *** clearing file cache *** NOTE: Repository already exists at /srv/fossology/repository NOTE: Running the PostgreSQL vacuum and analyze command can result in a large database performance improvement. We suggest that you either configure postgres to run its autovacuum and autoanalyze daemons, or maintagent -D in a cron job, or run Admin > Maintenance on a regular basis. Admin > Dashboard will show you the last time vacuum and analyze have been run. *** Setting up the FOSSology database *** NOTE: fossology database already exists, not creating *** Checking for plpgsql support *** NOTE: plpgsql already exists in fossology database, good *** Checking for 'uuid-ossp' support *** NOTE: 'uuid-ossp' already exists in fossology database, good *** update the database and license_ref table *** Old release was 3.3.0 Applying database functions DB schema has been updated for fossology. Database schema update completed successfully. Update reference licenses *** Instance UUID ***INSTANCE UUID: a527ab24-e3ad-4472-90d5-68483f7376d3 *** Table copyright already migrated to copyright_event table *** *** Table author already migrated to author_event table *** *** Table ecc already migrated to ecc_event table *** *** Table keyword already migrated to keyword_event table *** FOSSology postinstall complete, but sure to complete the remaining steps in the INSTALL instructions. Fossology initialisation complete; Starting up... Starting periodic command scheduler: cron. 2025-03-21 08:18:26 scheduler [155] :: NOTE: ***************************************************************** 2025-03-21 08:18:26 scheduler [155] :: NOTE: *** FOSSology scheduler started *** 2025-03-21 08:18:26 scheduler [155] :: NOTE: *** pid: 155 *** 2025-03-21 08:18:26 scheduler [155] :: NOTE: *** verbose: 3 *** 2025-03-21 08:18:26 scheduler [155] :: NOTE: *** config: /usr/local/etc/fossology *** 2025-03-21 08:18:26 scheduler [155] :: NOTE: ***************************************************************** AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message [Fri Mar 21 08:18:26.602843 2025] [core:warn] [pid 158] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Mar 21 08:18:26.618724 2025] [mpm_prefork:notice] [pid 158] AH00163: Apache/2.4.38 (Debian) mod_ldap_userdir/1.1.19 configured -- resuming normal operations [Fri Mar 21 08:18:26.620058 2025] [core:notice] [pid 158] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND' 10.194.150.5 - - [21/Mar/2025:08:18:27 +0000] "GET / HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0" 10.194.150.5 - - [21/Mar/2025:08:18:32 +0000] "GET /repo HTTP/1.1" 404 495 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0" 10.194.150.5 - - [21/Mar/2025:08:19:24 +0000] "-" 408 0 "-" "-"
03-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值