Forum Moderators: bakedjake

Message Too Old, No Replies

Linux Connection Issue

yay, I can't connect to my server

         

Abdar

4:23 pm on Jun 30, 2003 (gmt 0)

10+ Year Member



Ok well I have Redhat 9 up and running in text mode. I had problems with X-windows and such so I'm not worrying about it.

Anyways I can't seam to connect to my server externally. In the set up I allowed www, telnet and ssl connections. I didn't check the box beside eth0 (my card I assume) as I read that for security reasons you shouldn't.

What's the next step here? Are there files that I need to edit or something before anyone can get in and do anything? I can't even seem to connect to mysql when I'm on the machine.

I've read a bit but I'm thinking there's something small I'm missing.

Thanks.

mack

3:08 am on Jul 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Are you sure the server is running. Open a shell and type "apachectl start"
then open a browser and go to localhost. This will confirm that apache is running.

As for mysql, try opening a shell and typing...
mysql_install_db
This is a one off command so you dont need to run it again.
Then type...
safe_mysqld --user=root &
This should start mysql running.

Hope this helps.

Mack.

Abdar

4:48 am on Jul 1, 2003 (gmt 0)

10+ Year Member



Fantastic. I did have apache going but I was getting Error 2002 with anything I did with mysql. It couldn't find some mysql.socket or some thing but what you showed me did the trick.

Things should go much smoother now. I was just wondering why I can [123.123.123.123...] my computer via a browser but can't ftp or telnet into it. I was sure that I had set that all correctly in the initial setup but I can't seem to get in. (haven't tried ssl yet)

Do I have to run a FTP server of some sort? Telnet server?

I have been reading stuff for the past couple days so dont think that I'm one of those guys looking for answers without doing any work ;)

Thanks again...

mack

5:09 am on Jul 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You will probably have to install an ftp server on your computer to be able to connect with your ftp client.

I think. :)

Im fairly new to server side also thats why I was able to provide the sql help. I only found that out myself a few days ago so had it handy.

Mack.

Abdar

1:31 pm on Jul 1, 2003 (gmt 0)

10+ Year Member



Thanks Mack, I'll keep pluggin away at her...

dingman

5:13 pm on Jul 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To get a list of what is listening to the various ports on your machine, try installing 'nmap'. It may already be installed, in which case you can type 'nmap localhost' to get a list of open ports. It's great for making sure that (a) all the servers you think are running, are and (b) nothing else is.

mack

6:20 am on Jul 2, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hey thanks for that dingman, Very usefull.

One more question. How can I configure what runs from boot?

(bit of a newby question)

Thanks again.

Mack.

ChilliTwister

10:55 am on Jul 2, 2003 (gmt 0)



Hi mack!

In your /etc directory there's a init.d/ or rc.d/ directory. There you find the scripts available to run at boot and shutdown. And you find directories named rc1.d/, rc2.d/ and so on. These directories represent the runlevels of your system. So if you are running a server without an X system the important runlevel for you is 3 (with X it would be 5).
For each process there are 2 files:
1st is named S##$processname
Where S stands for start, the higher the 2digit number is, the later the process will be started during bootup and then comes the name of the file which is in you rc.d/ or init.d/ directory.
2nd is named K##$processname
K is for kill number means the lower, the later it will be shut down and then again the process name.

For each started process there should also be a kill in one of you "basic" runlevels because else you could loose data while shutting down or rebooting.

There's much more about this. If you have any further questions, just ask :-)

So long...
CT