Simple Lamp stack for ubuntu
So I've been going back and forth with different distros this weekend trying to get the latest ubuntu to install in my Dell Inspiron to no avail the disk loads but then it just stops. So in turn I went back to ubuntu 8.04 to install on my small laptop.
Now I do a bit of development on this machine when I need to keep it simple, but I also want to have this as a back up service, but that's a whole different post lol.
So my goal was to get a back up of my current server just for this Ubuntu 10 upgrade, but I wanted to make sure I can mirror my lamp stack, but it's been so long since I had to build a lamp stack that I actualy had to go back to the drawing board I mean 8.04 doesn't have 5.3 and well I want to move to 5.3 development but in order to make sure my apps still work i need to mirror my 8.04 server and so for starters I have a simple lamp stack script I run in order to get the party started the right way, and that code is as follows:
sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 php5-xsl php5-gd php-pear libapache2-mod-auth-mysql php5-mysql
sudo sed -i ’s/; extension=mysql
.so/extension=mysql\.so/g’ /etc/php5/apache2/php.ini
#There's a series of 3 spaces after ’s/;
sudo /etc/init.d/apache2 restart
I will be making updates to this script as it comes along but I also have a coworker working on an ideal Ubuntu 10 server script for all of our server needs... I hope to leave that server as a server and not use it as my development machine the days are counting till I reach that goal. Till then you all have a great weekend.
View Orignal Post at:http://www.ubuntugeek.com/install-the-lamp-stack-with-3-commands.html
