Skip to main content

EasyApache4 - "/etc/apache2/" and "/etc/httpd/" - why do BOTH directories exist? (CentOS)

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! On a default cPanel installation (I checked an AlmaLinux 8 machine) I do not see the /etc/httpd directory. You could always run this command to see what, if anything, created it, or if it was included by your hosts OS image: rpm -qf /etc/httpd/some_file_in_there That will check the RPM database and see if it that file is linked with any package that was installed.
    0
  • cPRex Jurassic Moderator
    As a follow-up to that, you will also see /usr/local/apache on cPanel machines, as that is leftover from legacy code, but it's just a series of links to other areas at this point.
    0
  • httpd_user
    Thank you! Yeah, this folder doesn't have any symlinks other than the usual ones, so it doesn't seem to be there for legacy's sake. Interestingly enough, it says: file /etc/httpd/conf/httpd.conf is not owned by any package I wonder how it got there? I won't remove it, but I guess it would be safe to do so.
    0
  • cPRex Jurassic Moderator
    Whenever I want to delete a file, I don't. I rename it to current_filename.bak and then see if anything breaks so I can easily put it back if necessary. As long as it isn't some huge logfile that is causing space issues, that usually is a good method.
    0
  • httpd_user
    For reference, here's the contents of the (apparently unused) httpd folder: .: conf/ conf.d/ conf.modules.d/ logs -> ../../var/log/httpd/ modules -> ../../usr/lib64/httpd/modules/ run -> /run/httpd/ ./conf: httpd.conf magic ./conf.d: autoindex.conf mpm_prefork.conf README userdir.conf welcome.conf ./conf.modules.d: 00-base.conf 00-dav.conf 00-lua.conf 00-mpm.conf 00-proxy.conf 00-systemd.conf 01-cgi.conf
    0
  • httpd_user
    Whenever I want to delete a file, I don't. I rename it to current_filename.bak and then see if anything breaks so I can easily put it back if necessary. As long as it isn't some huge logfile that is causing space issues, that usually is a good method.

    You are right, of course, that's what I meant to say...;)
    0

Please sign in to leave a comment.