apache / incubator-pagespeed-cpanel

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

install problem #4

Closed IlIlIllII closed 11 years ago

IlIlIllII commented 11 years ago

so i followed the instructions to grab the stuff from git tarred it all up and then i went to my easyApache window in cpanel, added the new mod and got the following error:

-- Begin opt 'mod_pagespeed (Author: Prajith) (Custom Opt Mod)' -- -- Begin step 'Installing mod_pagespeed' -- !! Starting mod_pagespeed installation !! !! './speed-install' failed with exit code '-1' (IE: command not found) !!

igrigorik commented 11 years ago

Hmmm, what OS + version are you on?

IlIlIllII commented 11 years ago

CentOS release 6.4 (Final)

igrigorik commented 11 years ago

Interesting. Can you try running speed-install script directly from command line? Just cd into the right directory and "./speed-install".. It looks like your system is missing some binary, but it's hard to say which one. A more complete error message would help us track it down.

IlIlIllII commented 11 years ago

actually i ended up just installing the rpm, although i got a weird dependency error

saying it needed httpd >= 2.2 but i have 2.2.24 installed, so i just reran w/ --nodeps after restarting apache it looks like the module is loaded, but the system tests fail

but i guess thats a separate issue

igrigorik commented 11 years ago

The problem with using the RPM approach is that next time you run a cpanel update / easy_apache, it'll remove the module.

If you find out more about what's causing the error, let me know - would love to resolve it.

On Thu, May 30, 2013 at 9:05 PM, erwpacc notifications@github.com wrote:

actually i ended up just installing the rpm, although i got a weird dependency error

saying it needed httpd >= 2.2 but i have 2.2.24 installed, so i just reran w/ --nodeps after restarting apache it looks like the module is loaded, but the system tests fail

but i guess thats a separate issue

— Reply to this email directly or view it on GitHubhttps://github.com/pagespeed/cpanel/issues/4#issuecomment-18722397 .

IlIlIllII commented 11 years ago

ah...thanks for the heads up ill see if i can take a look at it again next week

jessepearson commented 11 years ago

I received the same error:

-- Begin opt 'mod_pagespeed (Author: Prajith) (Custom Opt Mod)' --

-- Begin step 'Installing mod_pagespeed' --

!! Starting mod_pagespeed installation !!

!! './speed-install' failed with exit code '-1' (IE: command not found) !!

CENTOS 6.4 i686 virtuozzo – host WHM 11.36.1 (build 8)

I attempted to run ./speed-install from command line, it would not allow me. Did a chmod 755 on it, and then was able to run it. I then tried the EasyApache update again, and it failed.

Do the rest of the files need to be set to 755, as well?

IlIlIllII commented 11 years ago

my problem was that i uploaded the files from windows and it put in the invisible characters at the end of the lines.

i ran dos2unix on everything and it worked fine.

igrigorik commented 11 years ago

@erwpacc interesting, thanks for the heads up.

@jessepearson you're not running into a similar issue by any chance, are you?

jessepearson commented 11 years ago

It appears that may have been the issue. I installed git on my server, then used your instructions again and I got it to work. Thank you for the help.

igrigorik commented 11 years ago

Awesome, glad to hear!