LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-17-2005, 10:14 AM   #1
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Rep: Reputation: 15
Http and Ftp doesnt work


hi

i got my linux box running in shell mode only but for some reason when i try to access the webserver on it from another pc the servcies dont seem to be running.

when i boot up in KDE mode it works :S

any ideas on whats gone wrong?

also is there a command to show what servcies are running?
 
Old 09-17-2005, 10:22 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can see which processes are running with the ps command "ps -ef".

The services you are looking for are probably not set to run in runlevel 3. How you change this depends on your distribution.
 
Old 09-17-2005, 08:12 PM   #3
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
ok, i have redhat 9.

any ideas because i dont have a clue
 
Old 09-18-2005, 01:20 AM   #4
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
Boot like you are going to boot into a desktop. Don't log in. This is runlevel 5. Hit "ctrl-alt-F1" for a login. The processes should be running. If not, goto /etc/init.d and find the shell scripts to start them, and run "sh scriptname option". There is usually a start option for everything in init.d. If that doesn't work, try the script option restart. To check if these start, or to see if they are running: "ps aux | less". Hit the space bar to scroll through the list. Hit pgup to scroll backwards through less.

Linux is just like a woman. If you don't properly read her needs, she gets stubborn. If you can just get your hand inside /etc/init.d, she will be obedient to you. It just takes a little experience. Experience is something you just can't buy. You earn it.
 
Old 09-18-2005, 03:24 AM   #5
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
ok they work now

but how do i either make them run at runlevel3 or make it not boot into a GUI at the start, just go into shellmode?
 
Old 09-18-2005, 03:27 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You already asked this: http://www.linuxquestions.org/questi...hreadid=363911
 
Old 09-18-2005, 03:52 AM   #7
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
lol now we are back to where we started last night.

when i change inittab to start at runlevel 3 im guessing, none of services like ftp/http/sql work, so is it possible to run those services at level 3 or will they only work at level 5?
 
Old 09-18-2005, 08:22 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Just use chkconfig:
chkconfig httpd on
chkconfig vsftpd on

You can use the levels option to specify certain runleves where they should be started/stopped but these should be set to run in runlevel 3 in the init scripts anyway.
 
  


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
apache: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 08:47 AM
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 12:31 PM
[IPTABLES] FTP doesnt work with ls command narmida Linux - Networking 3 03-11-2005 01:51 PM
http config program doesnt save and exit!!! benrose111488 Linux - Software 0 06-09-2004 09:02 AM
http vs. ftp mikeshn Linux - Networking 3 05-29-2002 02:42 AM


All times are GMT -5. The time now is 02:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration