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.

httpd.conf change

Discussion in 'General Discussion' started by ouni, May 11, 2015.

  1. ouni

    ouni Member

    Joined:
    May 11, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunisie
    cPanel Access Level:
    Root Administrator
    hello I have a problem I edit my httpd.conf to my server execute .cgi file for some site but every day at 8am this file is changed and clears touts the change is that you can help me solved this problem (distrubtion centos6 64bit) thank you in advance
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    When you edit the /usr/local/apache/conf/httpd.conf file directly, you'll need to run the command below which will run the cPanel Apache Distiller. This will prevent cPanel and Apache from removing any changes you made whenever Apache gets recompiled again.

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update
    Don't forget that you also need to run

    Code:
    /scripts/rebuildhttpdconf
    To tell cPanel to rebuild the apache configuration file.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. ouni

    ouni Member

    Joined:
    May 11, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunisie
    cPanel Access Level:
    Root Administrator
    Hello I made this statement but today as usual all changes are deleted
     
  5. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Did you follow the documentation link posted by @cPanelMichael correctly?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you let us know the specific changes that you made, and how you made them?

    Thank you.
     
    ouni likes this.
  7. ouni

    ouni Member

    Joined:
    May 11, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunisie
    cPanel Access Level:
    Root Administrator
    I made the configuration to execute .cgi file
    I have but the cgi script under the folder at the root of my site

     
  8. ouni

    ouni Member

    Joined:
    May 11, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunisie
    cPanel Access Level:
    Root Administrator
    yes
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    For instance, what specific configuration changes did you make, and what specific method did you use to preserve the changes?

    Thank you.
     
  10. ouni

    ouni Member

    Joined:
    May 11, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tunisie
    cPanel Access Level:
    Root Administrator
    Hello,
    AddHandler cgi-script .cgi .pl
    scriptAlias /cgi/usr/
    <ifModule alias-module>
    scriptAlais /cgi-bin/ "/usr/local/apache/cgi-bin"
    </ifModule>
    <Directory "usr/local/apache/cgi-bin">
    Options ExecCGI
    Order allow,deny Allow from all
    </Directory>
    Thank you
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you elaborate on the purpose of adding these entries? Did your CGI scripts not already work by default? Also, you did not mention how you saved the changes.

    Thank you.
     
Loading...

Share This Page