[strimp099@localhost strimp099]$ cd /etc/init.d
[root@localhost init.d]# pwd
/etc/init.d
[strimp099@localhost init.d]$ ls -la
total 276
...
-rwxr-xr-x 1 root root 3061 Apr 10 21:26 httpd
---amongst others, the rest are at the bottom of this post---
[strimp099@localhost init.d]$ cd /
[strimp099@localhost /]$ su
Password:
[root@localhost /]# service httpd start
bash: service: command not found
[root@localhost /]#
I did copy apachectl into /etc/init.d as httpd and I am trying the service command as root.
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at <URL:
http://httpd.apache.org/docs-2.0/mod....html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/wwwroot"
Server root is /wwwroot
If you can't think of anything, maybe you could tell me how to uninstall apache and I will try again with all the default commands (yuk). Thanks for the help and trust me, I haven't given up yet
drwxr-xr-x 2 root root 4096 Apr 10 21:26 .
drwxr-xr-x 10 root root 4096 Mar 9 23:52 ..
-rwxr-xr-x 1 root root 941 Jan 24 2003 anacron
-rwxr-xr-x 1 root root 1458 Feb 24 2003 apmd
-rwxr-xr-x 1 root root 1176 Jan 24 2003 atd
-rwxr-xr-x 1 root root 9435 Jan 27 2003 autofs
-rwxr-xr-x 1 root root 1316 Feb 19 2003 crond
-rwxr-xr-x 1 root root 2312 Oct 20 05:16 cups
-rwxr-xr-x 1 root root 1506 Feb 25 2003 firstboot
-rwxr-xr-x 1 root root 10332 Feb 3 2003 functions
-rwxr-xr-x 1 root root 1541 Jan 29 2003 gpm
-rwxr-xr-x 1 root root 5025 Jan 13 2003 halt
-rwxr-xr-x 1 root root 3061 Apr 10 21:26 httpd
-rwxr-xr-x 1 news news 2797 Jan 26 2003 innd
-rwxr-xr-x 1 root root 5528 Feb 3 2003 iptables
-rwxr-xr-x 1 root root 1414 Jan 24 2003 irda
-rwxr-xr-x 1 root root 5838 Feb 3 2003 isdn
-rwxr-xr-x 1 root root 1084 Mar 31 2003 kdcrotate
-rwxr-xr-x 1 root root 1335 Jan 30 2003 keytable
-rwxr-xr-x 1 root root 481 Jul 5 2002 killall
-rwxr-xr-x 1 root root 2163 Feb 25 2003 kudzu
-rwxr-xr-x 1 root root 1354 Mar 30 2003 lircd
-rwxr-xr-x 1 root root 1671 Feb 24 2003 lisa
-rwxr-xr-x 1 root root 2151 Apr 9 2003 lpd
-rwxr-xr-x 1 root root 1772 Sep 18 2003 mysqld
-rwxr-xr-x 1 root root 2201 Jan 25 2003 named
-rwxr-xr-x 1 root root 5080 Jan 6 2003 netfs
-rwxr-xr-x 1 root root 6784 Feb 3 2003 network
-rwxr-xr-x 1 root root 4522 Jun 20 2003 nfs
-rwxr-xr-x 1 root root 2343 Jun 20 2003 nfslock
-rwxr-xr-x 1 root root 2066 Nov 12 17:59 nscd
-rwxr-xr-x 1 root root 4054 Feb 13 2003 ntpd
-r-xr-xr-x 1 root root 4590 Jan 25 2003 pcmcia
-rwxr-xr-x 1 root root 1898 Feb 24 2003 portmap
-rwxr-xr-x 1 root root 2402 Jul 28 2003 postfix
-rwxr-xr-x 1 root root 6503 Nov 4 14:45 postgresql
-rwxr-xr-x 1 root root 1062 Jan 27 2003 pxe
-rwxr-xr-x 1 root root 1516 Jun 26 2002 random
-rwxr-xr-x 1 root root 2246 Jan 6 2003 rawdevices
-rwxr-xr-x 1 root root 1782 Aug 28 2003 rhnsd
-rwxr-xr-x 1 root root 1260 Jan 25 2003 saslauthd
-rwxr-xr-x 1 root root 2444 Sep 17 2003 sendmail
-rwxr-xr-x 1 root root 1175 Jul 10 2002 single
-rwxr-xr-x 1 root root 1928 Apr 5 2003 smb
-rwxr-xr-x 1 root root 1575 Nov 11 10:38 snmpd
-rwxr-xr-x 1 root root 1131 Nov 11 10:38 snmptrapd
-rwxr-xr-x 1 root root 1353 Feb 25 2003 spamassassin
-rwxr-xr-x 1 root root 2647 Sep 17 2003 sshd
-rwxr-xr-x 1 root root 1369 Feb 7 2003 syslog
-rwxr-xr-x 1 root root 2072 Feb 28 2003 vsftpd
-rwxr-xr-x 1 root root 1555 Apr 5 2003 winbind
-rwxr-xr-x 1 root root 3428 Feb 12 13:22 xfs
-rwxr-xr-x 1 root root 2285 Apr 16 2003 xinetd
-rwxr-xr-x 1 root root 2501 Jan 25 2003 ypbind
-rwxr-xr-x 1 root root 1638 Apr 30 2003 yppasswdd
-rwxr-xr-x 1 root root 1624 Apr 30 2003 ypserv
-rwxr-xr-x 1 root root 1133 Apr 30 2003 ypxfrd