Kennisbank
The rebuildhttpdconf Script Print dit artikel
Overview:
You can use the /usr/local/cpanel/scripts/rebuildhttpdconf
script to rebuild Apache’s main configuration file.
Important:
This script does not restart Apache. To restart Apache, run the restartsrv_httpd script.
Note:
The system automatically updates Apache's configuration as needed, so you may not need to run this script manually at all.
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/rebuildhttpdconf --preview --nolock
Options
Use the following options with this script:
Options | Description | Example |
---|---|---|
--preview |
Creates a file named httpd-preview.conf instead of httpd.conf . This allows you to inspect the configuration file before you use it on your system. |
/usr/local/cpanel/scripts/rebuildhttpdconf --preview |
--nolock |
Usually, the system locks the configuration file during the rebuilding process to prevent two processes from conflicting. This option disables that lock. | /usr/local/cpanel/scripts/rebuildhttpdconf --nolock |
Success
If the script succeeds, it will return output similar to the following example:
|
|
Was dit antwoord nuttig?
Gerelateerde artikelen
WHM Scripts
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
The dbmaptool Script
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
The servers_queue Script
Overview: This script allows you to manage the task queue system. The task queue system allows...
Overview: This script allows you to manage the task queue system. The task queue system allows...
The auto-adjust-mysql-limits Script
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
The autossl_check Script
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...