apache / incubator-pagespeed-cpanel

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

Installation Error on some systems #14

Closed scysys closed 9 years ago

scysys commented 10 years ago

On some cPanel systems your Installation is not working.

Error 1: "git: command not found" Why? Because cPanel needs in some cases the Full Path to git.

Change

git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/

to

/usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/

Error 2: "fatal: destination path '/var/cpanel/easy/apache/custom_opt_mods/Cpanel' already exists and is not an empty directory." Why? Occurs when you have installed custom mods befor your Pagespeed Module.

Change

/usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/

to

/usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/

New working Installations routine:

1: /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/

2: /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/

3: cd /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/Easy && tar -zcvf Speed.pm.tar.gz pagespeed

4: mv -v /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/Easy/Speed.pm /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/Easy/Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/

5: rm -rf /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/

This Routine is working on all cPanel systems.

yashodhank commented 9 years ago

@scysys Thank you, it really helped me!