how to rebuild or reset apache in cpanel

    • benjamin b
      Participant
      # 3 years, 6 months ago

      seeing http issue would like to rebuild apache in cpanel

    • maine
      Keymaster
      # 3 years, 6 months ago

      /usr/local/cpanel/scripts/rebuildhttpdconf – rebuilds apache on a cpanel

      NAME
      bin/build_apache_conf

      USAGE
      build_apache_conf [–preview] [–nolock]

      DESCRIPTION
      This script rebuilds Apache httpd’s main configuration file. Ordinarily
      you shouldn’t need to run this manually because cPanel & WHM automatically
      updates httpd’s configuration as needed.

      Note that this does NOT restart Apache httpd, but you’ll need to do that
      in order for the new configuration file to take effect. To restart httpd,
      run “/scripts/restartsrv_httpd”.

      Options are:

      * “–preview” – Creates a file named httpd-preview.conf rather than the
      standard httpd.conf, which allows you to inspect the file rather than
      having it be active right away.

      * “–nolock” – Ordinarily httpd.conf is locked while it is being rebuilt
      to ensure that two processes don’t attempt the rebuild concurrently.
      This flag suppresses that lock. You ordinarily should not do this.

Viewing 1 reply thread

You must be logged in to reply to this topic.