LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Http and Ftp doesnt work (https://www.linuxquestions.org/questions/linux-newbie-8/http-and-ftp-doesnt-work-364189/)

Anthraxnz 09-17-2005 09:14 AM

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?

david_ross 09-17-2005 09:22 AM

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.

Anthraxnz 09-17-2005 07:12 PM

ok, i have redhat 9.

any ideas because i dont have a clue :(

AwesomeMachine 09-18-2005 12:20 AM

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.

Anthraxnz 09-18-2005 02:24 AM

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?

Nylex 09-18-2005 02:27 AM

You already asked this: http://www.linuxquestions.org/questi...hreadid=363911

Anthraxnz 09-18-2005 02:52 AM

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?

david_ross 09-18-2005 07:22 AM

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.


All times are GMT -5. The time now is 11:01 AM.