incubator-pagespeed-cpanel icon indicating copy to clipboard operation
incubator-pagespeed-cpanel copied to clipboard

Installation instructions incorrect / missing file

Open katzsimon opened this issue 9 years ago • 26 comments

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"

katzsimon avatar Dec 19 '15 18:12 katzsimon

Same issue here

asolopovas avatar Dec 20 '15 00:12 asolopovas

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

Prajithp avatar Dec 20 '15 11:12 Prajithp

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

asolopovas avatar Dec 20 '15 15:12 asolopovas

throws an error

asolopovas avatar Dec 20 '15 15:12 asolopovas

Could you please check whether the files ./rpm/macros.apache2 and /etc/cpanel/ea4/is_ea4 exists or not?

Prajithp avatar Dec 20 '15 16:12 Prajithp

/rpm/macros.apache2 does not exist is_ea4 exist.

asolopovas avatar Dec 20 '15 16:12 asolopovas

there is not even rpm directory

asolopovas avatar Dec 20 '15 16:12 asolopovas

sorry the correct file path is /etc/rpm/macros.apache2. If the file is exists, please post the content here.

Prajithp avatar Dec 21 '15 04:12 Prajithp

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

asolopovas avatar Dec 21 '15 10:12 asolopovas

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.

Prajithp avatar Dec 21 '15 10:12 Prajithp

All works thank man

asolopovas avatar Dec 21 '15 10:12 asolopovas

I owe you a beer tell me where can I send you at least £5gbp?

asolopovas avatar Dec 21 '15 10:12 asolopovas

Thank you acidgod :)

Prajithp avatar Dec 22 '15 07:12 Prajithp

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!

hostragon-hosting avatar Jan 24 '16 08:01 hostragon-hosting

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

iamstevenelson avatar Mar 16 '16 05:03 iamstevenelson

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 ?

dammionx avatar Apr 26 '16 09:04 dammionx

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

WganMe avatar Jun 15 '16 20:06 WganMe

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

tbernardi avatar Jun 17 '16 19:06 tbernardi

same problem error: ea-apache24-mod_pagespeed-latest-stable.src.rpm. cannot be installed

josejavish avatar Aug 07 '16 17:08 josejavish

Same problem.

GZaccaroni avatar Oct 04 '16 08:10 GZaccaroni

Hi there, I had a problem with installing mod_pagespeed too.

  1. Issue: The Version-Modul of EA4 (was not installed)
  2. Issue: I couldn't find the pagespeed.conf by using find -name pagespeed.conf.
  3. Issue resolved by installing the missing module :-)
  4. 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

tholler3012 avatar Oct 06 '16 10:10 tholler3012

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.

mehrdadali14 avatar Feb 11 '17 06:02 mehrdadali14

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

theozsnowman avatar Mar 15 '17 00:03 theozsnowman

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

shigri20 avatar Mar 16 '17 05:03 shigri20

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

JonTheWong avatar Mar 16 '17 17:03 JonTheWong

https://gist.github.com/wgnsa/d9e964995e4295430780bb68d6d895bc

WganMe avatar Apr 15 '17 07:04 WganMe