Skip to main content

Could not lock Apache configuration

Comments

5 comments

  • 24x7server
    Hi, Have you locked the apache configuration manually?
    0
  • Amir.Az
    Hi, Have you locked the apache configuration manually?

    Thanks for your answer. If I rebuild it, I will lose my any info or configs?
    0
  • 24x7server
    Hi, Take backup of the Apache configuration first and then check.. Because if you lock the Apache configuration, no virtual host entry would be creating and creating account will fail..
    0
  • Amir.Az
    Hi, Take backup of the Apache configuration first and then check.. Because if you lock the Apache configuration, no virtual host entry would be creating and creating account will fail..

    Thank you:) So how I can do this job? And if I do it then Will cpanel response?
    0
  • cPanelMichael
    Hello, Check to see if the immutable attribute is applied to the httpd.conf file with a command like this:
    lsattr /etc/apache2/conf/httpd.conf
    If so, you can remove that immutable attribute with the following command:
    chattr -i /etc/apache2/conf/httpd.conf
    Once you do this, you can rebuild the Apache configuration file with the following command:
    /scripts/rebuildhttpdconf
    You will need to follow the instructions on the following document if you want to make custom changes to the Apache configuration: Advanced Apache Configuration - EasyApache 4 - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.