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

Installation instructions incorrect / missing file #38

Open
katzsimon opened this issue Dec 19, 2015 · 26 comments
Open

Installation instructions incorrect / missing file #38

katzsimon opened this issue Dec 19, 2015 · 26 comments

Comments

@katzsimon
Copy link

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"

@asolopovas
Copy link

Same issue here

@Prajithp
Copy link
Contributor

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

@asolopovas
Copy link

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
Copy link

throws an error

@Prajithp
Copy link
Contributor

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

@asolopovas
Copy link

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

@asolopovas
Copy link

there is not even rpm directory

@Prajithp
Copy link
Contributor

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

@asolopovas
Copy link

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

@Prajithp
Copy link
Contributor

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.

@asolopovas
Copy link

All works thank man

@asolopovas
Copy link

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

@Prajithp
Copy link
Contributor

Thank you acidgod :)

@hostragon-hosting
Copy link

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!

@iamstevenelson
Copy link

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

@dammionx
Copy link

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 ?

@WganMe
Copy link

WganMe commented Jun 15, 2016

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
Copy link

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

@josejavish
Copy link

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

@GZaccaroni
Copy link

Same problem.

@tholler3012
Copy link

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

@mehrdadali14
Copy link

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.

@theozsnowman
Copy link

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

@shigri20
Copy link

shigri20 commented Mar 16, 2017

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

@JonTheWong
Copy link

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

@WganMe
Copy link

WganMe commented Apr 15, 2017

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