This tutorial I will show you how to install LAMP in Ubuntu 14.04LTS 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.
To get started, go to console and run single command below to install them:
sudo apt-get install lamp-server^
Note:
Make sure you are connected to the internet in order to download the LAMP ubuntu package
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://localhost in your web browser or IP Address.
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, open your web browser the type the following http://localhost/info.php or http://youripaddress/info.php
You should see like photo below
Scroll down to find out if there’s a section about Mysql, it means that Mysql is working too!


No comments:
Post a Comment