Tuesday, 29 December 2015

how to easily install Apache PHP MySQL in Ubuntu


PHP as the programming language can not stand alone, generally require Apache as PHP and MySQL as a database server backendnya, because of this, then this package is often referred to as AMP (Apache, MySQL, PHP). Unfortunately, the installation of PHP and Apache and MySQL on Linux is not as easy as in Windows. In OS made by Microsoft, many bundle that offers ease of installation as Wamp or XAMPP. When you install the software, it otomotasi PHP, Apache, mySQL and PHPmyAdmin already installed.


on this occasion try to explain how meninstall PHP, Apache and MySQL with steps fairly easily in Ubuntu. For the installation we need an Internet connection and at the start of Apache, PHP, MySQL and the last one is PHPMyAdmin.
APACHE first thing that must be installed as a web server. Typing the following command in the terminal to download APACHE.
sudo apt-get install apache2
Wait for the process that is underway, and when prompted to continue, then typing "Y"
after installation, Apache2 directly run by default by ubuntu. To see if apache has been running well, we can open it to http: // localhost
If the display that appears is the inscription "It's Work", the installation is successful.
The next step is the installation of PHP. with the command

    
sudo apt-get install php5 libapache2-mod-php5
    
sudo apt-get install php5-cli
    
sudo apt-get install php5-cgi
    
sudo apt-get install php5-mysql
    
Wait for the process that is underway, and when prompted to continue, then typing "Y"
The next restart apache with the command

    
sudo /etc/init.d/apache2 restart
To see the results of the installation of PHP,Make a simple php script like this, save with the name info.php save it in a folder /var/www/info.php
<? php
phpinfo ();
?>
Open the page http: //localhost/info.php If it appears from the information PHP PHP installation was successful and ready digunkan.
Still in terminal, type the following command to install mySQL.

    
sudo apt-get install mysql-serverwhen prompted to continue, then typing "Y"
and type the following command to install phpmyadmin

    
sudo apt-get install phpmyadmin
When implementing the installation may appear question.when prompted to continue, then typing "Y"
after completion of open page http: // localhost / phpmyadmin,
Thus an easy way Install Apache PHP MySQL in Ubuntu can I tilis on this occasion.

No comments:

Post a Comment