Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restarting Apache

Status
Not open for further replies.

zoomforce

Technical User
Jan 6, 2002
70
CA
Is there a fast way to restart the server using MAndrake Linux/ KDE? Im tired of rebboting every time I change something

I know this is a newbie question, im a newbie :)
 
you might try this:

kill -HUP `cat /var/run/httpd.pid`

or this:

apachectl restart

to name just a couple. :eek:)
 
Actually, I think in Mandrake the apachectl program is probably called "httpd". So you could just open a command prompt, become the root user (are you familiar with the "su" command?), and then type "httpd restart". This should restart apache in literally less than a second. -------------------

Current reading --
 
im not sure, how do i log into root, i know how to logout in mandrake then log in, but it takes a while
 
EEEGADS man!! :eek:) You should be able to log out from Gnome by clicking on the foot then clicking logout. From KDE click on the big K looking thing and click logout. A login screen should pop up within a second or two then type in root for the user name and then the root password. You could also give yourself "su" or Super User abilities by opening a terminal and typing su. You will be prompted for the root password. It may be that you already gave your regular user account su status when you created the account or you shouldn't have been able to edit httpd.conf or issue any system critical commands.
 
lol rhythmace comes to my rescue once again.. yes I know how to logout on the GUI, i just dont know didly on the terminal window, just the DOS commands that I learned 10 years ago...
 
Now I gotcha. Sometimes if I see a command that someone tells somebody else to use I go to my terminal and type man {command] and it tells me about that command and how it's used. For example if you want to learn about the chmod command you would type "man chmod" and it will tell you how it's used and where to find more info. If you hear any one refer to the "man pages", that's what they are talking about - not Playboy. :eek:)

 
cool thats a great tip! ha ha and some lol to boot.
 
Hi,

To get Apache to reload its httpd.conf without restarting the server you can just do the command :

killall -HUP httpd

(It doesn't kill any processes - just sends the hangup signal that apache interprets as a reload request)

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top