Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Are there any simple instructions for installing mod_pagespeed? #1213

Open
PercyP opened this issue Dec 13, 2015 · 2 comments
Open

Are there any simple instructions for installing mod_pagespeed? #1213

PercyP opened this issue Dec 13, 2015 · 2 comments

Comments

@PercyP
Copy link

PercyP commented Dec 13, 2015

Hi,

I have tried all sorts of tutorials to install mod_pagespeed but none have been successful. The last one I followed (which I found on here in this thread: #109 )

It seems to be the best guide I have found so far, however I can't get past step 4:

Enable mod_deflate (required for mod_pagespeed).
The location of your httpd source directory will vary depending on the version of Apache you have installed. The quickest way to find the correct location is tab completion.

/usr/local/apache/bin/apxs -c -i /home/cpeasyapache/src/httpd-[tab]/modules/filters/mod_deflate.c

I get an error message saying:
No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536

I trued to find the directory path using httpd -V which produced this:

Server version: Apache/2.4.16 (Unix)
Server built: Dec 11 2015 19:09:30
Cpanel::Easy::Apache v3.32.6 rev9999
Server's Module Magic Number: 20120211:47
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

What am I doing wrong here? Are there any better, more up-to-date instructions anywhere?

Kind regards

Percy

@jeffkaufman
Copy link
Contributor

You're using cpanel, right? If so, could you try https://github.com/pagespeed/cpanel

@PercyP
Copy link
Author

PercyP commented Dec 15, 2015

Jeff,

what perfectly simple instructions - worked beautifully!

THANKYOU

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants