如何使服务器重新启动Apache / httpd?

时间:2020-01-21 10:45:45

标签: apache httpd.conf

Apache2不会重新启动centro 6.10 hostgator。我已经把所有东西都清理干净了。使用easyapache4安装程序进行了尝试,但始终以以下错误结束。我没有设置hostgator的服务器。我觉得他们设置不正确。

root@bui [~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: AH00534: httpd: Configuration error: No MPM loaded.
                                                           [FAILED]
root@bui [~]#
              Provision process started.
[2020-01-21 04:32:20 -0600] info [xml-api] ---> Package ea-php56-php-fpm.x86_64 0:5.6.40-11.11.3.cpanel will be erased
[2020-01-21 04:32:20 -0600] info [xml-api] --> Finished Dependency Resolution
[2020-01-21 04:32:20 -0600] info [xml-api] ================================================================================
[2020-01-21 04:32:20 -0600] info [xml-api]  Package              Arch       Version                    Repository     Size
[2020-01-21 04:32:20 -0600] info [xml-api] ================================================================================
[2020-01-21 04:32:20 -0600] info [xml-api] Removing:
[2020-01-21 04:32:20 -0600] info [xml-api]  ea-php56-php-fpm     x86_64     5.6.40-11.11.3.cpanel      installed     3.9 M
[2020-01-21 04:32:20 -0600] info [xml-api] Transaction Summary
[2020-01-21 04:32:20 -0600] info [xml-api] ================================================================================
[2020-01-21 04:32:20 -0600] info [xml-api] Remove        1 Package(s)
[2020-01-21 04:32:20 -0600] info [xml-api] Installed size: 3.9 M
[2020-01-21 04:32:20 -0600] info [xml-api] Downloading Packages:
[2020-01-21 04:32:20 -0600] info [xml-api] Running rpm_check_debug
[2020-01-21 04:32:20 -0600] info [xml-api] Running Transaction Test
[2020-01-21 04:32:20 -0600] info [xml-api] Transaction Test Succeeded
[2020-01-21 04:32:20 -0600] info [xml-api] Running Transaction
[2020-01-21 04:32:20 -0600] info [xml-api] error reading information on service ea-php56-php-fpm: No such file or directory
[2020-01-21 04:32:20 -0600] info [xml-api] error: %preun(ea-php56-php-fpm-5.6.40-11.11.3.cpanel.x86_64) scriptlet failed, exit status 1
[2020-01-21 04:32:20 -0600] info [xml-api] Error in PREUN scriptlet in rpm package ea-php56-php-fpm
[2020-01-21 04:32:20 -0600] info [xml-api] Purging all relevant cached command results
[2020-01-21 04:32:20 -0600] info [xml-api] Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-v
[2020-01-21 04:32:20 -0600] info [xml-api] Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-l
[2020-01-21 04:32:20 -0600] info [xml-api] Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-V
[2020-01-21 04:32:20 -0600] info [xml-api] Rebuilding global cache
[2020-01-21 04:32:20 -0600] info [xml-api] Building global cache for cpanel...httpd: Could not open configuration file /etc/apache2/conf/httpd.conf: No such file or directory
[2020-01-21 04:32:20 -0600] info [xml-api] Done
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php54” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php55” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php56” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php70” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php71” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php72” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php73” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Initial configuration generation failed with the following message:
[2020-01-21 04:32:20 -0600] info [xml-api] The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.b9e5e39b.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 31614) reported error number 1 when it ended.
[2020-01-21 04:32:20 -0600] info [xml-api] httpd: Syntax error in -C/-c directive: Syntax error on line 2 of /etc/apache2/conf.modules.d/485_mod_heartbeat.conf: Cannot load modules/mod_heartbeat.so into server: /etc/apache2/modules/mod_heartbeat.so: undefined symbol: ap_hook_watchdog_step
[2020-01-21 04:32:20 -0600] info [xml-api] Rebuilding configuration without any local modifications.
[2020-01-21 04:32:20 -0600] info [xml-api] Failed to generate a syntactically correct Apache configuration.
[2020-01-21 04:32:20 -0600] info [xml-api] Bad configuration file located at /etc/apache2/conf/httpd.conf.work.b9e5e39b
[2020-01-21 04:32:20 -0600] info [xml-api] Error:
[2020-01-21 04:32:20 -0600] info [xml-api] The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf.work.b9e5e39b.cfgcheck -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 31615) reported error number 1 when it ended.
[2020-01-21 04:32:20 -0600] info [xml-api] httpd: Syntax error in -C/-c directive: Syntax error on line 2 of /etc/apache2/conf.modules.d/485_mod_heartbeat.conf: Cannot load modules/mod_heartbeat.so into server: /etc/apache2/modules/mod_heartbeat.so: undefined symbol: ap_hook_watchdog_step
[2020-01-21 04:32:20 -0600] info [xml-api] !!!! "/etc/yum/universal-hooks/multi_pkgs/posttrans/ea-__WILDCARD__/020-rebuild-httpdconf --pkg_list=/root/tmp/tmpBydp4G" did not exit cleanly: 65280
[2020-01-21 04:32:20 -0600] info [xml-api] Nothing to do under ea4 (this script has been deprecated under ea4).
[2020-01-21 04:32:20 -0600] info [xml-api] Fix mailman RPM directories …
[2020-01-21 04:32:20 -0600] info [xml-api]  … PID 31621
[2020-01-21 04:32:20 -0600] info [xml-api] Fix mailing list perms …
[2020-01-21 04:32:20 -0600] info [xml-api]  … PID 31623
[2020-01-21 04:32:20 -0600] info [xml-api] Aligning modsec config to Whostmgr
[2020-01-21 04:32:20 -0600] info [xml-api] - Whostmgr version 11.84.0.19
[2020-01-21 04:32:20 -0600] info [xml-api] - Whostmgr supports conf.d/modsec location
[2020-01-21 04:32:20 -0600] info [xml-api] - No change necessary
[2020-01-21 04:32:20 -0600] info [xml-api] Waiting for “httpd” to start ……………failed.
[2020-01-21 04:32:20 -0600] info [xml-api] Cpanel::Exception::Services::StartError
[2020-01-21 04:32:20 -0600] info [xml-api] Service Status
[2020-01-21 04:32:20 -0600] info [xml-api] Service Error
[2020-01-21 04:32:20 -0600] info [xml-api]  (XID x9jbe3) The “httpd” service failed to start.
[2020-01-21 04:32:20 -0600] info [xml-api] Startup Log
[2020-01-21 04:32:20 -0600] info [xml-api]  AH00534: httpd: Configuration error: No MPM loaded.
[2020-01-21 04:32:20 -0600] info [xml-api] httpd has failed. Contact your system administrator if the service does not automagically recover.
[2020-01-21 04:32:20 -0600] info [xml-api] Setting permissions for.....wildn …
[2020-01-21 04:32:20 -0600] info [xml-api] thefactoryus …
[2020-01-21 04:32:20 -0600] info [xml-api] admin …
[2020-01-21 04:32:20 -0600] info [xml-api] kindredl …
[2020-01-21 04:32:20 -0600] info [xml-api] myhotdesign …
[2020-01-21 04:32:20 -0600] info [xml-api] wildhubtx …
[2020-01-21 04:32:20 -0600] info [xml-api] cody …
[2020-01-21 04:32:20 -0600] info [xml-api] thedfwlist …
[2020-01-21 04:32:20 -0600] info [xml-api] httpsbuildmyac …
[2020-01-21 04:32:20 -0600] info [xml-api] Skipping httpsbuildmyac because of an error: User httpsbuildmyac has no “main_domain” in userdata! at /usr/local/cpanel/Cpanel/FileProtect/Sync.pm line 65.
[2020-01-21 04:32:20 -0600] info [xml-api] thecar …
[2020-01-21 04:32:20 -0600] info [xml-api] insomniakin …
[2020-01-21 04:32:20 -0600] info [xml-api] ...Done
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php54” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php55” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php56” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ignoring current entry for “ea-php70” …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php71” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php72” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Ensuring current entry for “ea-php73” is correct …
[2020-01-21 04:32:20 -0600] info [xml-api] Processing ea-php71 …
[2020-01-21 04:32:20 -0600] info [xml-api]  … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini …
[2020-01-21 04:32:20 -0600] info [xml-api] Processing ea-php72 …
[2020-01-21 04:32:20 -0600] info [xml-api]  … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini …
[2020-01-21 04:32:20 -0600] info [xml-api] Processing ea-php73 …
[2020-01-21 04:32:20 -0600] info [xml-api]  … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini …
[2020-01-21 04:32:20 -0600] info [xml-api] Service Status
[2020-01-21 04:32:20 -0600] info [xml-api] apache_php_fpm restarted successfully.
[2020-01-21 04:32:20 -0600] info [xml-api] [Tue Jan 21 04:32:20 2020] [100-phpfpm_cleanup] [ea-php56-php-fpm] No need to clean user files since we are installing.
[2020-01-21 04:32:20 -0600] info [xml-api] ea-php56-php-fpm-5.6.40-11.11.3.cpanel.x86_64 was supposed to be removed but is not!
[2020-01-21 04:32:20 -0600] info [xml-api] 
  Verifying  : ea-php56-php-fpm-5.6.40-11.11.3.cpanel.x86_64                1/1 
[2020-01-21 04:32:20 -0600] info [xml-api] Failed:
[2020-01-21 04:32:20 -0600] info [xml-api]   ea-php56-php-fpm.x86_64 0:5.6.40-11.11.3.cpanel                               
[2020-01-21 04:32:20 -0600] info [xml-api] There were non-fatal errors in the transaction
[2020-01-21 04:32:20 -0600] info [xml-api] Finished Transaction
[2020-01-21 04:32:20 -0600] info [xml-api] Leaving Shell

Provision process finished.

该如何处理?我是初学者,所以请详细说明。

对不起,您目前无法更新包含文件。您的Apache配置文件当前存在语法错误。

错误:


The “/usr/sbin/httpd -DSSL -t -f /etc/apache2/conf/httpd.conf -C Include "/etc/apache2/conf.modules.d/*.conf"” command (process 7612) reported error number 1 when it ended. httpd: Syntax error in -C/-c directive: Syntax error on line 2 of /etc/apache2/conf.modules.d/485_mod_heartbeat.conf: Cannot load modules/

我从没碰过文件。他们有语法错误,这很奇怪。

0 个答案:

没有答案