You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/07/10 02:15:43 UTC

[GitHub] [incubator-pagespeed-ngx] webtek87 opened a new issue #1696: Can't get pagespeed to work with apache and WHM

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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 edited a comment on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 edited a comment on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657181125


   So what should I do?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657024308


   It found tons of files. Is there any way to know which one is the config used by apache?
   
   i'm using cpnginx (cpanel addon for Nginx) but i'm looking for the apache conf, not nginx
   
   
   ```
   root@server [~]# grep -ir ModPagespeed /etc
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  ModPagespeed on
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # The ModPagespeedFileCa                                                                                                                                 chePath and
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedGeneratedF                                                                                                                                 ilePrefix directories must exist and be
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  ModPagespeedFileCachePat                                                                                                                                 h            "/var/mod_pagespeed/cache/"
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedDisableFil                                                                                                                                 ters and ModPagespeedEnableFilters
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # directives, below. Val                                                                                                                                 id values for ModPagespeedRewriteLevel are
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedRewriteLev                                                                                                                                 el PassThrough
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # conjunction with ModPa                                                                                                                                 gespeedRewriteLevel. For instance, if one
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedDisableFil                                                                                                                                 ters. This directive contains a
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedDisableFil                                                                                                                                 ters rewrite_images
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # conjunction with ModPa                                                                                                                                 gespeedRewriteLevel. For instance, filters
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedEnableFilt                                                                                                                                 ers rewrite_javascript,rewrite_css
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedEnableFilt                                                                                                                                 ers collapse_whitespace,elide_attributes
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedDomain
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  #   ModPagespeedDomain c                                                                                                                                 dn.myhost.com
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedFileCacheS                                                                                                                                 izeKb          102400
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedFileCacheC                                                                                                                                 leanIntervalMs 3600000
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedLRUCacheKb                                                                                                                                 PerProcess     1024
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedLRUCacheBy                                                                                                                                 teLimit        16384
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedCssInlineM                                                                                                                                 axBytes        2048
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedImgInlineM                                                                                                                                 axBytes        2048
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedJsInlineMa                                                                                                                                 xBytes         2048
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedCssOutline                                                                                                                                 MinBytes       3000
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedJsOutlineM                                                                                                                                 inBytes        3000
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedImgMaxRewr                                                                                                                                 itesAtOnce        8
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedSlurpDirec                                                                                                                                 tory ...
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedSlurpReadO                                                                                                                                 nly on
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedMaxSegment                                                                                                                                 Length 250
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedCombineAcr                                                                                                                                 ossPaths off
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedLogRewrite                                                                                                                                 Timing on
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedEnableFilt                                                                                                                                 ers add_instrumentation
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # You can use a differen                                                                                                                                 t location by adding the ModPagespeedBeaconUrl
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmnew:  # ModPagespeedStatistics                                                                                                                                  off
   Binary file /etc/apache2/conf.modules.d/ea-apache24-mod_pagespeed-latest-stable.                                                                                                                                 src.rpm matches
   /etc/apache2/conf.modules.d/510_pagespeed.conf.rpmsave:# ModPageSpeed Off
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedMapOriginDomain "http:                                                                                                                                 //localhost" "https://www.pirate-punk.net"
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedLoadFromFile "https://                                                                                                                                 www.pirate-punk.net/" \
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedDomain http*://*.pirat                                                                                                                                 e-punk.net
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedFetchHttps enable,allo                                                                                                                                 w_self_signed,allow_unknown_certificate_authority
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedSslCertDirectory "/etc                                                                                                                                 /pki/tls/certs"
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedSslCertFile "/etc/pki/                                                                                                                                 tls/certs/cert.pem"
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedFileCachePath                                                                                                                                             "/var/cache/pagespeed/"
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedFileCacheSizeKb                                                                                                                                           102400
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedFileCacheCleanInterval                                                                                                                                 Ms 3600000
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedFileCacheInodeLimit                                                                                                                                       500000
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedSupportNoScriptEnabled                                                                                                                                  false
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters rewrite_                                                                                                                                 style_attributes,rewrite_css
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters combine_                                                                                                                                 css
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters prioriti                                                                                                                                 ze_critical_css
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters outline_                                                                                                                                 css
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters recompre                                                                                                                                 ss_images
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters convert_                                                                                                                                 png_to_jpeg
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters convert_                                                                                                                                 jpeg_to_webp
   /etc/cpnginx/templates/custom/4356543653.conf:#ModPagespeedEnableFilters convert                                                                                                                                 _jpeg_to_progressive
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters convert_                                                                                                                                 to_webp_lossless
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters recompre                                                                                                                                 ss_webp
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters lazyload                                                                                                                                 _images
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters collapse                                                                                                                                 _whitespace
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters remove_c                                                                                                                                 omments
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters extend_c                                                                                                                                 ache
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters make_goo                                                                                                                                 gle_analytics_async
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters rewrite_                                                                                                                                 javascript
   /etc/cpnginx/templates/custom/4356543653.conf:# ModPagespeedEnableFilters combin                                                                                                                                 e_javascript
   /etc/cpnginx/templates/custom/4356543653.conf:# ModPagespeedEnableFilters defer_                                                                                                                                 javascript
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters outline_                                                                                                                                 javascript
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedDownstreamCachePurgeLo                                                                                                                                 cationPrefix http://localhost:80
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedDownstreamCacheRebeaco                                                                                                                                 ningKey "qpwo22"
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedDisableRewriteOnNoTran                                                                                                                                 sform off
   /etc/cpnginx/templates/custom/4356543653.conf:#ModPagespeedLoadFromFileRuleMatch                                                                                                                                  disallow .*
   /etc/cpnginx/templates/custom/4356543653.conf:#ModPagespeedLoadFromFileRuleMatch                                                                                                                                  \.(js|css|jpg|jpeg|png|pdf|gif)$
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedLoadFromFileCacheTtlMs                                                                                                                                  604800000
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedDomain *
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters rewrite_                                                                                                                                 domains
   /etc/cpnginx/templates/custom/4356543653.conf:ModPagespeedEnableFilters hint_pre                                                                                                                                 load_subresources
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeed On
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedMapOriginDomain "http://l                                                                                                                                 ocalhost" "https://www.libertaire.net"
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedDomain http*://*.libertai                                                                                                                                 re.net
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedFetchHttps enable,allow_s                                                                                                                                 elf_signed,allow_unknown_certificate_authority
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedSslCertDirectory "/etc/pk                                                                                                                                 i/tls/certs"
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedSslCertFile "/etc/pki/tls                                                                                                                                 /certs/cert.pem"
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedLoadFromFile "https://www                                                                                                                                 .libertaire.net/" \
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedFileCachePath                                                                                                                                             "/var/cache/pagespeed/"
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedFileCacheSizeKb                                                                                                                                           102400
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedFileCacheCleanIntervalMs                                                                                                                                  3600000
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedFileCacheInodeLimit                                                                                                                                       500000
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedSupportNoScriptEnabled fa                                                                                                                                 lse
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters rewrite_sty                                                                                                                                 le_attributes,rewrite_css
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters combine_css
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters prioritize_                                                                                                                                 critical_css
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters outline_css
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters recompress_                                                                                                                                 images
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters convert_png                                                                                                                                 _to_jpeg
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters convert_jpe                                                                                                                                 g_to_webp
   /etc/cpnginx/templates/custom/5354345.conf:#ModPagespeedEnableFilters convert_jp                                                                                                                                 eg_to_progressive
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters convert_to_                                                                                                                                 webp_lossless
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters recompress_                                                                                                                                 webp
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters lazyload_im                                                                                                                                 ages
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters collapse_wh                                                                                                                                 itespace
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters remove_comm                                                                                                                                 ents
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters extend_cach                                                                                                                                 e
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters make_google                                                                                                                                 _analytics_async
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters rewrite_jav                                                                                                                                 ascript
   /etc/cpnginx/templates/custom/5354345.conf:# ModPagespeedEnableFilters combine_j                                                                                                                                 avascript
   /etc/cpnginx/templates/custom/5354345.conf:# ModPagespeedEnableFilters defer_jav                                                                                                                                 ascript
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters outline_jav                                                                                                                                 ascript
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedDownstreamCachePurgeLocat                                                                                                                                 ionPrefix http://localhost:80
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedDownstreamCacheRebeaconin                                                                                                                                 gKey "qpwo22"
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedDisableRewriteOnNoTransfo                                                                                                                                 rm off
   /etc/cpnginx/templates/custom/5354345.conf:#ModPagespeedLoadFromFileRuleMatch di                                                                                                                                 sallow .*
   /etc/cpnginx/templates/custom/5354345.conf:#ModPagespeedLoadFromFileRuleMatch \.                                                                                                                                 (js|css|jpg|jpeg|png|pdf|gif)$
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedLoadFromFileCacheTtlMs 60                                                                                                                                 4800000
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedDomain *
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters rewrite_dom                                                                                                                                 ains
   /etc/cpnginx/templates/custom/5354345.conf:ModPagespeedEnableFilters hint_preloa                                                                                                                                 d_subresources
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeed On
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedMapOriginDomain "http                                                                                                                                 ://localhost" "https://www.pirate-punk.net"
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedDomain http*://*.pira                                                                                                                                 te-punk.net
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedFetchHttps enable,all                                                                                                                                 ow_self_signed,allow_unknown_certificate_authority
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedSslCertDirectory "/et                                                                                                                                 c/pki/tls/certs"
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedSslCertFile "/etc/pki                                                                                                                                 /tls/certs/cert.pem"
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedLoadFromFile "https:/                                                                                                                                 /www.pirate-punk.net/" \
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedFileCachePath                                                                                                                                             "/var/cache/pagespeed/"
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedFileCacheSizeKb                                                                                                                                           102400
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedFileCacheCleanInterva                                                                                                                                 lMs 3600000
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedFileCacheInodeLimit                                                                                                                                       500000
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedSupportNoScriptEnable                                                                                                                                 d false
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters rewrite                                                                                                                                 _style_attributes,rewrite_css
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters combine                                                                                                                                 _css
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters priorit                                                                                                                                 ize_critical_css
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters outline                                                                                                                                 _css
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters recompr                                                                                                                                 ess_images
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters convert                                                                                                                                 _png_to_jpeg
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters convert                                                                                                                                 _jpeg_to_webp
   /etc/cpnginx/templates/custom/87657865875.conf:#ModPagespeedEnableFilters conver                                                                                                                                 t_jpeg_to_progressive
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters convert                                                                                                                                 _to_webp_lossless
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters recompr                                                                                                                                 ess_webp
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters lazyloa                                                                                                                                 d_images
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters collaps                                                                                                                                 e_whitespace
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters remove_                                                                                                                                 comments
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters extend_                                                                                                                                 cache
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters make_go                                                                                                                                 ogle_analytics_async
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters rewrite                                                                                                                                 _javascript
   /etc/cpnginx/templates/custom/87657865875.conf:# ModPagespeedEnableFilters combi                                                                                                                                 ne_javascript
   /etc/cpnginx/templates/custom/87657865875.conf:# ModPagespeedEnableFilters defer                                                                                                                                 _javascript
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters outline                                                                                                                                 _javascript
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedDownstreamCachePurgeL                                                                                                                                 ocationPrefix http://localhost:80
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedDownstreamCacheRebeac                                                                                                                                 oningKey "qpwo22"
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedDisableRewriteOnNoTra                                                                                                                                 nsform off
   /etc/cpnginx/templates/custom/87657865875.conf:#ModPagespeedLoadFromFileRuleMatc                                                                                                                                 h disallow .*
   /etc/cpnginx/templates/custom/87657865875.conf:#ModPagespeedLoadFromFileRuleMatc                                                                                                                                 h \.(js|css|jpg|jpeg|png|pdf|gif)$
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedLoadFromFileCacheTtlM                                                                                                                                 s 604800000
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedDomain *
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters rewrite                                                                                                                                 _domains
   /etc/cpnginx/templates/custom/87657865875.conf:ModPagespeedEnableFilters hint_pr                                                                                                                                 eload_subresources
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedMapOriginDomain "http://localho                                                                                                                                 st" "https://www.pirate-punk.net"
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedLoadFromFile "https://www.pirat                                                                                                                                 e-punk.net/" \
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedDomain http*://*.pirate-punk.ne                                                                                                                                 t
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedFetchHttps enable,allow_self_si                                                                                                                                 gned,allow_unknown_certificate_authority
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedSslCertDirectory "/etc/pki/tls/                                                                                                                                 certs"
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedSslCertFile "/etc/pki/tls/certs                                                                                                                                 /cert.pem"
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedFileCachePath            "/var/                                                                                                                                 cache/pagespeed/"
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedFileCacheSizeKb          102400
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedFileCacheCleanIntervalMs 360000                                                                                                                                 0
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedFileCacheInodeLimit      500000
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedSupportNoScriptEnabled false
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters rewrite_style_att                                                                                                                                 ributes,rewrite_css
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters combine_css
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters prioritize_critic                                                                                                                                 al_css
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters outline_css
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters recompress_images
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters convert_png_to_jp                                                                                                                                 eg
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters convert_jpeg_to_w                                                                                                                                 ebp
   /etc/cpnginx/templates/custom/2.conf:#ModPagespeedEnableFilters convert_jpeg_to_                                                                                                                                 progressive
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters convert_to_webp_l                                                                                                                                 ossless
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters recompress_webp
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters lazyload_images
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters collapse_whitespa                                                                                                                                 ce
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters remove_comments
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters extend_cache
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters make_google_analy                                                                                                                                 tics_async
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters rewrite_javascrip                                                                                                                                 t
   /etc/cpnginx/templates/custom/2.conf:# ModPagespeedEnableFilters combine_javascr                                                                                                                                 ipt
   /etc/cpnginx/templates/custom/2.conf:# ModPagespeedEnableFilters defer_javascrip                                                                                                                                 t
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters outline_javascrip                                                                                                                                 t
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedDownstreamCachePurgeLocationPre                                                                                                                                 fix http://localhost:80
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedDownstreamCacheRebeaconingKey "                                                                                                                                 qpwo22"
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedDisableRewriteOnNoTransform off
   /etc/cpnginx/templates/custom/2.conf:#ModPagespeedLoadFromFileRuleMatch disallow                                                                                                                                  .*
   /etc/cpnginx/templates/custom/2.conf:#ModPagespeedLoadFromFileRuleMatch \.(js|cs                                                                                                                                 s|jpg|jpeg|png|pdf|gif)$
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedLoadFromFileCacheTtlMs 60480000                                                                                                                                 0
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedDomain *
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters rewrite_domains
   /etc/cpnginx/templates/custom/2.conf:ModPagespeedEnableFilters hint_preload_subr                                                                                                                                 esources
   
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657126472


   I love mod_pagespeed but this is so complicated to install, just guessing which conf file to use takes days :(
   
   So I completely disabled cpnginx to remove some noise. Libertaire.net should be running only on Apache now. But I still have the same problem if Ii try to edit  /etc/apache2/conf.d/includes/pre_main_global.conf  then the server will crash and the websites won't load...
   
   So I tried starting over and following the instructions for EasyApache4 here: https://github.com/apache/incubator-pagespeed-cpanel
   But i'm stuck, as soon as I do this command:
   `rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm`
   SSH will just hang on there and it's stuck
   
   ```
   root@server [~]# wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apac                                                                         he24-mod_pagespeed-latest-stable.src.rpm
   --2020-07-11 16:24:07--  https://github.com/pagespeed/cpanel/raw/master/EA4/ea-a                                                                         pache24-mod_pagespeed-latest-stable.src.rpm
   Resolving github.com (github.com)... 140.82.113.4
   Connecting to github.com (github.com)|140.82.113.4|:443... connected.
   HTTP request sent, awaiting response... 301 Moved Permanently
   Location: https://github.com/apache/incubator-pagespeed-cpanel/raw/master/EA4/ea                                                                         -apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://github.com/apache/incubator-pagespeed-cpanel/ra                                                                         w/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Reusing existing connection to github.com:443.
   HTTP request sent, awaiting response... 302 Found
   Location: https://raw.githubusercontent.com/apache/incubator-pagespeed-cpanel/ma                                                                         ster/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://raw.githubusercontent.com/apache/incubator-page                                                                         speed-cpanel/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133                                                                         , 151.101.64.133, 151.101.128.133, ...
   Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.13                                                                         3|:443... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 5464 (5.3K) [audio/pn-realaudio-plugin]
   Saving to: ‘ea-apache24-mod_pagespeed-latest-stable.src.rpm.2’
   
   100%[======================================>] 5,464       --.-K/s   in 0s
   
   2020-07-11 16:24:07 (91.3 MB/s) - ‘ea-apache24-mod_pagespeed-latest-stable.src.r                                                                         pm.2’ saved [5464/5464]
   
   root@server [~]# rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.                                                                         rpm
   Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm
   warning: bogus date in %changelog: Mon Jun 28 2016 Prajith <prajithpalakkuda@gma                                                                         il.com> - 1.9-3
   Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MiCHlq
   + umask 022
   + cd /root/rpmbuild/BUILD
   + wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/dire                                                                         ct/mod-pagespeed-stable_current_x86_64.rpm
   ```
   
   Trying to use mod_pagespeed with cpanel is soooo frustrating compared to Plesk... 
   Using Plesk I just have to copy and paste the directive into Plesk Admin Panel and then BOOM everything works in a few seconds. No messing with random conf files, no messing with ssh, no server crashing... Here's a screenshot of another server with Plesk just to show how easy it is http://prntscr.com/tg1lc5 ... i am surprised WHM is more expensive and has more features, but it's much more harder to use than plesk :(


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] oschaaf commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
oschaaf commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657267523


   cpanel.net states they offer world class support. Maybe that works better for you? We’re volunteering to help here, and it looks like a no one has the (cpanel) expertise you are looking for. 
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657017245


   Yes, if I leave 510_pagespeed.conf empty, all works and page speed is enabled. 
   But as soon as I add anything to this file, the web server won't start.
   
   Yes, I can see the filters are enabled when 510_pagespeed.conf is left blank. I also think the filters are set in another config file ... but where? How can I find this file?
   
   Thanks for the support


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657016133


   If you leave 510_pagespeed.conf file empty all works?
   You can try to add url parameter, when pagespeed is working, https://yoursite.com/?PageSpeedFilters=+debug, then in the html code of the page you can view what filters are enabled. If pagespeed is working and you have some filters enabled, then these filters are set in other config file.
   
   In other hand, the 1st error you reported is related to polkit service, a security service. Unfortunately I don´t know nothing about it, so can´t advice how to configure it.
   
   Salud.
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657260619


   ok i see i will get no help here so i'm giving up and uninstalling pagespeed. Support is VERY BAD and just trying to find the configuration file is a pain in the ass and you didn't help me at all. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657029316


   But for example, for https://www.libertaire.net/ the server is nginx not apache.
   Maybe you have some proxy cache config? Some like  user -> nginx +pagespeed -> apache?
   If these are the config, you need to find where the nginx config files are, normal installations, w/o any panel, store these files under /etc/nginx/... 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] oschaaf closed issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
oschaaf closed issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 edited a comment on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 edited a comment on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657126472


   I love mod_pagespeed but this is so complicated to install, just guessing which conf file to use takes days :(
   
   So I completely disabled cpnginx to remove some noise. Libertaire.net should be running only on Apache now. But I still have the same problem if Ii try to edit  /etc/apache2/conf.d/includes/pre_main_global.conf  then the server will crash and the websites won't load...
   Restarting Apache in WHM returns this error:  
   `AH00526: Syntax error on line 1 of /etc/apache2/conf.modules.d/510_pagespeed.conf: Jul 11 17:25:47 server.libertaire.net restartsrv_httpd[30744]: Invalid command 'ModPagespeed', perhaps misspelled or defined by a module not included in the server configuration
   `
   So I tried starting over and following the instructions for EasyApache4 here: https://github.com/apache/incubator-pagespeed-cpanel
   But i'm stuck, as soon as I do this command:
   `rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm`
   SSH will just hang on there and it's stuck
   
   When I go to EasyApache in WHM, it says PageSpeed module should already be enabled http://prntscr.com/tg2e48
   
   ```
   root@server [~]# wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apac                                                                         he24-mod_pagespeed-latest-stable.src.rpm
   --2020-07-11 16:24:07--  https://github.com/pagespeed/cpanel/raw/master/EA4/ea-a                                                                         pache24-mod_pagespeed-latest-stable.src.rpm
   Resolving github.com (github.com)... 140.82.113.4
   Connecting to github.com (github.com)|140.82.113.4|:443... connected.
   HTTP request sent, awaiting response... 301 Moved Permanently
   Location: https://github.com/apache/incubator-pagespeed-cpanel/raw/master/EA4/ea                                                                         -apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://github.com/apache/incubator-pagespeed-cpanel/ra                                                                         w/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Reusing existing connection to github.com:443.
   HTTP request sent, awaiting response... 302 Found
   Location: https://raw.githubusercontent.com/apache/incubator-pagespeed-cpanel/ma                                                                         ster/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://raw.githubusercontent.com/apache/incubator-page                                                                         speed-cpanel/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133                                                                         , 151.101.64.133, 151.101.128.133, ...
   Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.13                                                                         3|:443... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 5464 (5.3K) [audio/pn-realaudio-plugin]
   Saving to: ‘ea-apache24-mod_pagespeed-latest-stable.src.rpm.2’
   
   100%[======================================>] 5,464       --.-K/s   in 0s
   
   2020-07-11 16:24:07 (91.3 MB/s) - ‘ea-apache24-mod_pagespeed-latest-stable.src.r                                                                         pm.2’ saved [5464/5464]
   
   root@server [~]# rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.                                                                         rpm
   Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm
   warning: bogus date in %changelog: Mon Jun 28 2016 Prajith <prajithpalakkuda@gma                                                                         il.com> - 1.9-3
   Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MiCHlq
   + umask 022
   + cd /root/rpmbuild/BUILD
   + wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/dire                                                                         ct/mod-pagespeed-stable_current_x86_64.rpm
   ```
   
   Trying to use mod_pagespeed with cpanel is soooo frustrating compared to Plesk... 
   Using Plesk I just have to copy and paste the directive into Plesk Admin Panel and then BOOM everything works in a few seconds. No messing with random conf files, no messing with ssh, no server crashing... Here's a screenshot of another server with Plesk just to show how easy it is http://prntscr.com/tg1lc5 ... i am surprised WHM is more expensive and has more features, but it's much more harder to use than plesk :(


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 edited a comment on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 edited a comment on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657126472


   I love mod_pagespeed but this is so complicated to install, just guessing which conf file to use takes days :(
   
   So I completely disabled cpnginx to remove some noise. Libertaire.net should be running only on Apache now. But I still have the same problem if Ii try to edit  /etc/apache2/conf.d/includes/pre_main_global.conf  then the server will crash and the websites won't load...
   Restarting Apache in WHM returns this error:  
   `AH00526: Syntax error on line 1 of /etc/apache2/conf.modules.d/510_pagespeed.conf: Jul 11 17:25:47 server.libertaire.net restartsrv_httpd[30744]: Invalid command 'ModPagespeed', perhaps misspelled or defined by a module not included in the server configuration
   `
   So I tried starting over and following the instructions for EasyApache4 here: https://github.com/apache/incubator-pagespeed-cpanel
   But i'm stuck, as soon as I do this command:
   `rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm`
   SSH will just hang on there and it's stuck
   
   ```
   root@server [~]# wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apac                                                                         he24-mod_pagespeed-latest-stable.src.rpm
   --2020-07-11 16:24:07--  https://github.com/pagespeed/cpanel/raw/master/EA4/ea-a                                                                         pache24-mod_pagespeed-latest-stable.src.rpm
   Resolving github.com (github.com)... 140.82.113.4
   Connecting to github.com (github.com)|140.82.113.4|:443... connected.
   HTTP request sent, awaiting response... 301 Moved Permanently
   Location: https://github.com/apache/incubator-pagespeed-cpanel/raw/master/EA4/ea                                                                         -apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://github.com/apache/incubator-pagespeed-cpanel/ra                                                                         w/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Reusing existing connection to github.com:443.
   HTTP request sent, awaiting response... 302 Found
   Location: https://raw.githubusercontent.com/apache/incubator-pagespeed-cpanel/ma                                                                         ster/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm [following]
   --2020-07-11 16:24:07--  https://raw.githubusercontent.com/apache/incubator-page                                                                         speed-cpanel/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
   Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133                                                                         , 151.101.64.133, 151.101.128.133, ...
   Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.13                                                                         3|:443... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 5464 (5.3K) [audio/pn-realaudio-plugin]
   Saving to: ‘ea-apache24-mod_pagespeed-latest-stable.src.rpm.2’
   
   100%[======================================>] 5,464       --.-K/s   in 0s
   
   2020-07-11 16:24:07 (91.3 MB/s) - ‘ea-apache24-mod_pagespeed-latest-stable.src.r                                                                         pm.2’ saved [5464/5464]
   
   root@server [~]# rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.                                                                         rpm
   Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm
   warning: bogus date in %changelog: Mon Jun 28 2016 Prajith <prajithpalakkuda@gma                                                                         il.com> - 1.9-3
   Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MiCHlq
   + umask 022
   + cd /root/rpmbuild/BUILD
   + wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/dire                                                                         ct/mod-pagespeed-stable_current_x86_64.rpm
   ```
   
   Trying to use mod_pagespeed with cpanel is soooo frustrating compared to Plesk... 
   Using Plesk I just have to copy and paste the directive into Plesk Admin Panel and then BOOM everything works in a few seconds. No messing with random conf files, no messing with ssh, no server crashing... Here's a screenshot of another server with Plesk just to show how easy it is http://prntscr.com/tg1lc5 ... i am surprised WHM is more expensive and has more features, but it's much more harder to use than plesk :(


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 edited a comment on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 edited a comment on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657267972


   lol what a joke pagespeed is telling me to contact cpanel and then cpanel is telling me to contact pagespeed. AWFUL SUPPORT!! Pagespeed is TERRIBLE. Thanks for nothing
   
   
   
   Ehsan Dowlatshah
   Hello,
   
   As my colleagues previously mentioned, unfortunately, cPanel Support is only able to assist with inquiries related to, or caused by cPanel, or the basic configuration of the bundled software. Since mod_pagespeed is not provided by cPanel, the previous links and steps were provided as a courtesy.
   
   The third-party module 'mod_pagespeed' is available via their official GitHub Repository here: https://github.com/pagespeed/cpanel
   
   Also looking at the server it seems that currently, Apache is running:
   [15:31:43 server root@93508003 /etc/apache2/conf.modules.d]cPs# /scripts/restartsrv_httpd --status
   httpd (/usr/sbin/httpd -k start) is running as root with PID 16552 (pidfile+/proc check method).
   With that being said, I did some research and I was able to find these link related to the error you are seeing: (The errors are in Apache's log file)
   
   https://github.com/apache/incubator-pagespeed-mod/issues/815
   https://github.com/apache/incubator-pagespeed-mod/issues/1053
   https://groups.google.com/forum/#!topic/mod-pagespeed-discuss/mmPBxLgv_tM
   https://netfocus.com.my/post/installing-apache-2-4-6-with-mod_pagespeed-on-centoscloudlinux-7-2-64-bit/
   
   **This seems to be a common issue with mod_pagespeed.** 
   
   We want everyone who uses cPanel to have an amazing experience, both with our software and our support. Sometimes that means pointing you to an expert or external resource about your particular problem if it is not a cPanel-related issue. I hope this information is helpful. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657181125


   So there's no solution?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] webtek87 commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
webtek87 commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657267972


   lol what a joke pagespeed is telling me to contact cpanel and then cpanel is telling me to contact pagespeed. AWFUL SUPPORT!! Pagespeed is TERRIBLE. Thanks for nothing
   
   
   
   Ehsan Dowlatshah
   Hello,
   
   As my colleagues previously mentioned, unfortunately, cPanel Support is only able to assist with inquiries related to, or caused by cPanel, or the basic configuration of the bundled software. Since mod_pagespeed is not provided by cPanel, the previous links and steps were provided as a courtesy.
   
   The third-party module 'mod_pagespeed' is available via their official GitHub Repository here: https://github.com/pagespeed/cpanel
   
   Also looking at the server it seems that currently, Apache is running:
   [15:31:43 server root@93508003 /etc/apache2/conf.modules.d]cPs# /scripts/restartsrv_httpd --status
   httpd (/usr/sbin/httpd -k start) is running as root with PID 16552 (pidfile+/proc check method).
   With that being said, I did some research and I was able to find these link related to the error you are seeing: (The errors are in Apache's log file)
   
   https://github.com/apache/incubator-pagespeed-mod/issues/815
   https://github.com/apache/incubator-pagespeed-mod/issues/1053
   https://groups.google.com/forum/#!topic/mod-pagespeed-discuss/mmPBxLgv_tM
   https://netfocus.com.my/post/installing-apache-2-4-6-with-mod_pagespeed-on-centoscloudlinux-7-2-64-bit/
   
   This seems to be a common issue with mod_pagespeed. 
   
   We want everyone who uses cPanel to have an amazing experience, both with our software and our support. Sometimes that means pointing you to an expert or external resource about your particular problem if it is not a cPanel-related issue. I hope this information is helpful. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657220764


   I don´t know what solution is the better for you, as far I don´t know your technical skills or your needs.
   I don´t use any panel to admin my site. Linux, wordpress and all the stuff it need, nginx from the nginx site and the pagespeed module, these 2 last compiled cause no packages are available for nginx. But if you use apache, you can use the available pagespeed pakages.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657165402


   Maybe the problem is not pagespeed module rather than the scripts these panels and tools use.
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] Lofesa commented on issue #1696: Can't get pagespeed to work with apache and WHM

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #1696:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1696#issuecomment-657022562


   Well, if you have access to a ssh session (or telnet) to the server you can try
   `grep -ir ModPagespeed /directory-you-think-config-files-are`
   this command seek for ModPagespeed in the content of files, no matter if uppercase or lowercase (-i) and recursive to all subdirs (-r)


----------------------------------------------------------------
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:
users@infra.apache.org