====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 root@awesomeso:~# aptitude update followed by an root@awesomeso:~# aptitude upgrade - We're going to get apache: root@awesomeso:~# apt-get install apache2 - Then mysql: apt-get install mysql-server Once mysql installs we're going to configure it: root@awesomeso:~# mysql_secure_installation - After you configure your Mysql with your proper credentials, let's login: root@awesomeso:~# mysql -u root -p Then we need to create a Database: create database dataBASE; followed by a: grant all on dataBASE.* to 'foreman' identified by '5t1ck'; to grant permissions on Mysql - quit out of the Mysql shell and enter this command to grab some PHP goodies: root@awesomeso:~# apt-get install php5 php-pear php5-suhosin and: root@awesomeso:~# apt-get install php5-mysql - Finally we'll restart our apache server and everything should be working: root@awesomeso:~# /etc/init.d/apache2 restart 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!