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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

reset apache config when restore backup and reboot server

Discussion in 'EasyApache' started by Muhammad++, Sep 19, 2017.

  1. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello ,
    When reboot or restore new back up on server config apache restore on default
    I change /etc/apache2/conf/httpd.conf AllowOverride None on AllowOverride All But when restore new backup and reboot server , config reset when i see httpd.conf i see AllowOverride All changed AllowOverride None so need again set it to all .
    How can fix this problem ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello ,
    Yes , Manually and transfer from another server transfer tools ,
    Have two problem's why when reboot , config reset ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you provide more information about the steps you took to manually restore the system configuration files?

    Thank you.
     
  5. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello ,
    I not restore config backup , When i restore user backup and reboot server , receive this problem
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  7. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Thanks ,
    I can not fiend how can change AllowOverride None to AllowOverride All from Apache Configuration , Which option on Global Configuration is before AllowOverride
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's controlled with the following option in "WHM Home » Service Configuration » Apache Configuration » Global Configuration":

    Optimize .htaccess (AllowOverride)

    Thank you.
     
  9. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello ,
    First option ?
     

    Attached Files:

  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I recommend using "Search Home Directory and below". With this option, the .htaccess files in your account's subdirectories are recursively searched in the /home/$username/ directory. EX:

    /home/$username/.htaccess > works
    /home/$username/public_html/.htaccess > works
    /home/$username/public_html/123/.htaccess > works
    /home/$username/public_html/123/456/.htaccess > works


    Otherwise, you'd use "Search "/' and below" if you want Apache to search for all .htaccess files.

    Thank you.
     
  11. Muhammad++

    Muhammad++ Member

    Joined:
    Sep 18, 2017
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    GE
    cPanel Access Level:
    Root Administrator
    Hello ,
    I set this option's and test but reset or when restore user backup AllowOverride set all for all time
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look.

    Thank you.
     
Loading...

Share This Page