User Tools

Site Tools


user:asowers:virtual_lamps_don_t_need_shades

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:asowers:virtual_lamps_don_t_need_shades [2012/03/13 14:30] – [Procedures] asowersuser:asowers:virtual_lamps_don_t_need_shades [2012/03/13 15:58] (current) – [Conclusion] asowers
Line 1: Line 1:
 +====Welcome====
  
 +====Project 3 - setting up a LAMP server on a VM====
 +
 +====Objective==== 
 +Setup a Linux Apache2 Mysql and PHP server on a Virtual Machine.
 +
 +====Prerequisites====
 +Linux VM server install
 +VM install
 +
 +====background====
 +With virtualization we can make one system preform multipul services. A workstation can also be a web-server without the services ever overlapping and that's very powerful, minimalist and green.
 +
 +====Procedures==== 
 +
 +  - Before we begin let's update our packages with an <cli>root@awesomeso:~# aptitude update</cli> followed by an <cli>root@awesomeso:~# aptitude upgrade</cli>
 +  - We're going to get apache: <cli>root@awesomeso:~# apt-get install apache2</cli>
 +  - Then mysql: apt-get install mysql-server Once mysql installs we're going to configure it: <cli>root@awesomeso:~# mysql_secure_installation</cli> 
 +  - After you configure your Mysql with your proper credentials, let's login: <cli>root@awesomeso:~# mysql -u root -p</cli> Then we need to create a Database: </cli>create database dataBASE;</cli> followed by a: <cli>grant all on dataBASE.* to 'foreman' identified by '5t1ck';</cli> to grant permissions on Mysql
 +  - quit out of the Mysql shell and enter this command to grab some PHP goodies: <cli>root@awesomeso:~# apt-get install php5 php-pear php5-suhosin</cli> and: <cli>root@awesomeso:~# apt-get install php5-mysql</cli>
 +  - Finally we'll restart our apache server and everything should be working: <cli>root@awesomeso:~# /etc/init.d/apache2 restart</cli>
 +
 +Enter your ip into a web browser and you should see great success!
 +
 +====Conclusion====
 +So if everything went correctly you should have a full functional web server. Drop in an index.html you've built and you're good to go!