webtek87 opened a new issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696


   I installed mod_pagespeed following the instructions here:
   https://forums.cpanel.net/threads/mod_pagespeed-on-a-cpanel-server.650485/
   
   PageSpeed is now active on my server when looking at the source code. Now I 
need to add my custom directives, but I can't figure how
   
   I tried editing /etc/apache2/conf.modules.d/510_pagespeed.conf
   and I added "ModPagespeed Off" to this file just to test if I can control 
pagespeed
   
   But now rebuilding httpd returns an error:
   ```
   root@server [/etc/apache2/conf.modules.d]# sudo systemctl reload 
httpd.service
   
   ** (pkttyagent:14981): WARNING **: 22:05:46.204: Unable to register 
authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: 
Cannot determine user of subject
   Error registering authentication agent: 
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of 
subject (polkit-error-quark, 0)
   Job for httpd.service invalid.
   ```
   
   and if I try to restard apache in WHM, I get this error:
   `Apache Restart Output: Apache could not be started due to an error: The 
“/usr/local/cpanel/scripts/restartsrv_httpd --start” command (process 15521) 
reported error number 255 when it ended. Waiting for “httpd” to start 
………Waiting for httpd,litespeed,lscgid to shutdown ... not running. ……failed. 
Cpanel::Exception::Services::StartError Service Status undefined status from 
Cpanel::ServiceManager::Services::Httpd Service Error (XID naswz7) The “httpd” 
service failed to start. Startup Log Jul 09 22:07:47 server.libertaire.net 
systemd[1]: Starting Apache web server managed by cPanel EasyApache... Jul 09 
22:07:47 server.libertaire.net restartsrv_httpd[15564]: AH00526: Syntax error 
on line 1 of /etc/apache2/conf.modules.d/510_pagespeed.conf: Jul 09 22:07:47 
server.libertaire.net restartsrv_httpd[15564]: Invalid command 'ModPagespeed', 
perhaps misspelled or defined by a module not included in the server 
configuration Jul 09 22:07:47 server.libertaire.net systemd[1]: httpd.service: 
control process exited, code=exited status=1 Jul 09 22:07:47 
server.libertaire.net systemd[1]: Failed to start Apache web server managed by 
cPanel EasyApache. Jul 09 22:07:47 server.libertaire.net systemd[1]: Unit 
httpd.service entered failed state. Jul 09 22:07:47 server.libertaire.net 
systemd[1]: httpd.service failed. Log Messages Jul 9 22:05:46 server sudo: root 
: TTY=pts/4 ; PWD=/etc/apache2/conf.modules.d ; USER=root ; 
COMMAND=/bin/systemctl reload httpd.service [Thu Jul 09 22:07:19.616786 2020] 
[mpm_worker:notice] [pid 15275:tid 52612833047616] AH00292: Apache/2.4.43 
(cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- resuming normal 
operations [Thu Jul 09 22:07:19.564152 2020] [:notice] [pid 15272:tid 
52612833047616] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) 
configured. [Thu Jul 09 22:01:39.066691 2020] [mpm_worker:notice] [pid 
13030:tid 54476589839424] AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g 
mod_bwlimited/1.4 configured -- resuming normal operations [Thu Jul 09 
22:01:39.012297 2020] [:notice] [pid 13027:tid 54476589839424] ModSecurity for 
Apache/2.9.3 (http://www.modsecurity.org/) configured. [Thu Jul 09 
21:58:01.714819 2020] [mpm_worker:notice] [pid 10309:tid 48557566215232] 
AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- 
resuming normal operations [Thu Jul 09 21:58:01.661325 2020] [:notice] [pid 
10306:tid 48557566215232] ModSecurity for Apache/2.9.3 
(http://www.modsecurity.org/) configured. [Thu Jul 09 21:56:37.568248 2020] 
[mpm_worker:notice] [pid 9219:tid 52757467239488] AH00292: Apache/2.4.43 
(cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- resuming normal 
operations [Thu Jul 09 21:56:37.515567 2020] [:notice] [pid 9216:tid 
52757467239488] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) 
configured. [Thu Jul 09 21:51:53.006802 2020] [mpm_worker:notice] [pid 6902:tid 
50622306300992] AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g 
mod_bwlimited/1.4 configured -- resuming normal operations [Thu Jul 09 
21:51:52.953148 2020] [:notice] [pid 6899:tid 50622306300992] ModSecurity for 
Apache/2.9.3 (http://www.modsecurity.org/) configured. [Thu Jul 09 
21:27:24.990331 2020] [mpm_worker:notice] [pid 27128:tid 47418393916480] 
AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- 
resuming normal operations [Thu Jul 09 21:27:24.936047 2020] [:notice] [pid 
27124:tid 47418393916480] ModSecurity for Apache/2.9.3 
(http://www.modsecurity.org/) configured. [Thu Jul 09 21:08:02.455488 2020] 
[mpm_worker:notice] [pid 15914:tid 59896394490944] AH00292: Apache/2.4.43 
(cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- resuming normal 
operations Jul 9 22:07:47 server systemd: Failed to start Apache web server 
managed by cPanel EasyApache. httpd has failed. Contact your system 
administrator if the service does not automagically recover. Log: [Thu Jul 09 
22:07:19.564539 2020] [suexec:notice] [pid 15272:tid 52612833047616] AH01232: 
suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Jul 09 
22:07:19.588034 2020] [ssl:warn] [pid 15275:tid 52612833047616] AH01909: 
resistance.libertaire.net:443:0 server certificate does NOT include an ID which 
matches the server name [Thu Jul 09 22:07:19.593739 2020] [ssl:warn] [pid 
15275:tid 52612833047616] AH01909: anarcho-punk.alterweb.ca:443:0 server 
certificate does NOT include an ID which matches the server name [Thu Jul 09 
22:07:19.595648 2020] [ssl:warn] [pid 15275:tid 52612833047616] AH01909: 
sabotagemusique.alterweb.ca:443:0 server certificate does NOT include an ID 
which matches the server name [Thu Jul 09 22:07:19.596075 2020] [ssl:warn] [pid 
15275:tid 52612833047616] AH01909: rebelliontshirts.alterweb.ca:443:0 server 
certificate does NOT include an ID which matches the server name [Thu Jul 09 
22:07:19.596953 2020] [ssl:warn] [pid 15275:tid 52612833047616] AH01909: 
alterweb.alterweb-clients.ca:443:0 server certificate does NOT include an ID 
which matches the server name [Thu Jul 09 22:07:19.599797 2020] [ssl:warn] [pid 
15275:tid 52612833047616] AH01909: alternativechauffage.alterweb.ca:443:0 
server certificate does NOT include an ID which matches the server name [Thu 
Jul 09 22:07:19.616786 2020] [mpm_worker:notice] [pid 15275:tid 52612833047616] 
AH00292: Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4 configured -- 
resuming normal operations [Thu Jul 09 22:07:19.616816 2020] [core:notice] [pid 
15275:tid 52612833047616] AH00094: Command line: '/usr/sbin/httpd' [Thu Jul 09 
22:07:46.114508 2020] [mpm_worker:notice] [pid 15275:tid 52612833047616] 
AH00295: caught SIGTERM, shutting down`
   
   After this, all websites hosted on the server are down. If I empty the file 
"510_pagespeed.conf" then everything works again
   
   Where am I supposed to put the directives using WHM + CentOs 7 ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to