LAMP installation and configuration steps

November 23, 2011 at 13:14:06
Specs: Centos 6, 12.0MB
I was able to conect Centos6 on Virtual Box to Windows (I am able to ping in both directions) with Host-only Adapter (for connection between the two) and NAT Adapter (to enable Linux on VB to connect to the Internet). I want to set up httpd, mysql and vsftpd servers and in the end easily connect to httpd from Windows based browser and ftp server with a Windows based client as well. I would also want to have access through SSH.

I have a general idea of the steps that are involved, but there is also a configuration that I am not sure about at this point. Lets say I follow these steps:

# yum install httpd
# yum install php php-pear php-mysql
# yum install mysql-server
# mysql_secure_installation
# yum install vsftpd
# yum install mod_ssl

Technically, I have everything installed, but what would be the next steps that I need to take (from the networking point of view, so to speak) to get it all working?

I know I need to configure, at least Apache, and ftp server, but I am not sure how is it gonna work; like where am I gonna be uloading the sites (I know this can vary), how am I gonna know what address to use in a browser if I wanna go to a website x, y, z on that installation etc. This sounds like I need to do some kind of DNS setup and I am kind of stuck at this point.

If somebody could give me a general outline of what are the things that need to be done that would be great (I was looking at a lot of websites and I know about etc/sysconfig/network, httpd.config - not too much about it on Apache's site, hostname, hostname -f etc; but it is kind of hard to piece it all together at this point). I am gonna be looking at the books also, but they not always reflect the setup that I have too (VirtualBox).

Thank you.


See More: LAMP installation and configuration steps

Report •

#1
November 23, 2011 at 14:05:54
There's a lot of information on the web about configuring a LAMP setup. Here's a typical guide: http://www.howtoforge.com/quick-n-e... .

As far as DNS goes, DNS just identifies the server, not the websites within it. So you just need an A record for your server.

The fact that your web server is running on a VM makes no difference whatsoever.


Report •

#2
November 25, 2011 at 08:25:22
There are also some security precautions to be taken while using LAMP, because Apache has tendency to expose many server details and PHP also can be found while responding to header parts. You can find more information over LAMP security here :- LAMP Security Guidelines


Report •
Related Solutions


Ask Question