Install LAMP of Ubuntu

This will install Apache2, PHP5, MySql5, and PHPMyAdmin.

Firstly, type the following command at the console:

  apt-get update

This will retrieve new lists of packages.

Next type:

  sudo apt-get install apache2 php5 mysql-server-5.0 phpmyadmin

This will install all the necessary applications. You may be prompted to decide on a MySQL root password (set one if you want), and to configure PHPMyAdmin (select apache2 as the server type). After this is complete, we need to perform some minor configuration to get PHPMyAdmin working. Type:

  sudo gedit /etc/apache2/apache2.conf

Scroll right to the bottom of the file that opens, and add:

  # Enable PHPMyAdmin
Include /etc/phpmyadmin/apache.conf

Now save, exit, and type:

  sudo /etc/init.d/apache2 restart

Everything should now be configured - go to http://127.0.0.1 for webpages, and http://127.0.0.1/phpmyadmin for database administration. The webroot is located in /var/www/ by default. This is not particularly useful, as we do not have write access to this directory. Fortunately, this is easy to solve, by...


reference: http://ubuntuguide.org/wiki/Ubuntu:Hardy

Comments

Popular posts from this blog

Linking verb - seem, sound, smell, appear, become, get, feel (Verb of Senses)

Phrasal Verb (กิริยาวลี) ที่ใช้บ่อย

If Clause 3 แบบ (Conditional Statement)