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 Edit: 1) TWM - a lightweight desktop is running on CentOS 5 2) httpd.x86_64 2.2.3-11.el5.centos installed mysql-server.x86_64 5.0.22-2.2.el5_1.1 installed php.x86_64 5.1.6-15.el5 installed php-mysql.x86_64 5.1.6-15.el5 installed have been installed on CentOS 5 B.R. satimis |
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.
|
Quote:
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 |
Quote:
http://clockwatching.net/~drew/blog/...y071011-080000 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. |
Quote:
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 # ps aux | grep sendmail Code:
root 2271 0.0 0.4 66828 2068 ? Ss 04:14 0:00 sendmail: accep # /etc/init.d/sendmail status Code:
sendmail (pid 2280 2271) is running... I further found follows; 1) On CentOS Apache is already running; https://localhost starts "Apache 2 Test Page powered byt Cent OS" 2) On Ubuntu $ ifconfig Code:
On Ubuntu I further found on running "ifconfig" ; 3) On CentOS # ifconfig Code:
eth0 Link encap:Ethernet HWaddr 00:0C:29:1D:65:AD 4) I found following on the Notes taken down during installing VMWare Server running "vmware-config.pl"; Code:
..... Now, CentOS can get out but no body can get in. Any advice? TIA satimis |
NAT vs. Bridge
>> 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. With regards to setting up Sendmail on CentOS. Have a look at this article by Stuart R. Kirk which I found useful. http://www.redhat.com/magazine/025no...ail/index.html HTH. |
Quote:
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 Port 8080 is forward to 192.168.0.20 Quote:
B.R. satimis |
Satimis, sisnce you made so many posts getting Postfix working, why don't you stick with Postfix rather than Sendmail?
|
Quote:
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 satimis |
NAT vs. Bridge
Quote:
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. HTH /JT |
Do you have iptables running - it starts by default on a new CentOS build. Try
Code:
service iptables stop Hint - when you install postfix, make sure you install system-switch-mail and run it to set the necessary variables |
Do you have iptables running - it starts by default on a new CentOS build. Try
Code:
service iptables stop Hint - when you install postfix, make sure you install system-switch-mail and run it to set the necessary variables |
Quote:
Quote:
Quote:
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 |
Quote:
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. HTH |
Quote:
Quote:
Nor can I find it on Ubuntu postfix; $ cat /etc/postfix/main.cf | grep switch No printout satimis |
All times are GMT -5. The time now is 04:01 AM. |