Skip to main content

httpd.conf change

Comments

10 comments

  • LostNerd
    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.
    /usr/local/cpanel/bin/apache_conf_distiller --update
    Don't forget that you also need to run
    /scripts/rebuildhttpdconf
    To tell cPanel to rebuild the apache configuration file.
    0
  • cPanelMichael
    Hello, Yes, as mentioned in the previous post, you can use the distiller to preserve the changes, as documented here:
    0
  • ouni
    Hello I made this statement but today as usual all changes are deleted
    0
  • LostNerd
    Did you follow the documentation link posted by @cPanelMichael correctly?
    0
  • cPanelMichael
    Hello I made this statement but today as usual all changes are deleted

    Could you let us know the specific changes that you made, and how you made them? Thank you.
    0
  • ouni
    I made the configuration to execute .cgi file I have but the cgi script under the folder at the root of my site
    Could you let us know the specific changes that you made, and how you made them? Thank you.

    0
  • ouni
    Did you follow the documentation link posted by @cPanelMichael correctly?

    yes
    0
  • cPanelMichael
    I made the configuration to execute .cgi file I have but the cgi script under the folder at the root of my site

    For instance, what specific configuration changes did you make, and what specific method did you use to preserve the changes? Thank you.
    0
  • ouni
    For instance, what specific configuration changes did you make, and what specific method did you use to preserve the changes? Thank you.

    Hello, AddHandler cgi-script .cgi .pl scriptAlias /cgi/usr/ scriptAlais /cgi-bin/ "/usr/local/apache/cgi-bin" Options ExecCGI Order allow,deny Allow from all Thank you
    0
  • cPanelMichael
    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.
    0

Please sign in to leave a comment.