LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2009, 06:32 AM   #1
artheus
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Question CentOS 5 : Easy server questions


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 07:00 AM. Reason: fixed ssh, and typo
 
Old 04-27-2009, 10:14 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
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.
 
Old 04-27-2009, 08:15 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
VSFTP: see chap 22 here: http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 04-27-2009, 08:32 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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 08:40 PM.
 
  


Reply

Tags
centos5, lamp, ssh, vsftpd


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
LXer: CentOS Directory Server On CentOS 5.2 LXer Syndicated Linux News 0 08-06-2008 09:20 PM
Easy VNC configuration on Red Hat/ CentOS like SLES 10? dwains Linux - Server 1 11-08-2007 10:31 AM
Some easy questions about the X server/logins 07mackenzie Linux - General 4 11-30-2006 04: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 10:46 PM
Easy questions..... Eux General 6 06-28-2005 08:52 AM


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

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