Installing Apache, MYSQL, PHP, PhpMyAdmin on Ubuntu 8.0.4

So I’m now using Ubuntu 8.0.4 Desktop Edition. Right now, it’s pretty tough for me to give a decent review. Ubuntu is great but surely you’ll expect some problems if you’re more of an experienced Windows User.

It’s been barely an hour and it’s all going fine. If you’re a developer and you desperately want to use Ubuntu for development, first thing you have to make sure of is that you’ve got SUDO powers, meaning you are logged in as an administrator. If you want to use the root account, all you have to do is type sudo bash in your terminal and you should be able to change your directory to the file system where /etc, /bin and all system folders reside.

Here’s how to install Apache2 server:

sudo apt-get install apache2

That’s so easy, right? The command  sudo apt-get install  <package> is used to download and install and a given package name in the package database.

Note: If you get an error saying the package name doesn’t exist, all you have to do is run sudo aptitude update

Install PHP5, MYSQL and PHPMyAdmin

sudo apt-get install php5

Note: I don’t see any reason for anyone to develop with PHP4 anymore. Nobody’s working on PHP4 so Ubuntu might have dropped the package.

sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin

Sometimes to make life easier, we have to get out of the environment we are familiar with. It is only in this manner that we get to experience to bliss of using a non-Windows platform.

Moving on now, let’s set up LAMP to make it work. If anyone is experiencing some permission problems and cannot edit config files or any file in the file system, type this:

gksudo nautilus /home/youraccountname

So if you’re logged in as james, type gksudo nautilus /home/james

EN,is the steps are too difficult for you ? There is a easy way to do all above thing. Just Go to

System->Administration->Synaptic Package Manage->Edit->Mark Packages by Task.  

Then you can find LAMP Server, check it and apply. It's over!

Next,Edit the Apache config file by browsing to /etc/apache2/apache2.conf. You could also use sudo vi /etc/apache2/apache2.conf. Whichever works well for you, add ServerName localhost at the end of the file.

Restart Apache: sudo /etc/init.d/apache2 restart. If this doesn’t work, restart Ubuntu. Obviously, it will work. Browse to http://localhost and if you see the phrase “It works!”, congratulations!


Leave a Reply

You must be logged in to post a comment.