Skip to main content

EA4 provisioned/updated profile now Blank WHM & Sites not working

Comments

2 comments

  • cPanelMichael
    Hello, Do you know the date that you updated to the new EasyApache 4 profile? If so, you can use a command like this to see which RPMs (e.g. a specific MPM, Ruid2) were erased when you switched profiles:
    grep Erased /var/log/yum.log|grep "Sep 13"
    Replace "Sep 13" with the date that you switched to the default EA4 profile, and the output should give you a better idea of which RPMs were previously installed. Once you have that information, you can customize the existing EasyApache 4 profile to install the previously removed RPMs. Thank you.
    0
  • curios
    Thank you Michael. The profile I selected a few hours ago was "All PHP Options + ZendGuard" which was obviously a mistake. Just got a new 2GB CPanel server setup so I was able to see exactly what I selected in the older server. Since you mentioned the yum log and the keyword "customize" It occurred to me that if there was a way to use EasyApache via shell I would then be able to select a more basic profile. Via Google found this page: How to manage Apache with Easyapache 4 on the command line? - YogSays - Technical Tips - Blogging and while looking in /etc/cpanel/ea4/profiles I noticed there was a custom folder that contained the migrated EA3 to EA4 profile. Therefore I tried to provision my custom profile but it failed due to lack of memory, so I stopped httpd then run the process to install the custom profile again, and this time it was able to run, remove all the extras and place me back where I started. In case the site above disappears in the future, below is the command I used (except I referenced my custom migration profile).
    #/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json
    Rebooted the server and everything is back as it was, WHM is working and all the sites are working as well. Definitely glad there is a shell way of doing things. Thanks again for taking the time.
    0

Please sign in to leave a comment.