Monday, 27 September 2010

Ubuntu 10.04 with LAMP server

Let me first explain a little bit about what i'm going to do and why i need to do it. My company requires a stable and secure development environment from which the product, which is all the applications and code cannot be carried out of the office with the employees. For this purpose i proposed a local LAMP server, running SVN and Trac ( to be discussed later).

The reason for this blog is to document my attempts at different installations and tasks in Ubuntu, as well as fixes which have been taken from a lot of different sources because one just doesn't work. Hopefully this blog will help you with your problems.

For this purpose i chose Ubuntu because of all the support that comes with it, you could choose any other distribution of your choice. I tried working on Centos, but it almost drove me mad.

First things first, grab a fresh distribution of Ubuntu from www.Ubuntu.com . I chose the Desktop version because of the Graphical User Interface that comes with it, coming from a life of using Windows from the word go, a nice GUI is always welcome to fiddle around when things arent going your way.

once you've installed Ubuntu login with the account you created during the installation and fire up the terminal. You should find it under Application > Accessories.

Type: 
  • sudo su
at the prompt and it will ask you to type in the root password. Do that and you have admin rights and wont have to type sudo with every command.

To install LAMP (Linux Apache Mysql PHP) simply type at the terminal prompt:
  •  sudo tasksel install lamp-server
This should bring up a blue screen and start downloading packages, it will ask you to enter a password for mysql half way through, enter something you can remember later on as well.

Once the installation has completed, type the following in the address bar of your browser
  • http://localhost  OR http://127.0.0.1   
 You should see a page saying IT WORKS! if you do then you've successfully installed Apache, if not then browse around and should be able to find something that works for you.

At this point you need to install a front end to manage Mysql, a good one is PHPMYADMIN

To install phpmyadmin simply type the following at the terminal prompt:
  •  apt-get install phpmyadmin
During the installation it will ask you to enter 2 passwords, the first is the one you gave while install MySql and the second one is to access the front end of phpmysql. Once the installation is complete, point your browser to

  •  http://localhost/phpmyadmin OR http://127.0.0.1/phpmyadmin
 Enter the password you gave while installing phpmyadmin and you should now have access to phpmyadmin to manage all your databases. 

No comments:

Post a Comment