Skip to main content

Again, our custom Apache configurations got lost after the WHM/cPanel automatic upgrade

Comments

7 comments

  • dalem
    You should be saving your custom apache configurations in the /etc/apache2/conf.d/ for global & /usr/local/apache/conf/userdata/std/ for a specific user
    0
  • virtualreality
    Hi dalem, Thank you very much for help! Just now, I've tried the way you mentioned via SSH to /etc/apache2/conf.d/, but all nothing there: nano /etc/apache2/conf.d/httpd.conf - Blank, nothing is there (SSH says: New File) nano /etc/apache2/conf.d/.conf - Blank, nothing is there (SSH says: New File) Just test checking this: nano /etc/apache2/conf.d/ - Blank, nothing is there (SSH says: [ "/etc/apache2/conf.d/" is a directory ]) Would you please just show here the whole route based on /etc/apache2/conf.d/ that you've found it workable? I checked the
    0
  • dalem
    You actually have to save them here /etc/apache2/conf.d/ editing the /etc/apache2/conf/httpd.conf will do nothing ea4 does not know what to do with them there cpanel will automatically search for your custom directives with the include statement Include "/etc/apache2/conf.d/*.conf" form /etc/apache2/conf/httpd.conf You can name them anything you like as long as they end with .conf there should be some in there by default your using the wrong command nano /etc/apache2/conf.d/*.conf if you made no custom directives there will be 0 that you created cpnael will add some under certain configurations & so will cloudLinux I have at least 12 configurations we created on some servers all work fine
    0
  • virtualreality
    Please get it straight: Would you please just show here the "default example" whole route based on /etc/apache2/conf.d/ that you've found it workable and use now?
    0
  • virtualreality
    nano /etc/apache2/conf.d/*.conf - there should be some in there by default...
    Would you please just share here with the default command(s) that you've found it workable and use now? Thanks!
    0
  • dalem
    our systems will be totally different that yours if you have no .conf files in there then its likely that is the way its supposed to be
    0
  • cPRex Jurassic Moderator
    @virtualreality - it has never been acceptable to edit the Apache configuration directly on any cPanel version. Even back in the days of the distiller, that just moved customizations to other files automatically. You'll want to review the details here, as this explains how you can add things globally or only to specific virtual hosts:
    0

Please sign in to leave a comment.