Help - Search - Members - Calendar
Full Version: What is easyapache?
The Planet Forums > Control Panels > cPanel/WHM
SarcNBit
I have seen references to easyapache on these and other cpanel support forums. What is easyapache? What is the difference between easyapache and plain ol apache?
sloop
easyapache is just a script that comes with cpanel used for recompiling Apache and PHP. it lets you change compile-time options and modules. to use it, just run '/scripts/easyapache'. it does all the work of configuring and compiling for you.
SarcNBit
Thank you for the reply.

So when you make changes to Apache through the WHM interface are you calling the easyapache script?
Erwin
QUOTE
Originally posted by SarcNBit
Thank you for the reply.

So when you make changes to Apache through the WHM interface are you calling the easyapache script?


Essentially the same. WHM uses buildapache I think.
kris1351
They both use buildapache in the background. I prefer the shell version as the Cpanel one craps out often and you end up with a bombed compile.
SarcNBit
QUOTE
Originally posted by kris1351
I prefer the shell version as the Cpanel one craps out often and you end up with a bombed compile.


Thanks for the tip
gertiebeth
whoops. Nothing to see here.
aussie
rm -rf /home/cpap*
/scripts/easyapache
Select option 6
Find PHP option and select it and press ENTER. You will see 4.3.4
gertiebeth
QUOTE
Originally posted by kris1351
They both use buildapache in the background. I prefer the shell version as the Cpanel one craps out often and you end up with a bombed compile.


This is what I am finding on 2 of my smaller servers. The process timesout before completion.

I want to upgrade to PHP 4.3.4 but when I use /scripts/easyapache option there is no option to upgrade PHP.

How can I use /scripts/easyapache to upgrade to 4.3.4?

Thanks!
gertiebeth
QUOTE
Originally posted by aussie
rm -rf /home/cpap*
/scripts/easyapache
Select option 6
Find PHP option and select it and press ENTER. You will see 4.3.4


Excellent! Trying it now aussie...
gertiebeth
QUOTE
Originally posted by aussie
rm -rf /home/cpap*
/scripts/easyapache
Select option 6
Find PHP option and select it and press ENTER. You will see 4.3.4


Like a charm is how it worked aussie. Much thanks!

Odd thing though... Now in cPanel's https://IP:2087/scripts2/whmnews cpanel/whm news, there is no version of PHP listed.

CODE
Apache Security/Version Table

Module Latest Version Installed Version Status

Apache Core  

Passthrough Authentication  

Bytes Logger  

Bandwidth Limiter  

FrontPage  

mod_ssl  

OpenSSL  

PHP Suexec


Should I be worried?
aussie
QUOTE
Originally posted by gertiebeth
Like a charm is how it worked aussie. Much thanks!

Odd thing though... Now in cPanel's https://IP:2087/scripts2/whmnews cpanel/whm news, there is no version of PHP listed.

CODE
Apache Security/Version Table

Module Latest Version Installed Version Status

Apache Core  

Passthrough Authentication  

Bytes Logger  

Bandwidth Limiter  

FrontPage  

mod_ssl  

OpenSSL  

PHP Suexec


Should I be worried?


Php should be listed, i would run the above commands again. DO NOT select php suexec unless your intending to run php suexec, just select suexec then select php again and make sure your selecting 4.3.4 and any other module you need.
gertiebeth
QUOTE
Originally posted by aussie
Php should be listed, i would run the above commands again. DO NOT select php suexec unless your intending to run php suexec, just select suexec then select php again and make sure your selecting 4.3.4 and any other module you need.


I'm a little hazy here... Which one should I select and deselect?

PHP suEXEC Support
and/or
suEXEC Module

Which one will allow me to see which user is running which script?

Thanks aussie!
Erwin
QUOTE
Originally posted by aussie
rm -rf /home/cpap*
/scripts/easyapache
Select option 6
Find PHP option and select it and press ENTER. You will see 4.3.4


rm -rf /home/cpap*

That is a good tip removing those directories. Thanks.
aussie
QUOTE
Originally posted by gertiebeth
I'm a little hazy here... Which one should I select and deselect?

PHP suEXEC Support
and/or
suEXEC Module

Which one will allow me to see which user is running which script?

Thanks aussie!


You want suEXEC Module then select any other module you need on this page. Then, select PHP -> and select the version of php you need including additional modules on this page. When your done make sure you exit and save what you selected and you should be on your way.
Erwin
The odd thing is that no matter what I do, I seem unable to install 4.3.4... Apache refuses to restart. I have had to install 4.3.3 to make it work.

Any ideas? I do not add any other modules except GD.
gertiebeth
QUOTE
Originally posted by Erwin
The odd thing is that no matter what I do, I seem unable to install 4.3.4... Apache refuses to restart. I have had to install 4.3.3 to make it work.

Any ideas? I do not add any other modules except GD.

I'm building the exact same way as we speak Erwin. I will post my results.

Thanks for the tips aussie!

BTW, I am using RH 9.0.
gertiebeth
QUOTE
Originally posted by aussie
You want suEXEC Module then select any other module you need on this page. Then, select PHP -> and select the version of php you need including additional modules on this page. When your done make sure you exit and save what you selected and you should be on your way.


Ok, using aussie's advise above I was able to build apache using /scripts/easyapache with PHP 4.3.4 and it restarted perfectly. Using RH 9.0, Apache Core 1.3.29 and added GD in the mix. cPanel upgrades are RELEASE tree, so WHM 8.5.4 cPanel 8.5.5-R58 - WHM X v2.1.1 as of today. cPanel/WHN News shows PHP 4.3.4 as well.

Erwin, what are you doing differently than above?

aussie, again, my greatest appreciation for your guidence!
Erwin
QUOTE
Originally posted by gertiebeth
I'm building the exact same way as we speak Erwin. I will post my results.

Thanks for the tips aussie!

BTW, I am using RH 9.0.


Yeah, I have RH9 too. With Turck Mmcache.

I can't figure out what is causing httpd to crash and not start. I am reinstalling 4.3.3 - it works. Just not 4.3.4.
Erwin
I am ONLY installing GD - everything else is default.

Like I said, I can't figure it out. Same thing happens when I update Apache via WHM. Apache refuses to restart properly.

I am using MMCache. That's about it. But I know for a fact that my version of MMCache works for 4.3.4.
gertiebeth
QUOTE
Originally posted by Erwin
I am ONLY installing GD - everything else is default.

Like I said, I can't figure it out. Same thing happens when I update Apache via WHM. Apache refuses to restart properly.

I am using MMCache. That's about it. But I know for a fact that my version of MMCache works for 4.3.4.


Maybe this makes a difference, but I only upgraded my celerons this way. I can still use WHM to build apache successfully for my Xeon and my P4s. The celerons just could NOT handle the load during the upgrade.
Erwin
QUOTE
Originally posted by gertiebeth
Maybe this makes a difference, but I only upgraded my celerons this way. I can still use WHM to build apache successfully for my Xeon and my P4s. The celerons just could NOT handle the load during the upgrade.


I have tried using WHM and the script. Both has the same problem, so I suspect it is something I am using that is incompatible with 4.3.4... I can't think of what though. I'm running a Dual Xeon.
aussie
QUOTE
Originally posted by Erwin
I have tried using WHM and the script. Both has the same problem, so I suspect it is something I am using that is incompatible with 4.3.4... I can't think of what though. I'm running a Dual Xeon.


gertiebeth, your welcome of course!

Erwin, try recompiling php4.3.4 manually. Usually, after i run easyapache, i recompile php manually because there is something additional i need compiled into php or easyapache has left out something i need.

After you run easyapache the php source code should be available to you by going to /home/cpapachebuild/buildapache/php-4.3.4. When you rebuild php any errors encountered during recompile will be evident at this time so you can find out which module is bombing.

After cding to php-4.3.4 copy your config options to the command line and execute; This is mine. Modify yours config depending on config needs. An easy way to get your current config options is to run phpinfo(); and copy and paste it into a txt editor. Remove all the quotes and copy it to the command line. Mine looks like this.

./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --with-ming=../ming-0.2a --enable-magic-quotes --with-mysql=/usr --with-openssl --with-pear --with-pgsql=/usr --with-pspell --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-wddx --with-xmlrpc --with-zlib

Then type;

make clean
make
make install

If there are any errors with php those will surface and the configuration will error out before you even get to the make clean option. This is a good way of finding out the issue is. Remember, php is not installed until you type make install so even if you set the config option you wont have to worry about partically installing php if you start the process.
Erwin
aussie, that didn't work. icon_sad.gif I got no errors at all manually compiling php 4.3.4 - it all went smoothly. But I cannot restart httpd.

The error I get when I try restarting httpd in the error_log is this:

[warn] httpd.pid exists! Unclean Apache shutdown...

(or something like that).

However, Apache is not able to run. My server remains offline.

It all works with php 4.3.3 though.
gertiebeth
Just wanted to mention that this option also works perfectly with RH Enterprise.

Thanks again for your guidance aussie!
booger
Erwin I have had the same problem on one of my servers. Apache will not start when I try to use 4.3.4. I am clueless to what the problem may be as I did try everything but compiling php manualy, which I may go ahead and try just to see if it will help any.

So if you figure out what your problem is, mine may be similiar as well, please post your solution and I will do the same.
CreationNation
I think this issue is related to Turck MMcache. I went through this once, and now am again after bumping up to the new PHP version via Easyapache. TO get a clean install, you have to comment out the mmcache lines in your php.ini.

Right now I just finished that and am trying to recall what I did last time to get mmcache back because it will not return after simply uncommenting it, apache will not start. I am thinking it requires me to reinstall mmcache which I am about to do...

UPDATE: Hm reinstalling mmcache did not work. Any ideas anyone?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.