Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache and PHP-FPM automatic updates

Discussion in 'EasyApache' started by monkey64, Nov 1, 2018.

  1. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    95
    Likes Received:
    3
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    I was alerted to one of the sites on our WHM server which uses PHP-FPM and runs PHP 7.2.
    Some of the pages were showing 404 errors instead of the usual pages. I'm the only person who has access to the file system and I didn't make any changes. I diagnosed it as an issue with the order of RewriteRules in the main .htaccess file. Fixing the issue was just a case of changing the order of the RewriteRules but it was strange that I need to do this given that the site was working correctly yesterday.

    The folder /opt/cpanel/ea-php72 was last changed today at 03:03 as part of the 74.0.9 update so it seems likely that an Apache or PHP-FPM update caused the issue (I have all Daily Updates set to automatic)

    I was under the impression that the updating of the web server components (Apache and PHP-FPM) were handled solely by the user if/when the system was updated via EA4. Can anyone shed some light on exactly what parts of Apache and PHP-FPM get updated automatically?
    I've had similar issues in the past with updates. I did check the 74.0.9 changelog but I'm not sure what I'm looking for really.

    Which of the Update Preferences would need to be disabled in order to prevent this type of updating?

    Thanks
     
  2. GOT

    GOT Get Proactive!
    PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,009
    Likes Received:
    34
    Trophy Points:
    178
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Because EA4 uses rpm based packaging for its distribution any time cpanel releases an update to it it's going to be installed as part of the daily upcp if you have automatic updates set.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @monkey64


    As indicated by @GOT PHP-FPM and Apache are both part of EA4 and as such when the daily update for cPanel runs the packages controlled by the EA4 repo will be updated. The issue you ran into is related to the thread here: SOLVED - [EA-7980] Rewrite rules broken after latest EA4 update Which should be resolved already.

    Updates for EA4 run when /scripts/rpmup runs during cPanel's nightly maintenance. If you don't want to update automatically you'd need to go to update preferences and set updates to manual only. The caveat there is that you'd have to remember to update.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice