Skip to main content

cPanel version change or /scripts/upcp --force changes /etc/init.d/httd in EA4

Comments

5 comments

  • cPanelMichael
    Hello, Internal case EA-4938 is open to address an issue where the "/etc/init.d/httpd" file changes when forcing an update of cPanel or when updating to a new version of cPanel. You can run the following command as a temporary workaround:
    yum reinstall ea-apache24
    I'll update this thread with the outcome of the case once it's resolved. Could you let us know if the custom workaround you described is not better handled with the above command? Thank you.
    0
  • Spork Schivago
    The command you provided does work, the problem is every time upcp is ran, /etc/init.d/httpd gets replaced with the EA3 version and yum reinstall ea-apache24 must be reran, right? Another work around that was provided to me was to run:
    /scripts/migrate_ea3_to_ea4 --run --reinstall
    If cPanel implements my patch, then /etc/init.d/httpd is always replaced with the correct copy whenever upcp executes /usr/local/cpanel/scripts/initsslhttpd2_2 or /usr/local/cpanel/scripts/initsslhttpd2_4. I've ran yum reinstall ea-apache24 and it does put the correct copy of httpd inside /etc/init.d/httpd, however, when upcp is ran again, that /etc/init.d/httpd will get replaced when initsslhttpd2_2 or initsslhttpd2_4 is ran (every night I think on my system) and yum reinstall ea-apache24 or /scripts/migrate_ea3_to_ea4 --run --reinstall will have to be ran, every time this happens. If you need me to clarify a bit more, I can... The problem isn't that /etc/init.d/httpd isn't getting installed or updated, it's that /etc/init.d/httpd gets replaced every single time upcp executes /usr/local/cpanel/scripts/initsslhttpd2_2 or initsslhttpd2_4. Until /usr/local/cpanel/scripts/initsslhttpd2_2 is fixed or completely removed so it doesn't get executed, this will continue to be a problem.
    0
  • Spork Schivago
    If you view in a text editor:
    /usr/local/cpanel/scripts/initsslhttpd2_2
    You'll see what I'm talking about on line 29. That's the script upcp executes when it's ran and that's the script that replaces the EA4 init.d httpd script with the EA3 version. It's almost like the devs just forgot about the script. All my patch does is replace the /usr/local/cpanel/scripts/initsslhttpd2_2 EA3 init.d httpd stuff with the correct EA4 version, that way, whenever upcp gets ran, there's no need to ever run yum reinstall ea-apache24 or /scripts/migrate_ea3_to_ea4 --run --reinstall. Instead of a workaround, my patch is an actual fix for the cPanel developers / team.
    0
  • cPanelMichael
    Hello @Spork Schivago, To update, this is fixed as of cPanel version 58.0.24: Fixed case CPANEL-8100: Prevent rewriting of /etc/init.d/httpd on EA4 sysV systems. Thank you.
    0
  • Spork Schivago
    Hello @Spork Schivago, To update, this is fixed as of cPanel version 58.0.24: Fixed case CPANEL-8100: Prevent rewriting of /etc/init.d/httpd on EA4 sysV systems. Thank you.

    Thanks. I saw it in the Change log. I was keeping track for a bit. Thanks for updating me though! Much appreciated!!!
    0

Please sign in to leave a comment.