How to reload a .conf file without restarting the server?

Posted on 2008-06-19
Last Modified: 2013-12-16
The server has a bunch of .conf files for virtual hosts and I want to reload one.  How can I do this without restarting the server?
Question by:n00b0101
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 21826098
I assume you mean apache. Try httpd reload and if  that doesn't work, httpd restart

Author Comment

ID: 21826128
There isn't a way to just reload the .conf file?  I don't want to have to restart the apache server.
LVL 21

Expert Comment

ID: 21826131
try opening it, adding a space to it, then removing the space and saving it.  works with web.config files that usually have to wait for the server to update them.  you have to try it on the .conf thats on the live server.  if not, look on google for a add-on refresh button.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 21826136
httpd reload should do that....

Expert Comment

ID: 21826146
And if httpd reload doesn't work, httpd restart is a pretty painless process. Apache should only be down for a matter of seconds, if even that long...

Author Comment

ID: 21826203
When I try either httpd reload or httpd restart, I get this:

Usage: httpd [-D name] [-d directory] [-f file]
             [-C "directive"] [-c "directive"]
             [-k start|restart|graceful|graceful-stop|stop]
             [-v] [-V] [-h] [-l] [-L] [-t] [-S]
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files

Accepted Solution

JonMarkGo earned 500 total points
ID: 21826214
Strange. I suppose you need to do httpd -k restart
As I said, it should be pretty painless.
LVL 11

Expert Comment

ID: 21826441
hello just try to

/etc/init.d/httpd reload
/etc/init.d/http restart


service httpd restart
service http reload

first one should working
LVL 48

Expert Comment

ID: 21826467
What Linux distro are you running?  

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 159
How to use IFS to get output of range in comma separator in bash? 2 75
exchange, squid, proxy, linux 6 87
DB2 9.7 Grant Execute SP 4 60
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question