How to install Apache, PHP, MySQL, and PHPMyAdmin on Ubuntu

How to install Ubuntu Karmic Koala 9.10 as a perfect server with Apache, PHP, MySql and Phpmyadmin. Since Ubuntu have a great repositories and the magic application called apt-get then it shouldn’t be hard to make Ubuntu as a perfect server.

Okay let’s begin, please make sure your Ubuntu conneted to the internet:
1. Open your terminal and login as root with this command



su



2. Update your repositories list:


apt-get update



3. Install Apache:


apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils



4. Install PHP:


apt-get install php5 libapache2-mod-php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi php-pear php-auth



5. Install MySQL:


apt-get install mysql-server mysql-client



here you will be ask to input root password for the mysql
6. Install PhpMyAdmin:


apt-get install phpmyadmin



here you will be asked some question to configure the phpmyadmin, just go through the wizard after it finish installed.

7. Now your server is ready. Before you test please make sure to restart the server:


/etc/init.d/mysql restart
/etc/init.d/apache2 restart



8. Open document root in /var/www , make a file called it with info.php
and fill this:


<?php phpinfo(); ?>



then save the file.

9. Test the server with the browser and type address http://[server-ip]/info.php

If you have the same screenshot as follow than you have the web server on your machine:



0 comments:

About Me

Your information resource for Virtual Private Networks | Vpn Setup | Cisco Vpn Client | Tunneling | Tunnel | Computer Networking | Secure | Mpls Network | Cisco Vpn | Vpn Network | Wireless Router | Routers | Sonicwall | Remote Access Vpn | Cisco | Router | Firewall | Remote Access | Checkpoint | Safenet at Vpn.co.in

Followers

Powered by Blogger.