Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

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

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?
1 Solution
I assume you mean apache. Try httpd reload and if  that doesn't work, httpd restart
n00b0101Author Commented:
There isn't a way to just reload the .conf file?  I don't want to have to restart the apache server.
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.
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

httpd reload should do that....
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...
n00b0101Author Commented:
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
Strange. I suppose you need to do httpd -k restart
As I said, it should be pretty painless.
hello just try to

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


service httpd restart
service http reload

first one should working
What Linux distro are you running?  
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now