nightfox
Mar 15 2006, 10:44 PM
| | 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 |
Reply
Houdini
Mar 15 2006, 11:19 PM
/sbin/service httpd reload
Reply
mastercomputers
Mar 16 2006, 05:45 AM
QUOTE(Houdini @ Mar 16 2006, 12:19 PM)  /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
Reply
XIII
Mar 16 2006, 06:27 AM
QUOTE(Houdini @ Mar 16 2006, 08:19 AM)  /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?
Reply
yordan
Mar 16 2006, 06:09 PM
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 ?
Reply
XIII
Mar 17 2006, 10:34 AM
QUOTE(yordan @ Mar 17 2006, 03:09 AM)  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
Reply
OpaQue
Mar 17 2006, 04:10 PM
Try these. 1. service apache restart 2. /etc/init.d/httpd restart
Reply
nightfox
Mar 18 2006, 10:42 PM
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
Reply
mastercomputers
Mar 19 2006, 12:57 PM
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
Reply
bakr_2k5
Sep 25 2006, 02:45 PM
QUOTE(nightfox @ Mar 16 2006, 12:44 AM)  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>
Reply
iGuest
Aug 6 2008, 05:13 AM
Replying to mastercomputersReplying to nightfoxHow was apache installed ?? If its residing under one of the system path then simple "service httpd restart" should have worked but if its source compiled with a different --prefix folder which you are not aware of then use "ps -wwaux | grep httpd" to get process listing , this will also give you the path under which you have the binaries, in my case I got this Daemon 30146 0.0 0.0 171808 5548 ? S 22:12 0:00 /usr/local/apache/bin/httpd -k start Daemon 30321 0.0 0.0 171808 5552 ? S 22:21 0:00 /usr/local/apache/bin/httpd -k start Daemon 31419 0.0 0.0 171808 5544 ? S 23:18 0:00 /usr/local/apache/bin/httpd -k start Daemon 31421 0.0 0.0 171808 5552 ? S 23:18 0:00 /usr/local/apache/bin/httpd -k start My apache resides under "/usr/local/apache" so I can use /usr/local/apache/bin/apachectl restart/graceful/reload, I hope this info may be of some use. -reply by Robinson
Reply
bakr_2k5
Sep 25 2006, 07:54 PM
QUOTE(yordan @ Sep 25 2006, 09:48 PM)  Probably, yes. I'm using "Kernel 2.6.9-22.EL on an i686."
I'm on a 2.6.17-1.2187_FC5 64bit (x86_64) Perhaps RedHat packages are a bit more expert orientated? Since RedHat is really a server distro... Well who knows. These commands work too on my system apachectl restart apachectl -k restart /etc/rc.d/init.d/httpd restart
bakr_2k5
Reply
yordan
Sep 25 2006, 07:48 PM
QUOTE Strange .. Maybe some different versions? Probably, yes. I'm using "Kernel 2.6.9-22.EL on an i686."
Reply
bakr_2k5
Sep 25 2006, 03:06 PM
I use Fedora Core 5 and it states in the man pages: QUOTE NAME httpd - Apache Hypertext Transfer Protocol Server
SYNOPSIS httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|grace- ful|stop|graceful-stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ]
Strange .. Maybe some different versions?
Reply
Recent Queries:--
apache version 1.0 restart server command - 8.44 hr back. (1)
-
restart apache by command - 20.63 hr back. (1)
-
how to restart apache service in linux - 43.20 hr back. (1)
-
restarting apache server - 91.17 hr back. (1)
-
give permission to normal user to restart apache server linux - 91.33 hr back. (1)
-
apache difference between restart and reload - 104.74 hr back. (1)
-
restart mysql command not found restart centos - 119.44 hr back. (1)
-
apache restart grace - 121.28 hr back. (1)
-
"/etc/init.d/httpd: not found" - 124.45 hr back. (1)
-
how long does it take for apache to restart - 134.91 hr back. (1)
-
service httpd reload failed - 135.72 hr back. (2)
-
restarting apache2 suse - 156.97 hr back. (1)
-
how restart the apache server - 160.54 hr back. (1)
-
apache2ctl command - 163.05 hr back. (1)
Similar Topics
Keywords : restarting, apache, server
- Simple Ubuntu Based Home File Server | For Newbies
(1)
Build Your Own Server
(10) "Have you wanted a full-functionality web-server, media host, BitTorrent client and NAS box, all
fully remote-controlled? Want to build it out of spare parts? Well then..." The guys at bit-tech
have their Linux guru explain a complete networking solution built from old junk. Contains scripts,
step-by-step instructions and lots of pics.
http://www.bit-tech.net/bits/2007/06/05/bu...ur_own_server/1 _________________________________
http://dserban01.googlepages.com/linkedin....abap.basis.html ....
Fedora Directory Server
Anybody uses it? (0) Some time ago Red Hat acquired Netscape's Directory Server and release it under open source
licence renamed Fedora Directory Server. Does onybody use it, or simply try? What future of FDS do
you predict? Give your opinion.....
Apache Virtual Hosts
(2) Hi, i want to use a Apache Web Server as a reverse proxy to a WebLogic Server App Server. How can I
found information or samples to do this?....
CentOS: Test Server Reporting Errors!
(5) Hello! I've got a test server launched using CentOS 4.3 Final and installed phpSysInfo on it to
monitor it. Well, when I ran it as Debian, I never got the following errors on the output: QUOTE
common_functions.php 294 file_exists(/proc/scsi/scsi) the file does not exist on your machine
common_functions.php 294 file_exists(/proc/bus/usb/devices) the file does not exist on your
machine common_functions.php 158 /bin/df /bin/df: `/proc': Permission denied /bin/df:
`/sys': Permission denied /bin/df: `/dev/pts': Permission denied /bin/df: `/pr....
Re-configure X Server
(2) I re-installed a fresh copy of Debian on an extra hard drive (I'm not about to experience the
troubles I had on a good system) and so I tried to get the Nvidia drivers re-installed. I don't
remember the way I did it before, but this time was much easier except I have to reconfigure X. I
see the Nvidia logo which means that they were installed, I just need to configure X to use them.
What is the command line? I could have swarn there was a command line for it! Thanks (again)! F....
Binds ( Dns Server For Linux ) - How To Use It ?
(2) I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
DNS server, that is all I know. Otherwise, I'm lost! Thanks! F....
Suse Linux Enterprise Server 9
(5) I'm wondering if anyone has ever used SuSE Linux Enterprise Server 9 as a regular desktop Linux
distro? I use mine as a local test server, but I'm thinking of installing it on my laptop (it
has mobile features in it!) and dual booting with XP. Maybe not in the near future or anything. It
doesn't come with software like OpenOffice.org like some other versions have (Xandros for
example, and I think Fedora Core 4) and it is very limited except on server stuff. Well, I am new to
Linux so I wouldn't exactly know what 'limited' was on a Linux system. ....
Having Trouble Deciding Linux Distro For My Dad
For my dad's office server (14) Well, my dad's office needs to upgrade it's primary server that's currently running
Redhat 7.2, and I need recommend him a distro, but I'm stumped between Fedora and SUSE, wut do u
guys think? If you want to recommend other distros, please tell me, and state the reason. Thanks!
xboxrulz....
Redhat 8.0 + Evolution + Ms Exchange Server
(8) I have been forced into quite a conor at work these days and here is my problem. The project that I
am working on requires Redhat 8.0 with as few updates as possible in order to support the baseline
of the reviewed software. I would like to check my email while in Linux via the built in Evolution.
I ran the setup for Evolution and there is no option for Microsoft Exchange server. I have done
some digging around the net and have found that you need at least version 1.4.6 for the option to be
present. My current version is 1.0.8-10. I have run up2date and it says tha....
Help: Dns Server Auto Updataion
(0) hi, I have Rhel 3 and clients of abt 100+ wht i did is, i manually enterd each host name and IP,
wht i want to know? is there any other way (like in windows that each client will make an entry in
to the DNS database) any one find me answer, reply me, sami......
Need Help With Apache Configuration Problems
(3) Hello I have some problem with my apache - I want to configure it to work, when I write in my
browser 'http://localhost' I have LAN in my house and I set an adress 192.168.0.6, and when
I want to use it, I have to write my IP, what is annoying :] Maby I have broke something in setting
of my IP or something? And what I have to do, to have a local serwer on linux (I use Aurox 10.0)
Maby that distribution isn't good for a local serwer? maby I should change it for something
ealse? Please help....
Linux Server Routing Failed!
please help me? (0) The following is the settings on the linux server OS: Redhat 9 eth0: 192.168.1.98/24 eth1:
192.168.10.1/24 route-eth0 file: 192.168.1.0/24 via 192.168.1.98 route-eth1 file: 192.168.10.0/24
via 192.168.10.1 my own subnet is 192.168.10.0 internet accessing router internal port:
192.168.1.99/24 problem: i want to use this linux server as a router between the real router and
the subnet. all the internet request from my subnet will be forward to the real router. my client
pc in the subnet has address :192.168.10.253 i can ping the 192.168.1.98 successfully from the cli....
Linux/unix For My Purpose
Running Linux/Unix as dedicated server (2) I'm thinking to start my own server and have never used any Linux or Unix OS before. I'm
looking for the easiest, least code/programming, most buttons-click-customizing server friendly to
MySQL, Apache, webmail, pop3, smtp, videostreaming and all that Linux/Unix OS out there. It must be
free and easy to download. All suggestions are welcome! Thank you.....
How Can Samba Server Works With Firewall?
(3) I just installed samba server. After i did the configuration, it works fine. However, if the
firewall is turned on, it will not work. How can I get my samba server works with firewall turnned
on??? ....
Dial In Server On Rh Linux 9.0
(0) Hello! Guys I have been given this task to implement or in fact configure a dial in server as in
ISPS Now here is the description What I want to configure is a Remote Access server (RRAS in windows
2003) so that my users of which have their accounts on my server can dial in from a remote location
using PSTN and then get 3 facilities 1. Files on Local LAN 2. Internet which is available on the
server and on the local LAN 3. Emails that are o the local intranet like my own domain Now I have
to configure it on Linux 9.0 The problem is that I have worked with Linux bu....
A Question On Apache Authen
difference of between v2 and v1.3 (1) Hi! I found a difference of Apache between 2.0.52-9 an 1.3.29 I run Apahce 2 and 1.3 on Redhatas4
and use the same configuration below . I can go through authentication on 1.3,but can't go
through authentication on 2.. # AllowOverride None AuthType Basic AuthName "jamond" AuthUserFile
/var/www/passwd/jamond require valid-user # and the passwd file :jamond is -rwxrwxrwx 1 apache
apache 18 5 16 21:26 jamond What difference is there ?....
Ip blocking on a game server?
Xp--2003 server!! (5) hi i run a game server for a clan and i would like to know how to ban ips for being able to access
the server dame cheaters. I know you could use a program like zonealarm or other firewalls but i
realy would lie to use the internal one but i can t find out how to do it please can some one help
me as the cheater is so anoying.. thanks for the help....
Linux Server & Cpanel Alternatives ?
(7) Hi Due to the price of CPanel that will be out the window if I build a server, the OS I will be
using is RedHat Linux as its free. Are there any CPanel alternatives that are compatible with this?
Thanks....
Looking for restarting, apache, server
|
*SIMILAR VIDEOS*
Searching Video's for restarting, apache, server
|
advertisement
|
|