Closed scysys closed 9 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.
/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
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/
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/
rm -rf /var/cpanel/easy/apache/custom_opt_mods/Cpanel/pagespeed/
This Routine is working on all cPanel systems.
@scysys Thank you, it really helped me!
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.