EasyApache4 revert to EasyApache3 on freshinstall (whm 58)

dooh

Member
Jul 19, 2006
6
0
151
After opening a ticket to cPanel and waiting for an answer, I've found a simple solution to downgrade EasyApache4 to EasyApache3 on a fresh install CentOS7 with WHM 58.

Just do:

Code:
 mkdir /usr/local/apache.ea3/
{conf,htdocs,bin}
and then run:

Code:
/scripts/migrate_ea3_to_ea4 --revert --run
This "trick" isn't available on KB or anywhere on the web (I think)
 
Last edited by a moderator:

Thiago Voltolini

Registered
Jul 13, 2016
2
0
1
Brazil
cPanel Access Level
Root Administrator
Hi,

In EasyApache 4, we are supporting FastCGI handler via PHP-FPM. Check out this post on setting it up!

Configure PHP-FPM with User Pools for EasyApache 4 - cPanel Knowledge Base - cPanel Documentation

I hope this helps!
"Page Deleted" and I can't find any page regardingg PHP-FPM on the knowledge base.

That's very bad news, I installed a new fresh server today and can't use EA3 anymore. So if EA4 is not complete, missing the best PHP handler option, why force new installations to use EA4?

Is there a way to install EA3 on this new server, since reverting is not an option?


[[email protected]]# /scripts/migrate_ea3_to_ea4 --revert --run
This system never had EasyApache 3. Reverting is not possible.
[[email protected]]#

---------- EDIT ----------

I managed to reinstall EA3 on this new server copying the apache folder from another server to /usr/local/apache.ea3 and then I ran:
/scripts/migrate_ea3_to_ea4 --revert --run --force
The script executed EA3 and built a profile. Everything was messed up but I could see EA3 on WHM. The first time I used it, it took a longe time to sync and update, but I was able to build Apache + PHP FCGI through EA3 interface without errors.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Please keep in mind this manual workaround is unsupported, and is likely to result in issues like the one mentioned in the previous response. We're happy to help troubleshoot any issues you are facing on EasyApache 4.

Thank you.
 

ikillbill

Well-Known Member
Feb 18, 2008
119
0
66
thanks for this, cpanel should really keep both 3+4 together
why multi-PHP function is needed since many ppl use cloudlinux where alt-PHP is there
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
  • Like
Reactions: Thiago Voltolini

Bidi

Well-Known Member
Oct 3, 2012
100
6
68
Romania, Transilvania
cPanel Access Level
DataCenter Provider
Same think, 4 days ago fresh new server migrated all the websites to new server and he started to get crazy.

Maximum load on the old server 5% on the new server jumps in secands from 5% to 25% an keeping around 5% to 15%.

On the old server before migrating.
# ps -eo comm,rss|awk '{arr[$1]+=$2} END {for (i in arr) {print arr/1024, i}}'|grep -v '^0 '|sort -n -r| head
3810.99 mysqld
306.254 clamd
153.207 python
140.027 sc_trans
138.254 httpd

on the new server after migrate
# ps -eo comm,rss|awk '{arr[$1]+=$2} END {for (i in arr) {print arr/1024, i}}'|grep -v '^0 '|sort -n -r| head
2532.94 httpd
706.379 mysqld
361.578 clamd
190.105 nginx
104.969 sc_trans
101.801 php-cgi
75.9062 named
63.9336 pigz
54.457 sc_serv
33.9336 cpanel_php_fpm

2532.94 httpd this is to much, all the websites stop working till restarting httpd...etc

we should have a option to chose ea3 or ea4 when installing cpanel
 

ikillbill

Well-Known Member
Feb 18, 2008
119
0
66
[cPanel tickets ID# 7634243]
EA "4" on brand new server
cpanel team took more than one day to fix the issue

EA4 is so NOT-READY

why EA3 is gone so early on 11.58 while you say it will be gone on 11.60 ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Maximum load on the old server 5% on the new server jumps in secands from 5% to 25% an keeping around 5% to 15%.
Most of the reports I've seen regarding resource usage on EasyApache 4 relate to the switch to suPHP as the PHP handler. Could you open a separate thread for this issue if the problem continues?

why EA3 is gone so early on 11.58 while you say it will be gone on 11.60 ?
EasyApache 3 is deprecated in cPanel 60, but it's still available for use. You can find the full deprecation schedule, including additional information in the "Comments" section at:

EasyApache 3 Deprecation Schedules | cPanel Blog

Thank you.