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

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 04-27-2009, 07:32 AM   #1
artheus
LQ Newbie
 
Registered: Apr 2009
Posts: 1
Thanked: 0
Question CentOS 5 : Easy server questions


[Log in to get rid of this advertisement]
If can't get answer to all at once, please answer one at a time!

1. LAMP server

I've installed LAMP server, as root, by the commands "yum install httpd", "yum install php" and "yum install mysql-server mysql". And I've put a file called index.php in the folder "var/www/html". But I can't connect to the server from another camputer using the IP adress of my server "http://192.168.1.201" which to me seems weird. And I'm pretty sure I've configured the Router correctly. "Default server : 192.168.1.201" and forwarded port 80. And no firewall activated.
So, what might be the problem? (I'm used to Ubuntu 8.10 server edition)

############## DON'T MIND! FIXED IT! ###############
2. SSH server

When I then tried to connect do the server by ssh, using putty in windows (I've installed openssh) that would not connect either. Is there completely different in CentOS 5 from Ubuntu 8.10?
I've made a public key for openssh using ssh-keygen. And still no luck. I've looked through the sshd_config, and everything seems to be good.

Fix : Forgot to "service sshd restart" after changes. That is not the problem with the others though.
########################################################


3. VSFTPD server

Well, I haven't really gotten to start setting up the ftp server. But I'm used to vsftpd from Ubuntu, and so I thought this might be as good as an equal to the Ubuntu version. But if there is a totally different way of configuring this. Please link a good tutorial for Virtual Users, etc.


Please, if you know of some good tutorials that fits my questions, please link them.

Thank you!

Cheers,
Artheus

Last edited by artheus; 04-27-2009 at 08:00 AM.. Reason: fixed ssh, and typo
artheus is offline  
Tag This Post , , ,
Reply With Quote
Old 04-27-2009, 11:14 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: Lab Server - FreeBSD 7.2 Laptop - Linux Mint
Posts: 1,857
Thanked: 35
Quote:
Originally Posted by artheus View Post
If can't get answer to all at once, please answer one at a time!

1. LAMP server

I've installed LAMP server, as root, by the commands "yum install httpd", "yum install php" and "yum install mysql-server mysql". And I've put a file called index.php in the folder "var/www/html". But I can't connect to the server from another camputer using the IP adress of my server "http://192.168.1.201" which to me seems weird. And I'm pretty sure I've configured the Router correctly. "Default server : 192.168.1.201" and forwarded port 80. And no firewall activated.
So, what might be the problem? (I'm used to Ubuntu 8.10 server edition)

############## DON'T MIND! FIXED IT! ###############
2. SSH server

When I then tried to connect do the server by ssh, using putty in windows (I've installed openssh) that would not connect either. Is there completely different in CentOS 5 from Ubuntu 8.10?
I've made a public key for openssh using ssh-keygen. And still no luck. I've looked through the sshd_config, and everything seems to be good.

Fix : Forgot to "service sshd restart" after changes. That is not the problem with the others though.
########################################################


3. VSFTPD server

Well, I haven't really gotten to start setting up the ftp server. But I'm used to vsftpd from Ubuntu, and so I thought this might be as good as an equal to the Ubuntu version. But if there is a totally different way of configuring this. Please link a good tutorial for Virtual Users, etc.


Please, if you know of some good tutorials that fits my questions, please link them.

Thank you!

Cheers,
Artheus
for question 1. try running
Code:
 netstat -a
this will show you all the listening ports. Also are you sure that the service is running. try /etc/init.d/httpd start or /etc/init.d/apache2ctl start one of those should start it.

For question 3. No the setup is pretty much exactly the same. The only difference will be the installation. yum for centOS and apt-get for Ubuntu.
jstephens84 is offline     Reply With Quote
Old 04-27-2009, 09:15 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,428
Thanked: 325
VSFTP: see chap 22 here: http://www.linuxtopia.org/online_boo...ion/index.html
chrism01 is online now     Reply With Quote
Old 04-27-2009, 09:32 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Thanked: 126
For 1, the exact error message would be better.

Can you connect from the local machine? If you don't have a gui installed, try elinks or similar text based browser, and navigate to http://localhost

For putty, it has its own key generation utility you should use. Again, exact message would help, but are you sure you have port 22 forwarded?

Are you actually saying that this is a virtual machine rather than native?

Edit - puttygen is the putty key generation utility.

Last edited by billymayday; 04-27-2009 at 09:40 PM..
billymayday is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
LXer: CentOS Directory Server On CentOS 5.2 LXer Syndicated Linux News 0 08-06-2008 10:20 PM
Easy VNC configuration on Red Hat/ CentOS like SLES 10? dwains Linux - Server 1 11-08-2007 11:31 AM
Some easy questions about the X server/logins 07mackenzie Linux - General 4 11-30-2006 05:22 PM
LXer: Systems Solutions Teams with Open-Xchange to Deliver Easy-to-Deploy, Easy-to-Use Collaboration Server LXer Syndicated Linux News 0 02-22-2006 11:46 PM
Easy questions..... Eux General 6 06-28-2005 09:52 AM


All times are GMT -5. The time now is 11:44 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration