Apache 2: Reload HTTPD Configuration File Without Restarting Apache Config Changes

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

I made changes to the httpd.conf file. How do I reload the new config changes without restarting the Apache 2 web server under Debian / CentOS Linux operating systems?

Yes, you can gracefully restart the Apache v1.x or v2.x httpd daemon under Linux or Unix like operating systems. You can send the following signals to httpd to start, restart, reload, or stop the server:

  1. start
  2. restart
  3. graceful
  4. stop
  5. graceful-stop

A note about graceful Apache webserver restart

You need to send USR1 signal to the apache server:

This (USR1) signal causes the parent process to advise the children to exit after their current request (or to exit immediately if they’re not serving anything). The parent re-reads its configuration files and re-opens its log files. As each child dies off the parent replaces it with a child from the new generation of the configuration, which begins serving new requests immediately.

Command syntax to gracefully restart the Apache 1.x/2.x after changing config file

Type the following command as a root user:

apachectl -k graceful


apache2ctl -k graceful

You can also use Linux distro specific Sys V init script as follows to gracefully reload the server. The following example works on RHEL/CentOS Linux and friends only:

/etc/init.d/httpd graceful


/sbin/service httpd graceful

Debian / Ubuntu Linux and friends use the following syntax:

/etc/init.d/apache2 reload

Monitoring apache progress

After you have signaled Apache 2, you can read apache error_log file about its progress by issuing the following tail command:

## For RHEL / CentOS and friends ##
tail -f /var/log/httpd/error_log
## For  Debian / Ubuntu and friends ##
tail -f /var/log/apache2/error.log
## FreeBSD Unix ##
tail -f /var/log/httpd-error.log

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Related posts

Zuckerberg to Study Crypto in Quest to Fix Facebook


Zooko Wilcox Envisions ‘Ambitious’ Changes for Zcash Cryptocurrency


ZombieChain Comes Alive: Can Ethereum Sidechains Save the Dapps?


ZoKrates Seeks to Bring Best of Zcash to Ethereum with Devcon Debut


Zk-Starks? New Take on Zcash Tech Could Power Truly Private Blockchains


Zk-Snarks Everywhere: Ethereum Privacy Tech Hits Tipping Point


ZipZap to Offer Cash-for-Bitcoin Service at 28,000 UK Locations


ZipZap Resumes Cash-to-Bitcoin Services for UK Shoppers


ZipZap Raises $1.1 Million to Grow Global Bitcoin Payments Network


This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More