View Single Post
  #21 (permalink)  
Old 01-08-2005, 08:13 PM
philb philb is offline
Registered User
 
Join Date: Jan 2004
Posts: 121
philb is on a distinguished road
Cue the choirs of angels, I've fixed it.

There appears to be a bug in easyapache which prevents it recompiling apache if it believes it to be the current version despite when other factors dictate that it should be recompiled. There's actually an override for things like the perl module to force it to build anyway but there doesnt appear to be a similar thing for phpsuexec.

It also doesnt listen to the tick box option that lets you supposedly force the update either.

The "easy" way to force easyapache to do an update is run it from the command line - when the output stops and it asks you to pick a config choice, use another SSH session as root to do the following:

cd /home/cpapachebuild/buildapache

edit checkapsetup with your preferred editor and where it says:

if ($apver ne $apv) { print "1"; } else { print "0"; }

replace this line with simply:

print "1";

save the file, and logout.

Go back to your other SSH window and continue interacting with easyapache as you would normally. Apache will be forced to recompile, and you'll find things like phpsuexec actually start working properly. I can't say if this will fix any particular problems you're having with Zend, but it WILL make regular php work with phpsuexec on a server that hasnt previously had phpsuexec enabled on it (because an apache recompile is required due to the fact that phpsuexec patches apache itself).

NOTE: Until this is fixed, each time you need to force an apache rebuild, you will have to redo this entire procedure. Each time easyapache is started it redownloads and reunpacks a fresh copy of the cpapachebuild files, overwriting your changes.

CPANEL DEVS: fix /home/cpapachebuild/buildapache/modules/apache_prep to include if's for the occurence where 'skip apache build' is unticked and/or to force a compile if phpsuexec is enabled (just in case), like you have with the perl module.

Last edited by philb; 01-08-2005 at 11:17 PM. Reason: Clarified the 'bug' - see italic section.
Reply With Quote