Wednesday, April 27, 2011

Installing a LAMP Server on Ubuntu 10.10 - Maverick Meerkat

A LAMP (Linux, Apache, MySQL and PHP) Server, is an open source web application development platform that utilizes Linux as its base operating system (OS), Apache as its Web Application Server, MySQL as the relational database server and management system; and PHP as the object-oriented scripting language to write the application code and display HTML.

Apache2 Installation
  • Install apache2 using the following command sudo apt-get install apache2 
  • To check that Apache has been installed without problems, go to your browser and type http://localhost or from a remote machine use http://serveripaddress 
You can find your server ip address using ifconfig command and if everything is correct you will see this message in your browser: It works!

PHP5 Installation
  • Install php5 using the following command sudo apt-get install php5 libapache2-mod-php5 
  • restart apache2 using the following command sudo /etc/init.d/apache2 restart

MySql Installation

  • To install MySql type the command sudo apt-get install mysql-server 
  • During the installation you will get the screen to set root password for MySql, enter your password and retype it.

phpMyAdmin Installation

phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface (managing databases, tables, fields, relations, indexes, users, permissions, etc), while you still have the ability to directly execute any SQL statement.

  • Install phpmyadmin in Ubuntu sudo apt-get install phpmyadmin 
  • During the installation a blue screen will appear asking you which server you want to use apache, apache2 …. choose apache2 and click ok 
  • Now Point your web browser to: http://serverip/phpmyadmin

No comments: