always developed in winxp for the time being and also being new to linux i am forced to learn to make changes in php.ini and needed to restart apache or httpd
to restart:
/sbin/service httpd restart
to start:
/sbin/service httpd start
to stop:
/sbin/service httpd stop
ditto… works
Awesome, worked great, just saved tons of time :) Thank you
Thanks AC. :) Cheers
Works fine! =)
Thanks boy. ;)
Thanks – works for me!
Brilliant. Saved me hours trying to find how to do it.
Thank you.
Super, thank you … I have now a server on Centos and had no idea how to restart the apache. Works good.
Excellent tip, thank you, worked great.
Thanks for that! It really helped. :)
Pingback: Restart apache in centOS « Ruby on Rails UI Designer | Ruby on Rails Frontend Developer
thanks!
my centos 5.4 keeps hanging on startup—several services like cups, sendmail (which i finnally stopped) and httpd (which i need!) keeps hanging forever…(Starting httpd:) takes hours and I end restarting!
Now I have disabled them using /sbin/chkconfig service off, I’m on runlevel 3; NOW i want to run httpd (after doing /sbin/chkconfig httpd on) by doing /sbin/service httpd start ; it is hanging!!
what can I fix so I can run moodle and webmin on that server (both where running well last week!)
I can not re-install as I need moodle marks (I need mysql setup, moodle files and I’m afraid to just copy their folders to another server!!)
Thanks in advance
Awesome,
I got stuck by putting service/http restart silly me!
thanks again
Thank you for this. I’ve been working with Ubuntu and didn’t realize that rebooting with Centos was different. Still new at this :)
Graceful restart is safer. Try this one:
apachectl -k graceful
“apachectl -k graceful” does not work. Unless there is some missing information.
Thank you.
/sbin/service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Sat Oct 30 11:45:33 2010] [warn] NameVirtualHost xxxxxx has no VirtualHosts
[ OK ]
Exelent, its works!! from Argentina , regards
THANK YOU!
Thankyou for this