apache / incubator-pagespeed-cpanel

mod_pagespeed module for CPanel WHM
Other
144 stars 50 forks source link

Installation instructions incorrect / missing file #38

Open katzsimon opened 8 years ago

katzsimon commented 8 years ago

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 commented 8 years ago

Same issue here

Prajithp commented 8 years ago

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 commented 8 years ago

Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8D0JIi

RPM build errors: File must begin with "/": %{_httpdmoddir}/.so File must begin with "/": %{_httpdmodconfdir}/.conf

asolopovas commented 8 years ago

throws an error

Prajithp commented 8 years ago

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

asolopovas commented 8 years ago

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

asolopovas commented 8 years ago

there is not even rpm directory

Prajithp commented 8 years ago

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

asolopovas commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

All works thank man

asolopovas commented 8 years ago

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

Prajithp commented 8 years ago

Thank you acidgod :)

hostragon-hosting commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

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

GZaccaroni commented 7 years ago

Same problem.

tholler3012 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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