Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • 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?
0
n00b0101
Asked:
n00b0101
1 Solution
 
JonMarkGoCommented:
I assume you mean apache. Try httpd reload and if  that doesn't work, httpd restart
0
 
n00b0101Author Commented:
There isn't a way to just reload the .conf file?  I don't want to have to restart the apache server.
0
 
silemoneCommented:
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.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

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

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

or

service httpd restart
service http reload

first one should working
0
 
TintinCommented:
What Linux distro are you running?  
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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