Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd January 2012, 06:35
joe65 joe65 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default httpd: unrecognized service on RHEL 5.4

Hi All,

I am a newbie to Linux and I am learning RHEL 5.4. I am attempting to install httpd-2.2.21 on RHEL 5.4 following instructions on this link which I think is excellent.

http://www.thegeekstuff.com/2008/07/...urce-on-linux/

Unfortunately I have run into some issues and have been scouring the internet for some help. I am able to start up Apache using the following commands and I get the "it works" on my browser when I type http://localhost. There is no message to say Apache has started when I type the ./apachectl start command though.

# cd /usr/local/apache2/bin
# ./apachectl start

For starters I did not have the /etc/rc.d/init.d/httpd file so I added the following script

#!/bin/bash
apachectl=/usr/local/apache2/bin/apachectl
httpd=${HTTPD-/usr/local/apache2/bin/httpd}
chmod 775

Now when I try to start httpd automatically I get the following error.

[root@localhost ~]# service httpd start
httpd: unrecognized service

If any body on this forum can help I would greatly appreciate it.


Cheers,

Joe
Reply With Quote
Sponsored Links
  #2  
Old 23rd January 2012, 11:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's the output of
Code:
ls -la /etc/init.d/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th January 2012, 01:56
joe65 joe65 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks falko. Sorry the output is a bit too long.

Regards,

Joe

total 748
drwxr-xr-x 2 root root 4096 Jan 23 23:45 .
drwxr-xr-x 10 root root 4096 Jan 23 10:59 ..
-rwxr-xr-x 1 root root 1566 Jun 9 2009 acpid
-rwxr-xr-x 1 root root 1441 Dec 19 2006 anacron
-rwxr-xr-x 1 root root 1429 Aug 22 2006 apmd
-rwxr-xr-x 1 root root 1176 Aug 23 2006 atd
-rwxr-xr-x 1 root root 3328 Apr 25 2009 auditd
-rwxr-xr-x 1 root root 3059 Jul 29 2009 autofs
-rwxr-xr-x 1 root root 1848 Jun 12 2009 avahi-daemon
-rwxr-xr-x 1 root root 1789 Jun 12 2009 avahi-dnsconfd
-rwxr-xr-x 1 root root 1477 Jul 9 2008 bluetooth
-rwxr-xr-x 1 root root 1152 Jun 9 2009 capi
-rwxr-xr-x 1 root root 1470 Jun 29 2007 conman
-rwxr-xr-x 1 root root 8824 May 1 2009 cpuspeed
-rwxr-xr-x 1 root root 1904 Jul 16 2008 crond
-rwxr-xr-x 1 root root 1942 Jun 9 2009 cups
-rwxr-xr-x 1 root root 299 Apr 22 2008 cups-config-daemon
-rwxr-xr-x 1 root root 1505 Jul 12 2006 dc_client
-rwxr-xr-x 1 root root 1347 Jul 12 2006 dc_server
-rwxr-xr-x 1 root root 1407 Jul 25 2008 dnsmasq
-rwxr-xr-x 1 root root 996 Jul 9 2008 dund
-rwxr-xr-x 1 root root 1965 Nov 15 2008 firstboot
-rwxr-xr-x 1 root root 14000 Jul 4 2009 functions
-rwxr-xr-x 1 root root 1778 Jul 12 2006 gpm
-rwxr-xr-x 1 root root 1486 Jul 29 2009 haldaemon
-rwxr-xr-x 1 root root 5725 Jul 4 2009 halt
-rwxr-xr-x 1 root root 966 Jul 9 2008 hidd
-rwxr-xr-x 1 root root 4777 Jul 30 2008 hplip
-rwxr-xr-x 1 root root 7543 May 19 2009 ip6tables
-rwxr-xr-x 1 root root 13864 Jul 18 2009 ipmi
-rwxr-xr-x 1 root root 7460 May 19 2009 iptables
-rwxr-xr-x 1 root root 1624 Aug 1 2006 irda
-rwxr-xr-x 1 root root 2193 Apr 15 2009 irqbalance
-rwxr-xr-x 1 root root 6131 Jun 9 2009 isdn
-rwxr-xr-x 1 root root 11289 Jul 22 2009 kdump
-rwxr-xr-x 1 root root 652 Jul 4 2009 killall
-rwxr-xr-x 1 root root 1331 Nov 10 2007 krb524
-rwxr-xr-x 1 root root 1406 Dec 11 2008 kudzu
-rwxr-xr-x 1 root root 1932 Jun 18 2009 lvm2-monitor
-rwxr-xr-x 1 root root 1914 Nov 21 2008 mcstrans
-rwxr-xr-x 1 root root 2125 Jul 25 2009 mdmonitor
-rwxr-xr-x 1 root root 1613 Jul 25 2009 mdmpd
-rwxr-xr-x 1 root root 1819 Oct 10 2008 messagebus
-rwxr-xr-x 1 root root 1926 May 13 2009 microcode_ctl
-rwxr-xr-x 1 root root 2156 Jul 9 2009 multipathd
-rwxr-xr-x 1 root root 2994 Jul 4 2009 netconsole
-rwxr-xr-x 1 root root 5849 Jul 4 2009 netfs
-rwxr-xr-x 1 root root 1258 Apr 18 2008 netplugd
-rwxr-xr-x 1 root root 8257 Jul 4 2009 network
-rwxr-xr-x 1 root root 1897 Jun 19 2009 NetworkManager
-rwxr-xr-x 1 root root 4668 May 20 2009 nfs
-rwxr-xr-x 1 root root 3302 May 20 2009 nfslock
-rwxr-xr-x 1 root root 2517 Jul 18 2009 nscd
-rwxr-xr-x 1 root root 3361 May 14 2009 ntpd
-rwxr-xr-x 1 root root 1203 Jul 9 2008 pand
-rwxr-xr-x 1 root root 2020 Jan 17 2008 pcscd
-rwxr-xr-x 1 root root 1877 Jul 13 2006 portmap
-rwxr-xr-x 1 root root 1030 Jul 16 2008 psacct
-rwxr-xr-x 1 root root 2245 Jul 4 2009 rawdevices
-rwxr-xr-x 1 root root 1387 Apr 24 2009 rdisc
-rwxr-xr-x 1 root root 931 Feb 5 2007 readahead_early
-rwxr-xr-x 1 root root 930 Feb 5 2007 readahead_later
-rwxr-xr-x 1 root root 1793 Jul 22 2009 restorecond
-rwxr-xr-x 1 root root 1779 Jun 4 2009 rhnsd
-rwxr-xr-x 1 root root 2557 May 20 2009 rpcgssd
-rwxr-xr-x 1 root root 2072 May 20 2009 rpcidmapd
-rwxr-xr-x 1 root root 2482 May 20 2009 rpcsvcgssd
-rwxr-xr-x 1 root root 1676 Apr 29 2009 saslauthd
-rwxr-xr-x 1 root root 3349 Nov 29 2006 sendmail
-rwxr-xr-x 1 root root 3814 May 22 2009 setroubleshoot
-rwxr-xr-x 1 root root 647 Jul 4 2009 single
-rwxr-xr-x 1 root root 2740 Aug 7 2008 smartd
-rwxr-xr-x 1 root root 3964 Sep 9 2008 squid
-rwxr-xr-x 1 root root 3362 Jun 23 2009 sshd
-rwxr-xr-x 1 root root 2043 Mar 26 2008 syslog
-rwxr-xr-x 1 root root 2796 Aug 23 2006 tux
-rwxr-xr-x 1 root root 2051 Jan 27 2009 vncserver
-rwxr-xr-x 1 root root 2008 Apr 29 2009 wdaemon
-rwxr-xr-x 1 root root 1559 May 29 2009 winbind
-rwxr-xr-x 1 root root 1634 Dec 4 2008 wpa_supplicant
-rwxr-xr-x 1 root root 3902 Jun 16 2007 xfs
-rwxr-xr-x 1 root root 2497 Dec 7 2006 xinetd
-rwxr-xr-x 1 root root 3518 Apr 15 2009 ypbind
-rwxr-xr-x 1 root root 1498 Jan 19 2008 yum-updatesd
Reply With Quote
  #4  
Old 24th January 2012, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

The tutorial you posted assumes that you have Apache already installed as a package when you tryto build it from the sources. It seems you didn't have installed, that's why the httpd init script is missing.

Maybe you can install the httpd package on another system (e.g. a virtual machine) and then copy the httpd init script to this server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 26th January 2012, 01:52
joe65 joe65 is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I built Httpd from the sources after downloading the tar file from the Apache site. I am able to start httpd by using usr/local/apache2/bin/start but it is so much quicker doing service httpd start.

Thanks again.

J
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
Cannot install Rhel5.5 and Rhel 6 on same machine -- HELP PLEASE !!!!!! bechkam7 Installation/Configuration 0 31st October 2011 16:35
Something blocking port 53 stigge2000 Installation/Configuration 4 5th April 2011 14:46
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58


All times are GMT +2. The time now is 03:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.