LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-25-2008, 06:57 AM   #1
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Rep: Reputation: 15
start httpd en vsftpd at start


hey, how can i start my httpd en vsftpd at boot up server?
I already tried chkconfig httpd on and chkconfig vsftpd on, but if i reboot it hasnt started? i am using centos btw.

grtz
 
Old 04-25-2008, 07:03 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
You've done all that should be necessary. What do the commands "chkconfig httpd --list" and "runlevel" tell you now?
 
Old 04-25-2008, 07:07 AM   #3
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
it tells me this
Quote:
httpd 0ff 1ff 2n 3n 4n 5n 6ff
runlevel says: N 3

Last edited by zerocool22; 04-25-2008 at 07:08 AM.
 
Old 04-25-2008, 07:10 AM   #4
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
All looks good. What about "service httpd status"? Then we need to look at /var/log/messages to see if there is a reason Apache isn't working.

Also, can you post your reasons for believing Apache isn't running? To save me repeating the same tests - what have you already tried?
 
Old 04-25-2008, 07:13 AM   #5
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
I rebooted my server, and when booted i run service httpd start and it said ok, normally if it wasnt run it would say, service is already runned. Same for vsftpd.
 
Old 04-25-2008, 07:20 AM   #6
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Is there anything in /var/log/httpd/error_log that might help? I'd also like to check the process table after rebooting but before you manually start httpd. Use "service httpd status" for me to see if it is running or not.

Have you tryed to access your server locally or remotely? "links http://localhost" should start a text-based browser on your server and try to connect to the Apache server.
 
Old 04-25-2008, 07:23 AM   #7
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
yeah i tried everything above nothing still though
 
Old 04-25-2008, 07:31 AM   #8
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
OK, let's check to see if chkconfig has done it's job properly. Do you have a sym-link to the /etc/init.d/httpd script in your /etc/rc3.d directory? It might look like this?
Code:
2.6.18-53.1.14.el5xen[root@www rc3.d]# ll /etc/rc3.d/*http*
lrwxrwxrwx 1 root root 15 Apr  2 18:59 /etc/rc3.d/S85httpd -> ../init.d/httpd
2.6.18-53.1.14.el5xen[root@www rc3.d]#

Last edited by blacky_5251; 04-25-2008 at 07:37 AM.
 
Old 04-25-2008, 07:42 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
First thing is

ps aux | grep httpd

and similarly for vsftp.

Most likely issue is screwed up configs that stop it running once started

Logs are your friend here
 
Old 04-25-2008, 07:42 AM   #10
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
thx yeah its exactly like the one you posted.
 
Old 04-25-2008, 07:46 AM   #11
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Can you post /var/log/httpd/error_log?
 
Old 04-25-2008, 07:50 AM   #12
zerocool22
Member
 
Registered: Feb 2008
Posts: 95

Original Poster
Rep: Reputation: 15
never mind, i rebooted the server once more, and now it does work


Thx for all your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd won't start charlie2450 Linux - Newbie 17 03-12-2008 07:23 PM
httpd won't start jim.thornton Linux - Newbie 2 01-06-2008 02:57 PM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
Trying to enable SSL security to vsftpd/httpd, buti have no idea where to start. CodeWarriorFX Linux - Security 1 12-14-2005 10:20 AM
httpd will not start :: buddy Linux - General 9 12-31-2002 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration