Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2008, 01:07
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Remote setup of LAMP server on CentOS 5

Hi folks,


Ubuntu 7.04 server amd64 (Host OS) - Fluxbox desktop
CentOS 5 x86_64 (Guest OS) - w/o desktop. X is running
UMWare - Virtualization platform
Open-ssh server and client are running on both OSs


I need to setup LAMP server on CentOS 5 remotely on Ubuntu. I have been googling a while for relevant documentation and howto with many output generated. Most of them are for Windows server. Please shed me somelight where can I find a relevant document/howto for my use. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2008, 16:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by satimis
I need to setup LAMP server on CentOS 5 remotely on Ubuntu.
How do you mean that? Do you want to log in on your CentOS server from your Ubuntu desktop using SSH? You can do it like this:

Code:
ssh username@hostname
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th January 2008, 12:42
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
How do you mean that? Do you want to log in on your CentOS server from your Ubuntu desktop using SSH? You can do it like this:

Code:
ssh username@hostname
Hi falko,


Thanks for your advice.

Previously I mistakenly thought it'll complicate to setup remote-access for configuring the remote server. X forwarding will be needed. Later I found out only with

$ ssh remote_server_ipaddr. (CentOS 5)


and login. That is all. Then I can configure CentOS 5 on Ubuntu console.


I haven't figured out how to sent/receive mails on Mail Server running on CentOS if only having one IP address from ISP and one domain. Any advice. TIA


Edit:

Network connection;

Server -> Router -> DSL Modem -> Internet

The router is on loan from ISP. They use it as gateway. I can't touch it.

Intranet IP address (router ip addr)
Ubuntu - 192.168.0.10
CentOS - 172.16.103.128 ( found with ifconfig)

Only one NIC on the PC


satimis

Last edited by satimis; 11th January 2008 at 16:48.
Reply With Quote
  #4  
Old 12th January 2008, 17:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by satimis
I haven't figured out how to sent/receive mails on Mail Server running on CentOS if only having one IP address from ISP and one domain. Any advice.
You mean you want to receive emails on both the Ubuntu and then CentOS system? That's not possible with just one public IP address.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
satimis (13th January 2008)
  #5  
Old 13th January 2008, 10:57
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
You mean you want to receive emails on both the Ubuntu and then CentOS system? That's not possible with just one public IP address.
No, with one public IP I will stop postfix on Ubuntu running and running sendmail (default mail package) on CentOS as mail server. I haven't figured out to make the World connet CentOS. Now CentOS can reach the outside world BUT NOT vice versa.

It is my first time running virtualization. This is an experiment. I want to find out what will be its advantage running serveral servers on the same PC.


Another thought if with 2 public IP can I make both Ubuntu and CentOS systems receive emails? OR in addition I need another domain or matching domain?

Thanks


satimis
Reply With Quote
  #6  
Old 14th January 2008, 16:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by satimis
No, with one public IP I will stop postfix on Ubuntu running and running sendmail (default mail package) on CentOS as mail server. I haven't figured out to make the World connet CentOS.
You must forward all desired ports from your router to your CentOS system.

Quote:
Originally Posted by satimis
Another thought if with 2 public IP can I make both Ubuntu and CentOS systems receive emails? OR in addition I need another domain or matching domain?
You need a router that can deal with multiple public IP addresses.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 22nd January 2008, 06:29
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
You must forward all desired ports from your router to your CentOS system.
This is really a problem to me. I requested ISP to forward port 8080 to 192.168.0.20 (CentOS IP addr). The router is on loan from ISP. I can't touch it except ISP. I reconfirmed my request with ISP. Now CentOS can connect Internet. But Internet can't get in CentOS. I'm running bridged connection. CentOS and Ubuntu (Host OS) are sharing ONE NIC. I have tried 2 days w/o a solution. Any advice? Where I have to check to fix the problem?


Quote:
You need a router that can deal with multiple public IP addresses.
Shopping a router able handling multiple public IP? OR under other technical term/name?


B.R.
satimis
Reply With Quote
  #8  
Old 29th January 2008, 16:48
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi folks,


I have been fiddling around to get CentOS, the guest OS on VMware server, to be visible by Internet without result.


Now I can run;

either
http://192.168.0.20 (CentOS IP addr)

or
https://192.168.0.20


on Ubuntu, the host OS, OR another PC on the network to display "Apache2 Test Page powered by CentOS".


But on another network (tried proxydom.com), none of;

http://public_ip:8080 (port 8080 is forwarded to 192.168.0.20)
https://public_ip:8080

can visit "Apache 2 Test Page"


On proxydom.com

https://public_IP (displays Apache default page of Ubuntu)
https://public_IP:80 (nothing found)
https://public_IP:443 (displays Apache default page of Ubuntu)
https://public_IP:8080 (nothing found)


http://public_IP (displays Apache default page of Ubuntu)
http://public_IP:80 (displays Apache default page of Ubuntu)
https://public_IP:443 (directed to "http://proxydom.com/proxy.php?q=http%3A%2F%2Fsatimis.com%3A443&hl=222" with nothing displayed)
https://public_IP:8080 (nothing found)


Help would be appreciated. TIA


satimis
Reply With Quote
  #9  
Old 30th January 2008, 15:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Does your router forward port 8080 to port 80 on 192.168.0.20?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 30th January 2008, 15:35
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by falko
Does your router forward port 8080 to port 80 on 192.168.0.20?
Whether you meant forward port 8080 to port 80 then to 192.168.0.20 ?

Or forward port 80 and port 8080 to 192.168.0.20 respectively?


Contacted ISP about half hour ago in re of the router problem which is under their remote control. They made following 2 settings;


1)
Forward ports 80, 443 and 8080 all to 192.168.0.20 (CentOS IP addr.)

Appache default page of CentOS can be visited with;

http://public-ip


The problem on Ubuntu is SquirrelMail, the webmail, unable to work.


2)
Set CentOS IP addr, 192.168.0.20 to DMZ.

Appache default page of CentOS can be visited with;

http://public-ip


But all ports forward to CentOS. The Mail Server on Ubuntu can't work.


Any solution to Setting 1) above so that SM can work with all www ports forward to 192.168.0.20, CentOS? TIA


B.R.
satimis
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Going to setup a small company server... but how? LINUXstarter Server Operation 13 23rd December 2007 18:33
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig aaa999 Server Operation 8 20th December 2007 16:30
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
How to setup VMware Server on Centos 5.0 Osricson Suggest HOWTO 3 2nd May 2007 10:48
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 03:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.