Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Edit:
1)
TWM - a lightweight desktop is running on CentOS 5
So they're installed. If you have ssh access, just login and configure them to your liking. I'm not sure what exactly your asking for. Any docs that tell you what commands to run will do the job most likely. The client you're connecting from really plays no factor in setting up LAMP on the CentOS server.
So they're installed. If you have ssh access, just login and configure them to your liking. I'm not sure what exactly your asking for. Any docs that tell you what commands to run will do the job most likely. The client you're connecting from really plays no factor in setting up LAMP on the CentOS server.
Hi trickykid,
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.
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
B.R.
satimis
Last edited by satimis; 01-11-2008 at 09:46 AM.
Reason: adding more info
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
You only need one IP for a mail server and you don't necessarily need two mail servers. Pick the MTA you want to go with and go from there. Most will come standard with Sendmail, but if you want to make your life easier, I'd say pull down the postfix packages if they're not already installed and use that. I even have a quick entry on my technical blog on how to switch the default MTA in Redhat/CentOS servers:
But choose the one your most comfortable with and read up on how to configure it. And since you're behind a router that most likely has the public IP address, you'll need to configure it to forward all the appropriate port requests to the server, like 25 to it for Mail, 80 for web, etc.
You only need one IP for a mail server and you don't necessarily need two mail servers. Pick the MTA you want to go with and go from there. Most will come standard with Sendmail, but if you want to make your life easier, I'd say pull down the postfix packages if they're not already installed and use that. I even have a quick entry on my technical blog on how to switch the default MTA in Redhat/CentOS servers:
But choose the one your most comfortable with and read up on how to configure it. And since you're behind a router that most likely has the public IP address, you'll need to configure it to forward all the appropriate port requests to the server, like 25 to it for Mail, 80 for web, etc.
Thanks for your advice and URL
No, I won't run 2 Mail Servers. I'll stop Postfix on Ubuntu and run Sendmail on CentOS
(Remark: This is a test)
# yum list postfix
Code:
Loading "installonlyn" plugin
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 108 kB 00:00
################################################## 215/215
Available Packages
postfix.x86_64 2:2.3.3-2 base
[root@localhost ~]# yum list sendmail
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Installed Packages
sendmail.x86_64 8.13.8-2.el5 installed
4)
I found following on the Notes taken down during installing VMWare Server running "vmware-config.pl";
Code:
.....
Configuring a bridged network for vmnet0.
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
All your ethernet interfaces are already bridged.
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] [Enter]
Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [Enter]
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.213.0/255.255.255.0 appears to be unused.
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 192.168.213.0.
Do you wish to configure another NAT network? (yes/no) [no] [Enter]
Do you want to be able to use host-only networking in your virtual machines?
[yes] [Enter]
Configuring a host-only network for vmnet1.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [Enter]
Probing for an unused private subnet (this can take some time)...
The subnet 172.16.77.0/255.255.255.0 appears to be unused.
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 172.16.77.0.
Do you wish to configure another host-only network? (yes/no) [no] [enter]
......
The module loads perfectly in the running kernel.
Please specify a port for remote console connections to use [902] [Enter]
....
Generating SSL Server Certificate
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] [Enter]
The path "/var/lib/vmware/Virtual Machines" does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? [yes] [Enter]
....
>> Now, CentOS can get out but no body can get in.
>> Any advice? TIA
-----
The issue on your CentOS why you "can't get in" is because you are using NAT on your CentOS VMware Guest. You can either configure routing for this to work or you could change to Bridge mode which means that CentOS will show up as a host on the 192 network.
>> Now, CentOS can get out but no body can get in.
>> Any advice? TIA
-----
The issue on your CentOS why you "can't get in" is because you are using NAT on your CentOS VMware Guest. You can either configure routing for this to work or you could change to Bridge mode which means that CentOS will show up as a host on the 192 network.
I use "bridged" connection.
On CentOS I can ping
192.168.0.10 (Ubuntu IP)
192.168.0.1 (router IP/gateway)
public IP of the Ubuntu
On Ubuntu I can ping
192.168.0.20 (CentOS IP)
on browser (running on Ubuntu) https://public_IP:8080
can't display Apache 2 Test Page powered by CentOS
Satimis, sisnce you made so many posts getting Postfix working, why don't you stick with Postfix rather than Sendmail?
I'm NOT prepared to run Sendmail on CentOS 5. Since it is the default Mailer of CentOS it just comes in on running CentOS 5.
My immediate need is to make CentOS visited by Internet, NOT single way traffic. There must be somewhere blocking the incoming traffic to CentOS. It is NOT the iptables on Ubuntu. Also I can ssh connect CentOS on Ubuntu as well as on other PCs on the same network. I can ping CentOS IP on other PCs on the same network w/o packet loss
The above is the information that you provided before. But I guess you have changed the config so you now have CentOS in bridged mode, good start.
You say that you can not access via https, how about http? Because if you can ping it, surely this has to do with something else. Are you able to https or http to 192.168.0.20 from your ubuntu machine? If this works, I recommend that you try the connection from 'out side' your internal network as you probably have routing issues.
The above is the information that you provided before. But I guess you have changed the config so you now have CentOS in bridged mode, good start.
Oh, sorry. I changed it to bridged connection sometimes later.
Quote:
You say that you can not access via https, how about http?
No, the same. Tried many times.
Quote:
Are you able to https or http to 192.168.0.20 from your ubuntu machine? If this works, I recommend that you try the connection from 'out side' your internal network as you probably have routing issues.
No, both NOT work.
I also tried on proxydom.com http/https://public_ip:8080 without solution.
A further thought. The router is provided by ISP with password locked. I can't touch it. I made request to ISP to have port 8080 forward to 192.168.0.20 (CentOS IP addr). I double-checked it with ISP for sure. Would the router has web-base interface item on port? If YES, must I request ISP to have it enabled? Thanks
Oh, sorry. I changed it to bridged connection sometimes later.
No, the same. Tried many times.
No, both NOT work.
I also tried on proxydom.com http/https://public_ip:8080 without solution.
A further thought. The router is provided by ISP with password locked. I can't touch it. I made request to ISP to have port 8080 forward to 192.168.0.20 (CentOS IP addr). I double-checked it with ISP for sure. Would the router has web-base interface item on port? If YES, must I request ISP to have it enabled? Thanks
satimis
This sounds like it is something else. As you can not access the CentOS from Ubuntu even if they physically reside on the same machine it does not have anything to do with your ISP.
Is the firewall turned on on your CentOS? If it is, please turn it off during testing or let through TCP 80 & 443 for http/https access.
Is the apache listening on 80 and 443? Confirm this using:
netstat -an | grep 80
and
netstat -an | grep 443
If it isn't listening. Try restarting/starting apache
/etc/init.d/httpd restart
If you still have no luck....
Confirm that you see something like Listen 80 and Listen 443 in your /etc/httpd/conf/httpd.conf
the 443 might also have been configured in your ssl.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.