|
|
|
| Web Hosting Guide |
![]() ![]() |
Restarting Apache Server |
Mar 15 2006, 10:44 PM
Post
#1
|
|
|
NiGHTFoX - Hiding in the dark Group: Members Posts: 680 Joined: 3-April 05 Member No.: 3,584 |
I've worked with Apache long enough that I know (or at least I thought I knew) how to restart it. The problem: my terminal is filled with "command not found" and other errors and the such.
httpd restart, right? NOPE! Command not found! apachectl restart, NOPE! Command not found! I'm out of ideas! I can't just keep physically re-booting the machine when I need JUST apache to restart! Thanks for any help, my system is Debain 3.1 r1. [N]F |
|
|
|
Mar 15 2006, 11:19 PM
Post
#2
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
/sbin/service httpd reload
|
|
|
|
Mar 16 2006, 05:45 AM
Post
#3
|
|
|
Making IT Happen Group: Members Posts: 653 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 myCENTs:57.31 |
QUOTE(Houdini @ Mar 16 2006, 12:19 PM) [snapback]72927[/snapback] /sbin/service httpd reload Houdini is close but the proper commands you can do is /sbin/service httpd start /sbin/service httpd stop /sbin/service httpd restart Which restart is is the one you've after, can only be performed by root or a super user. I usually do: su -c "/sbin/service httpd restart" Which is similar to sudo but I feel is much better to use than sudo, it may not work with some older distributions. Cheers, MC |
|
|
|
Mar 16 2006, 06:27 AM
Post
#4
|
|
|
Advanced Member Group: Members Posts: 192 Joined: 16-February 06 From: Japan Member No.: 11,326 |
QUOTE(Houdini @ Mar 16 2006, 08:19 AM) [snapback]72927[/snapback] /sbin/service httpd reload i think that depends on the version, right? for me it works when i type: CODE sudo /etc/apache/apachectl restart i think this is because my apache version is 1.3, right? |
|
|
|
Mar 16 2006, 06:09 PM
Post
#5
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,961 Joined: 16-August 05 Member No.: 7,896 myCENTs:81.60 |
QUOTE i think that depends on the version, right? Really depends on version. On my system I have to do cd $ORACLE_HOME/Apache/Apache/bin ./apachectl stop ./apachectl start sounds rather different, isn't it ? |
|
|
|
Mar 17 2006, 10:34 AM
Post
#6
|
|
|
Advanced Member Group: Members Posts: 192 Joined: 16-February 06 From: Japan Member No.: 11,326 |
QUOTE(yordan @ Mar 17 2006, 03:09 AM) [snapback]73010[/snapback] Really depends on version. On my system I have to do cd $ORACLE_HOME/Apache/Apache/bin ./apachectl stop ./apachectl start sounds rather different, isn't it ? Nope, it's the same mate, as it's the same command, me too i can do it directly by ./apachectl restart or stop then start, i meant the difference is wither it's httpd, apache 1.34 or apache2, that's what i meant |
|
|
|
Mar 17 2006, 04:10 PM
Post
#7
|
|
|
Administrator Group: Admin Posts: 487 Joined: 26-August 04 Member No.: 1 myCENTs:54.79 |
Try these.
1. service apache restart 2. /etc/init.d/httpd restart |
|
|
|
Mar 18 2006, 10:42 PM
Post
#8
|
|
|
NiGHTFoX - Hiding in the dark Group: Members Posts: 680 Joined: 3-April 05 Member No.: 3,584 |
I don't get this... I've tried every command you guys have given and none of them work!
service apache restart gives me: "bash: service: command not found" /etc/init.d/httpd restart gives me: "bash: /etc/init.d/httpd: No such file or directory" /etc/apache/apachectl restart gives me: "/etc/apache/apachectl: No such file or directory" /sbin/service httpd reload gives me: "/sbin/service: No such file or directory" hmm... I don't know... the file structure seems to be normal. var/www contains all of the default documents, etc/apache2 seems to have everything normal. Is there a way I could go about uninstalling Apache and re-installing it? [N]F |
|
|
|
Mar 19 2006, 12:57 PM
Post
#9
|
|
|
Making IT Happen Group: Members Posts: 653 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 myCENTs:57.31 |
OK then, give us the important information that we need.
What distribution are you running? What version of Apache do you have installed? Going by what you've said you say you've got Apache2, in /etc/Apache2, that sounds like Debian or a variant of it. So the command that you will need to use is /etc/init.d/apache2 restart or apache2ctl restart For the apache2ctl command, If it returns command not found, do: which apache2ctl And it will show paths of where this command could exist, then you would do /path/to/apache2ctl restart Cheers, MC |
|
|
|
Sep 25 2006, 02:45 PM
Post
#10
|
|
|
Member - Active Contributor Group: Members Posts: 83 Joined: 25-September 06 From: The Netherlands Member No.: 16,153 |
QUOTE(nightfox @ Mar 16 2006, 12:44 AM) [snapback]72920[/snapback] I've worked with Apache long enough that I know (or at least I thought I knew) how to restart it. The problem: my terminal is filled with "command not found" and other errors and the such. httpd restart, right? NOPE! Command not found! apachectl restart, NOPE! Command not found! I'm out of ideas! I can't just keep physically re-booting the machine when I need JUST apache to restart! Thanks for any help, my system is Debain 3.1 r1. [N]F Hi nightfox, try this command as root: CODE httpd -k restart bakr_2k5 <edit> Uh yes sorry about that, kinda old thread but anyway didn't know if the problem was gone </edit> This post has been edited by bakr_2k5: Sep 25 2006, 02:49 PM |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
18 | Nuwan | 8,318 | 16th November 2009 - 09:16 PM Last post by: HannahI |
|||
![]() |
10 | Jimmy89 | 2,479 | 10th November 2009 - 03:31 PM Last post by: iG-Will |
|||
![]() |
15 | jedipi | 5,151 | 9th November 2009 - 04:59 PM Last post by: iG-mark |
|||
![]() |
16 | rmdort | 8,126 | 4th November 2009 - 11:22 PM Last post by: HannahI |
|||
![]() |
9 | jedipi | 4,620 | 28th October 2009 - 08:09 PM Last post by: HannahI |
|||
![]() |
34 | FoRsAkEn | 11,875 | 27th October 2009 - 12:24 PM Last post by: iG-shree |
|||
![]() |
5 | Kushika | 2,419 | 25th October 2009 - 12:06 AM Last post by: iG-William Archer |
|||
![]() |
30 | x2crazy4shadyx | 7,604 | 16th October 2009 - 05:02 AM Last post by: iG-RidingKeysLamp |
|||
![]() |
6 | xboxrulz | 1,003 | 8th October 2009 - 07:33 PM Last post by: iG-Omar |
|||
![]() |
7 | GM Sneaky | 6,974 | 6th October 2009 - 02:16 PM Last post by: iG-Notes |
|||
![]() |
29 | Mitch666Holland | 4,688 | 2nd October 2009 - 07:03 AM Last post by: iG-albu77 |
|||
![]() |
6 | Koutarou | 4,282 | 21st September 2009 - 11:56 AM Last post by: iG-Michael |
|||
![]() |
3 | jonnahlynb29e | 147 | 13th September 2009 - 04:58 PM Last post by: yordan |
|||
![]() |
2 | biggiebi | 4,531 | 8th September 2009 - 05:21 PM Last post by: iG-andres |
|||
![]() |
15 | FirefoxRocks | 1,066 | 7th September 2009 - 05:02 AM Last post by: iG-Amy |
|||
|
Lo-Fi Version | Time is now: 22nd November 2009 - 12:02 PM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



Mar 15 2006, 10:44 PM





