Archives For November 30, 1999

LAMP ubuntu 13.10This tutorial show you how to install LAMP in Ubuntu 13.10 Server. LAMP stands for Linux, Apache, MySQL, and PHP. It is a combination of these 4 that suitable for building high-availability heavy-duty dynamic web sites.

Linux is a Unix-like and POSIX-compliant operating system. Ubuntu is one of popular Linux distributions.

Apache is a HTTP web server, the most popular in use. It serves webpages when they’re requested by the web browsers. When you type an URL on your web server and press Enter, the pages you see on screen is most likely served by Apache webserver.

MySQL is a database management system now owned by Oracle Corporation. It stores and organizes references to the information the webserver needs.

PHP is a reflective programming language, which makes it possible for all these different parts to work together.

Tutorial Objectives:

  • Install LAMP Stack in Ubuntu 13.10 Server
  • Enjoy!

To get started, run single command below to install them:

sudo apt-get install lamp-server^

While the installing process, you’ll be prompt to set a password for MySQL root user.

To check out if Apache is working, type http://ubuntuserverip in client web browser or localhost in the local browser:

apache is working

apache is working

To check out if PHP is working, run command below to create a test php file in root of Apache webserver directory:

sudo vi /var/www/info.php

Press i to start editing, and type in following lines:

<?php
phpinfo();
?>

After that, press Esc to exit editing. Press Shift + : and followed by wq and Enter to save the changes.

Now, type http://ubuntuserverip/info.php in client’s browser or localhost/info.php in local browser, you’ll see:

php & mysql is working

php & mysql is working

Scroll down to find out if there’s a section about Mysql, it means that Mysql is working too!

Now your LAMP server is up and working, see how to install wordpress in Ubuntu 13.10.

phpMyAdmin is an open-source tool written in PHP intended to handle the administration of MySQL over the Web. The latest phpMyAdmin 4.0.6 has fixed a lot of security problems and bugs since version 3.x.x is the default in Ubuntu repository.

latest phpmyadmin ubuntu

Here’s how to install or upgrade to the latest version of phpMyAdmin (4.0.6) in Ubuntu 12.04 LTS Server, Ubuntu 10.04 Server, Ubuntu 13.04 and Ubuntu 12.10 via PPA.

To get started, connect to your Ubuntu server. When you’re log in, run below command to add the PPA:

sudo add-apt-repository ppa:tuxpoldo/phpmyadmin

Update package lists on your system:

sudo apt-get update

Install or upgrade phpMyAdmin to the latest:

sudo apt-get install phpmyadmin

That’s it. If you want to remove this PPA after installation (without removing any packages you may have installed / upgraded from the PPA), run:

sudo add-apt-repository --remove ppa:tuxpoldo/phpmyadmin

If you want to remove the PPA as well as downgrade phpMyAdmin to the version available in the official Ubuntu repositories, run:

sudo apt-get install ppa-purge; sudo ppa-purge ppa:tuxpoldo/phpmyadmin

Enjoy!