incubator-pagespeed-cpanel
incubator-pagespeed-cpanel copied to clipboard
Installation instructions incorrect / missing file
I am trying to setup pagespeed on EasyApache4, how ever...
"https://github.com/Prajithp/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-1.9-32.11.src.rpm" Does not seem to exist and "error: ea-apache24-mod_pagespeed-latest-stable.src.rpm cannot be installed"
Same issue here
I have already created a pull request to update the installation instruction. In the meantime you can try this.
https://github.com/Prajithp/cpanel/blob/master/README.md
Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8D0JIi
- umask 022
- cd /root/rpmbuild/BUILD
- LANG=C
- export LANG
- unset DISPLAY
- wget -q -N -O mod-pagespeed-stable.rpm https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
- exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6vZyvW
- umask 022
- cd /root/rpmbuild/BUILD
- LANG=C
- export LANG
- unset DISPLAY
- rpm2cpio mod-pagespeed-stable.rpm
- cpio -idmv ./etc/cron.daily/mod-pagespeed ./etc/httpd/conf.d/pagespeed.conf ./etc/httpd/conf.d/pagespeed_libraries.conf ./usr/bin/pagespeed_js_minify ./usr/lib64/httpd/modules/mod_pagespeed.so ./usr/lib64/httpd/modules/mod_pagespeed_ap24.so ./var/cache/mod_pagespeed ./var/log/pagespeed 32590 blocks
- mv usr/lib64/httpd/modules/mod_pagespeed.so usr/lib64/httpd/modules/mod_pagespeed_ap24.so .
- /usr/bin/strip -g mod_pagespeed.so
- /usr/bin/strip -g mod_pagespeed_ap24.so
- exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.0AK0fE
- umask 022
- cd /root/rpmbuild/BUILD
- '[' /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 '!=' / ']'
- rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 ++ dirname /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
- mkdir -p /root/rpmbuild/BUILDROOT
- mkdir /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
- LANG=C
- export LANG
- unset DISPLAY
- rm -rf /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64
- mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}'
- install -m755 mod_pagespeed.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
- install -m755 mod_pagespeed_ap24.so '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_moddir}/'
- mkdir -p '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}'
- install -m 644 /root/rpmbuild/SOURCES/456_pagespeed.conf '/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64%{_httpd_modconfdir}/'
- /usr/lib/rpm/check-buildroot find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
- /usr/lib/rpm/redhat/brp-compress /usr/lib/rpm/redhat/brp-compress: line 8: cd: /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64: No such file or directory
- /usr/lib/rpm/redhat/brp-strip /usr/bin/strip find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
- /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
- /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
- /usr/lib/rpm/brp-python-bytecompile
find:
/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory find:
/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory Can't list /root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64 - /usr/lib/rpm/redhat/brp-python-hardlink find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory
- /usr/lib/rpm/redhat/brp-java-repack-jars find: `/root/rpmbuild/BUILDROOT/ea-apache24-mod_pagespeed-latest-stable.x86_64': No such file or directory Processing files: ea-apache24-mod_pagespeed-latest-stable.x86_64 error: File must begin with "/": %{httpd_moddir}/.so error: File must begin with "/": %{httpd_modconfdir}/.conf
RPM build errors: File must begin with "/": %{httpd_moddir}/.so File must begin with "/": %{httpd_modconfdir}/.conf
throws an error
Could you please check whether the files ./rpm/macros.apache2 and /etc/cpanel/ea4/is_ea4 exists or not?
/rpm/macros.apache2 does not exist is_ea4 exist.
there is not even rpm directory
sorry the correct file path is /etc/rpm/macros.apache2. If the file is exists, please post the content here.
Hi the only files I have at this level are,
/etc/rpm/macros.dist /etc/rpm/macros.ghc-srpm /etc/rpm/macros.perl /etc/rpm/macros.scl
okay, do one thing, create a file called '/etc/rpm/macros.apache2' and paste the below content into that.
%_httpd_mmn 20120211x8664
%_httpd_apxs /usr/bin/apxs
%_httpd_dir /etc/apache2
%_httpd_bindir %{_httpd_dir}/bin
%_httpd_modconfdir %{_httpd_dir}/conf.modules.d
%_httpd_confdir %{_httpd_dir}/conf.d
%_httpd_contentdir /usr/share/apache2
%_httpd_moddir /usr/lib64/apache2/modules
Then check again.
All works thank man
I owe you a beer tell me where can I send you at least £5gbp?
Thank you acidgod :)
We had the same issue "acidgod" ran into when trying to install this. The same missing package at https://github.com/Prajithp/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-1.9-32.11.src.rpm.
Getting it from https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm and running the -ivh flags threw up RPM build errrors.
Please does this workaround (creating a file '/etc/rpm/macros.apache2') still valid for production systems running EasyApache 4 with cPanel 54?
Thank you!
Hello Prajith i got the following installation error. Cannot proceed. please help.
rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm error: ea-apache24-mod_pagespeed-latest-stable.src.rpm cannot be installed
I'm just succeed to install mod_pagespeed on EA4 , but when i try to edit the pagespeed.conf , the file doesnt exists
cat: /usr/local/apache/conf/pagespeed.conf: No such file or directory
Is there anyone here facing the same issue as i am ?
rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm error: ea-apache24-mod_pagespeed-latest-stable.src.rpm cannot be installed
same thing here
#rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm.
error: ea-apache24-mod_pagespeed-latest-stable.src.rpm. cannot be installed
same problem error: ea-apache24-mod_pagespeed-latest-stable.src.rpm. cannot be installed
Same problem.
Hi there, I had a problem with installing mod_pagespeed too.
- Issue: The Version-Modul of EA4 (was not installed)
- Issue: I couldn't find the pagespeed.conf by using find -name pagespeed.conf.
- Issue resolved by installing the missing module :-)
- Issue: I used locate after I updated the database (updatedb). locate pagespeed.conf showed me the file, it was called 456_pagespeed.conf. On Centos 6.8 with cPanel 11.56 and EA4 it is located at /etc/apache2/conf.modules.d
Regards Thorsten
thanks this work
okay, do one thing, create a file called '/etc/rpm/macros.apache2' and paste the below content into that.
%_httpd_mmn 20120211x8664 %_httpd_apxs /usr/bin/apxs %_httpd_dir /etc/apache2 %_httpd_bindir %{_httpd_dir}/bin %_httpd_modconfdir %{_httpd_dir}/conf.modules.d %_httpd_confdir %{_httpd_dir}/conf.d %_httpd_contentdir /usr/share/apache2 %_httpd_moddir /usr/lib64/apache2/modules Then check again.
Ive tried this fix as well and its no longer working... same error:
error: ea-apache24-mod_pagespeed-latest-stable.src.rpm cannot be installed
Look like most of people face this issue , just look at your screen , go 1 step back and check the downloaded file name in some case may be different most of people just run " rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm" command but sometimes file name can be different for example may be file saved as ea-apache24-mod_pagespeed-latest-stable.src.rpm.9 or ea-apache24-mod_pagespeed-latest-stable.src.rpm.x so in this case you should change file name in command before running that for above example command should be rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm.9 for more information check following links: http://smartechtips.blogspot.com/2017/02/how-install-google-pagespeed-on.html
https://features.cpanel.net/topic/add-support-for-mod_pagespeed-to-easyapache4
cPanel just released there experimental branch for easy apache 4
Regards,
Founder of Zenith Media Canada
1-514-316-1366 1-647-848-1366 1-855-ZENITH-0
Extension: 1337
@JonTheWong www.zenithmedia.ca
https://gist.github.com/wgnsa/d9e964995e4295430780bb68d6d895bc