Howto: Install Lamp and phpmyadmin on Ubuntu
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.
In this Simple tutorial we will explain you how to install LAMP server on your Ubuntu Desktop work also for the new Ubuntu9.04 (Jaunty Jackalope).
The installation will be done in 3 steps:
Apache, PHP and MySQL, after that we will install phpmyadmin the administration software tool for MySql.
1- Apache2 installation
sudo apt-get install apache2
to check that Apache has been installed without problems, go to your browser and type
if everything is correct you will see the message :
Now we will go and try to install PHP5
2- PHP5 and dependencies installation:
sudo apt-get install php5 libapache2-mod-php5
A restart of apache2 is needed to make this one see PHP5, to restart apache2 use the command:
sudo etc/init.d/apache2 restart
3- MySql Installation :
To install MySql type the command
sudo apt-get install mysql-server
During the installation you will got this screen (package configuration) to set root password for MySql, enter your password and retype it
if you diden`t got the screen to setup root password for mysql then you have to do it manually, to setup root password for mysql :
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');
Don`t forget to change YOURPASSWORD with the password you want to use The basic installation of LAMP is ready. Now we will install phpmyadmin,
phpMyAdmin is a free graphical software tool to handle the administration of MySQL, this will make it easy for you to create, import/export and delete
databases. Install phpmyadmin using the command:
sudo apt-get install phpmyadmin
During the installation a blue screen will appear asking you which server you want to use apache, apache2 …. choose then apache2 and click ok
and is done, now Point your browser to: http://domain/phpmyadmin you will got this screen
if you diden`t receive any screen of psckage configuration during the installation of phpmyadmin then you will have
To set up phpmyadmin under Apache manually, all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:
sudo gedit /etc/apache2/apache2.conf
Add the following line of code inside apache2.conf:
Now restart Apache:
sudo /etc/init.d/apache2 restart
and is done, now Point your browser to: http://domain/phpmyadmin (see pic above)
If you have any problem please report it .Thanks.
Like us on Facebook
This week Top Posts
- How To Install Netflix In Ubuntu : Hi unixmen readers! How are you? In this article we will teach you how to install the desktop vers...3 comments |
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- How To Configure Linux Clients To Authenticate Using OpenLDAP : This is the continuation of our previous tutorial. In our previous tutorial we learned how to instal...2 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- Install and Configure Samba share in Ubuntu 13.10 'Saucy Salamander' , 13.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comments |
- How To Configure Linux Clients To Authenticate Using OpenLDAP
- How To Install Netflix In Ubuntu
- cowsay And fortune Combined Together
- How To Show Username On Panel In Ubuntu 13.04/13.10
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .