PDA

View Full Version : [ubuntu] I skipped LAMP on the install and now want it, easy solution?



0xCAFEFACE
October 27th, 2010, 10:03 PM
On ubuntu server 9.10, the installation offers pre-set setups for different services such as LAMP, samba, etc... I skipped LAMP on the server but now I want it.

When I went to install with apt-get, I noticed all ownership for the web was under root and I'm not experienced enough to know all the things this option did to ensure security (such as create a user and give ownership to "WWW-DATA" instead).

Is there a simple option for me to go back and get this process to install a second time, or if not, is there a great tutorial that provides a step-by-step example of the best way to secure LAMP on a fresh install?

(side-note, when I installed, I typed in sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server )

Thanks!

sisco311
October 27th, 2010, 10:10 PM
Check out the Ubuntu Server Guide: 9.10/serverguide/C/index.html

efflandt
October 28th, 2010, 05:03 AM
Here is one link of an explanation how to install LAMP http://surferzworld.com/2010/10/installing-lamp-linux-apache-mysql-php-server-ubuntu/

But I was interrupted by a phone call while installing phpmyadmin, so not sure if I did something wrong, but that part did not work in Maverick until I symlinked it to apache2 sites-enabled:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/.

sudo /etc/init.d/apache2 restart

I also played around with how to add and configure name based virtual hosts in apache2 by creating another file in sites-enabled with <VirtualHost *:80> </VirtualHost> wrappers

0xCAFEFACE
October 28th, 2010, 02:40 PM
Thanks for the responses everyone.

The solution was to use 'tasksel' as per the Ubuntu Server Guide: 9.10.