Closed Prajithp closed 9 years ago
Yes, the instruction will work fine if its already installed, but if you are doing this first time you will get the following error message.
mv: accessing `/var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/': No such file or directory
Ok, this is confusing me now... how about this:
Doing a checkout into working direction doesn't feel right.
Yes, you are right and check out to /tmp make more sense. Do I need to send you another pull request with the changes?
Just update this pull?
On Mon, Sep 15, 2014 at 9:47 AM, Prajith notifications@github.com wrote:
Yes, you are right and check out to /tmp make more sense. Do I need to send you another pull request with the changes?
— Reply to this email directly or view it on GitHub https://github.com/pagespeed/cpanel/pull/17#issuecomment-55619790.
Here goes the updated instruction.
1 Clone the installation scripts onto your cPanel server:
$> /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/
2 Create Speed.pm.tar.gz
$> cd /tmp/pagespeed/Easy
$> tar -zcvf Speed.pm.tar.gz pagespeed
$> mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
$> mv Speed.pm Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
3 Remove the tmp dir
$> cd /root
$> rm -rf /tmp/pagespeed
My understanding was that the whole point checking out under /pagespeed directory was to work around the fact that some people may already have it in place, and have an error? This would revert to that same behavior..