LAMP ( Linux, Apache, MySql, Php ) Server on Ubuntu 8.04

3 08 2008

In a post, a few days ago, i described how i had to restore and reinstall my system.
Meaning daily, i’ve been finding some of the software i need and reinstalling it.

So here i found myself needing to make use of a Lamp server on my laptop.
There’s literally thousands of guides about how to achieve this. Fact is that, on Ubuntu 8.04 (Hardy Heron ), it can be reduced to a few easy steps, and all the trick is done.

Once more, for the sake of clarity, and to spare some time:

Install mysql
sudo apt-get install mysql-server-5.0

Install Apache2
sudo apt-get install apache2

Install php and the apache module for it
sudo apt-get install php5 libapache2-mod-php5

Reboot apache (very important)
sudo /etc/init.d/apache2 restart

PhpMyAdmin, if you need it
sudo apt-get install phpmyadmin

That’s all folks!




8 responses

4 08 2008
Video Surveillance system on Ubuntu 8.04 with Zoneminder « Sid? What is he on about now?

[…] It is assumed that the machine is a fully working Lamp server. If you don’t have that yet, here’s a quick setup. […]

18 08 2008
shantanu goel

Well, it can be made even more easy by doing a “sudo tasksel”, select “web server” and press ok. voila…

18 08 2008
Sidrit Trandafili

Yes, that is true. From my own experience though, i’ve had problems with that setup.
At times i would get a blank apache configuration file. Other times the root mysql password would not be saved with the value inserted during the setup.

Anyhow still remains a valid option. Thank you for contributing šŸ™‚

20 08 2008
shantanu goel

@sid: You are right about the problems, I think there were a few bugs pre gutsy-feisty that caused this and have been fixed now. Moreover, the other thing is that some times you might feel that it is kind of “hung” and doing nothing for a long time and then all of a sudden it’ll go to 100%. Many people think that it is not working during that “hung” period and terminate it again causing the issues.

BTW, I must complement you that you have a good collection of how-tos here. I’ll be feed reading you definitely…:)

20 08 2008
Sidrit Trandafili

@shantanu: Indeed indeed. Actually, as in a few weeks ago the same issues were still existent in Hardy. On the other hand the packages if installed separately seem to give less trouble.

ps. Yah, i was reading through your blog yesterday. Well done.
Kept me busy for a bit. šŸ™‚

26 10 2008

Hi ;]
i tryed to install LAMP before but didnt work, how do i remove all the old installed progs and their config files, so i can install it the way explained here ?

27 10 2008
Sidrit Trandafili

Heh. I’d say so. has worked for me and for a bunch of other people.
Depending on your setup though you might want to try tasksel.
Always failed for me , but i have not tried it yet with Ibex.
So we see.

Non the less this should work yes.

28 12 2010
» Linux Media Center and Seed/Downloading Box Playground And Showcase

[…] A quick howto on a Lamp server can be found on another post of mine Here. […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: