• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Apache fail to start

serverok

New Pleskian
On Plesk server

Code:
[root@reflexmania ~]# plesk  version
Product version: Plesk Onyx 17.8.11 Update #18
    Update date: 2018/09/01 23:42
     Build date: 2018/08/24 12:47
     OS version: CentOS 7.5.1804
       Revision: 6eb2f538f0b13302f09cd8a38c64c82940622756
   Architecture: 64-bit
Wrapper version: 1.2
[root@reflexmania ~]#

Apache is not starting

Code:
[root@reflexmania ~]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-09-02 10:22:47 CEST; 6min ago
     Docs: man:httpd.service(8)
  Process: 17602 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 17602 (code=exited, status=1/FAILURE)

Sep 02 10:22:47 reflexmania.local systemd[1]: Starting The Apache HTTP Server...
Sep 02 10:22:47 reflexmania.local httpd[17602]: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load...t_best_worker
Sep 02 10:22:47 reflexmania.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 02 10:22:47 reflexmania.local systemd[1]: Failed to start The Apache HTTP Server.
Sep 02 10:22:47 reflexmania.local systemd[1]: Unit httpd.service entered failed state.
Sep 02 10:22:47 reflexmania.local systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@reflexmania ~]#


I tried to repair plesk with "plesk repair web -server", got following error

Code:
[root@reflexmania ~]# plesk repair web -server

Repairing web server configuration

  File not found: reflexmania.it.conf                                 
  File not found: beta.reflexmania.it.conf                           
  File not found: reflexmania.co.uk.conf                             
  File not found: manager.reflexmania.it.conf                         
  File not found: support.reflexmania.it.conf ....................... [ERROR]
    Repairing server-wide configuration parameters for web servers .. [2018-09-02 10:23:50.544] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1] 
[FAILED]
    - httpdmng failed: [2018-09-02 10:23:50.234] ERR [util_exec]
      proc_close() failed ['/usr/local/psa/admin/bin/apache-config'
      '-t'] with exit code [1] 
      [2018-09-02 10:23:50.430] ERR [util_exec] proc_close() failed
      ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code
      [1] 
      [2018-09-02 10:23:50.432] ERR [panel] Apache config
      (15358766290.88527600) generation failed: Template_Exception:
      httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf:
      Syntax error on line 3 of
      /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load
      modules/mod_lbmethod_bybusyness.so into server:
      /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined
      symbol: ap_proxy_balancer_get_best_worker
     
      file:
      /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
      line: 75
      code: 0
      httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf:
      Syntax error on line 3 of
      /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load
      modules/mod_lbmethod_bybusyness.so into server:
      /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined
      symbol: ap_proxy_balancer_get_best_worker

Error messages: 1; Warnings: 0; Errors resolved: 0


exit status 1
[root@reflexmania ~]#


When i try reconfigure i get error

Code:
[root@reflexmania ~]# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
    [1] => -no-restart
)

Details: [2018-09-02 10:30:45.449] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] 
[2018-09-02 10:30:45.661] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] 
[2018-09-02 10:30:45.662] ERR [panel] Apache config (15358770450.17070800) generation failed: Template_Exception: httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load modules/mod_lbmethod_bybusyness.so into server: /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined symbol: ap_proxy_balancer_get_best_worker

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load modules/mod_lbmethod_bybusyness.so into server: /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined symbol: ap_proxy_balancer_get_best_worker


[root@reflexmania ~]#


I have following apache packages installed

Code:
[root@reflexmania ~]# rpm -qa | grep http
http-parser-2.7.1-5.el7_4.x86_64
mod_http2-1.10.12-1.codeit.x86_64
libnghttp2-1.31.1-1.el7.x86_64
httpd-2.4.34-2.codeit.el7.x86_64
httpd-filesystem-2.4.34-2.codeit.el7.noarch
httpd-tools-2.4.34-2.codeit.el7.x86_64
[root@reflexmania ~]#

/etc/httpd/conf/plesk.conf.d/vhosts folder is empty on this server, i tried to regenerate apache config for one of the hosted site

Code:
[root@reflexmania vhosts]# plesk repair web reflexmania.it

Repairing web server configuration

  File not found: reflexmania.it.conf ............................... [ERROR]
 
  Repair web server configuration for domains reflexmania.it? [Y/n] Y
    Repairing web server configuration for the domain reflexmania.it  [2018-09-02 10:34:17.322] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-domain' 'reflexmania.it'] with exit code [1] 
[FAILED]
    - httpdmng failed: [2018-09-02 10:34:17.042] ERR [util_exec]
      proc_close() failed ['/usr/local/psa/admin/bin/apache-config'
      '-t'] with exit code [1] 
      [2018-09-02 10:34:17.218] ERR [util_exec] proc_close() failed
      ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code
      [1] 
      [2018-09-02 10:34:17.220] ERR [panel] Apache config
      (15358772560.73393300) generation failed: Template_Exception:
      httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf:
      Syntax error on line 3 of
      /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load
      modules/mod_lbmethod_bybusyness.so into server:
      /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined
      symbol: ap_proxy_balancer_get_best_worker
     
      file:
      /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
      line: 75
      code: 0
      httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf:
      Syntax error on line 3 of
      /etc/httpd/conf.modules.d/00-proxy.conf: Cannot load
      modules/mod_lbmethod_bybusyness.so into server:
      /etc/httpd/modules/mod_lbmethod_bybusyness.so: undefined
      symbol: ap_proxy_balancer_get_best_worker

Error messages: 1; Warnings: 0; Errors resolved: 0


exit status 1
[root@reflexmania vhosts]#

Any idea how to fix this problem ?
 
I for the problem with apache resolved. It was due to the server had some other repo installed, that cuased some module compatability. I replaced /etc/yum.repo.d folder on this server from a fresh plesk install and it worked.

Now i am getting following error in Plesk

Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

I tried enabling php5 module in Tools & Settings > Apache Settings and under Tools & Settings > PHP Settings. Both places says it is php5 module is deprecated. Even after enabling it, the warning won't go away.
 
The "deprecated" warning is not a problem and can be ignored for now. However, if you enabled the module and the module does not become available, are you sure that Plesk is using the Apache installation that you manually deployed? How did you reinstall your Apache? Normally I think it should be installed by Plesk from the Plesk sources. Maybe you can run Plesk installer again and reinstall Apache from that source?
 
I removed all httpd packages using yum.

Then login to plesk and installed apache from

Plesk > Tools & Settings > Updates and Upgrades

before doing this, i removed /etc/httpd folder, so i have fresh configs. Once i installed, i had plesk related configs missing, i run "plesk repair web" to get configs recreated.


Code:
[root@reflexmania ~]# rpm -qa | grep http
libnghttp2-1.31.1-1.el7.x86_64
httpd-tools-2.4.6-80.el7.centos.1.x86_64
httpd-2.4.6-80.el7.centos.1.x86_64
[root@reflexmania ~]# httpd -M | grep php
 php5_module (shared)
[root@reflexmania ~]#

When i login to Plesk., get

8RS0PPV.png
 
Back
Top