The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Easy Apache failure - backup first

Discussion in 'EasyApache' started by monkey64, Jun 26, 2014.

  1. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I tried to update one of my PHP modules (XSL) recently and recomplied with Easy Apache. BTW I had chosen to install PHP5.X which was marked as experimental. During the build, there were quite a few red lines but surpisingly the build carried on and I was left with a non startable Apache. I couldn't afford the down time so in desperation, I re-imaged the server from a backup I made.

    I don't have the error log to hand which I know is no use.:mad:
    I am soon going to have to bite the bullet and run Easy Apache again because I need the XSL module, and this time I have to make it work.

    There is a strong chance that this build will fail as well and I ask what precautions I should take?
    I could make a backup which could be restored in case of failure...

    Code:
    cp -a /usr/local/apache /usr/local/apache-bak
    
    That way if anything goes wrong during or after the update, simply revert and restart apache.
    
    rm -fR /usr/local/apache ; cp -a /usr/local/apache/apache-bak /usr/local/apache
    
    Any ideas?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's difficult to pinpoint any particular reason for the build failure without the logs. I suggest simply opening a support ticket using the link in my signature and have us run EasyApache for you. This way, we can immediately address any issues that arise. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  3. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Ticket: 5156991
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, EasyApache was able to complete successfully after removing some invalid entries in /usr/local/apache/conf/modsec2.conf and allowing the build to regenerate a default instance of that file.

    Thank you.
     
Loading...

Share This Page