Showing posts with label phpMyAdmin. Show all posts
Showing posts with label phpMyAdmin. Show all posts

Tuesday, 13 January 2015

Setup LAMP easily on Ubuntu

In previous tutorials, we installed php, MySQL, phpmyadmin, php-modules to setup server on Ubuntu PC. All these installation was a little tricky and all was lot of commands.
Lets make our work easy with a few commands and all is done.....

LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.

About tasksel
It is a software installation application that is an integral part of the Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers the user an easy way to install the packages for that task. It provides the same functionality as using conventional meta-packages. in Maverick this command dosn`t come by default, so we need to install it first before to perform the LAMP installation.

Open terminal and Type the command :
sudo apt-get install tasksel
 Now to install LAMP, type the taskel command in terminal :
sudo  tasksel
 And select LAMP Server:

During the installation you will be asked to insert the mysql root password



Now check if php is working :
sudo gedit /var/www/info.php
 and add
<?php
phpinfo();
?>
 save and exit

Restart apache2
sudo /etc/init.d/apache2 restart
OR
sudo service apache2 restart 
 Now open browser and type :
http://localhost/info.php

To full manage your lamp Server database, install phpmyadmin

Install phpMyAdmin

To Install phpMyAdmin on server, follow this tutorial...

Install phpMyAdmin on Ubuntu

In Previous Tutorial, you learned how to Setup LAMP Server on Ubuntu. Now, You have a working server on your Ubuntu PC. Lets do some work around phpMyAdmin.

If you have missed previous tutorial on How to Setup LAMP Server on Ubuntu. Follow This Link:
LAMP Server on Ubuntu : http://www.netpuppet.tk/2015/01/lamp-server-on-ubuntu.html
About phpMyAdmin
phpMyAdmin is an free web software to work with MySQL on the web—it provides a convenient visual front end to the MySQL capabilities.

Setup
Before working with phpMyAdmin you need to have LAMP installed on your server. If you don't have the Linux, Apache, MySQL, PHP stack on your server, you can find the tutorial for setting it up here.

Install phpMyAdmin
The easiest way to install phpmyadmin is through apt-get:
Open Terminal and Type :
sudo apt-get install phpmyadmin apache2-utils
 During the installation, phpMyAdmin will walk you through a basic configuration. Once the process starts up, follow these steps:

  • Select Apache2 for the server
  • Choose YES when asked about whether to Configure the database for phpmyadmin with dbconfig-common
  • Enter your MySQL password when prompted
  • Enter the password that you want to use to log into phpmyadmin
After the installation has completed, add phpmyadmin to the apache configuration.
sudo nano /etc/apache2/apache2.conf
 Add the phpmyadmin config to the file.
Include /etc/phpmyadmin/apache.conf

 Restart apache:
sudo service apache2 restart

 You can then access phpmyadmin by going to:
http://localhost/phpmyadmin
 The screen should look like this


Powered by Blogger.