Install Apache MySQL PHP phpmyadmin (LAMP) on Linux Mint 11 Katya

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Installing Apache MySQL, PHP and phpmyadmin on Linux Mint Katya 11 is quite easy.

You start by installing a small utility called tasksel

sudo apt-get install tasksel

Now you caninstall Apache2, php, MySQL all in one shot using the following command:

sudo tasksel install lamp-server

After this you would just need to install some additional php libraries and phpmyadmin

During the install you would be prompted for for the MySQl “root” password. Repeat it for a second time and you would have MySQL server and client installed.

After tasksel finishes you can point your browser to http://localhost, and you should see the Apache2 placeholder page like this.

To verify that everything installed correctly and php support is enabled, you need to restart apache by doing this

sudo /etc/init.d/apache2 restart

Create a test php file called info.php, using a text editor of your choice (say gedit)

gksudo gedit /var/www/info.php

and paste the following content and save the file

<?php
phpinfo();
?>

Now open the following page http://localhost/info.php and you should see something like this

To make MySQL, php and apache talk among themselves, you would have to install php5-mysql, below I am listing some more useful packages that you might want to install

sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-common

Now refresh the info.php page that you have open in your browser and you should be able to see the support for mysql if you search for it by doing Ctrl+f, but before that don’t forget to restart apache again (sudo /etc/init.d/apache2 restart)

Finally we’ll install phpmyadmin

sudo apt-get install phpmyadmin

It would ask if you want to configure it automatically for apache or lightppd choose apache (make sure that the * shows in front of it, you have to press spacebar) and press Ok. It would be automatically configured, it would also ask for configuring database, choose yes and on next screen you would be asked to enter the MySQL root password (which you set in first step), next it would ask you to enter a password to be used by phpmyadmin to register with the database (basically it would create a user called “phpmyadmin” the password is for that. You can even choose to assign a random password for it. Once you have made your choice the installation would finish

and you should be able to access phpmyadmin by pointing your web browser to http://localhost/phpmyadmin/

You might need to restart apache again for the above link to start working ( I didn’t need to)!

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

You might also like

Install Apache MySQL PHP phpmyadmin (LAMP) on Linux Mint 13 Maya Installing...
Install Apache MySQL PHP phpmyadmin (LAMP) on Ubuntu 10.04 or Mint Linux 9 Installing...
Install Apache MySQL PHP phpmyadmin (LAMP) on Ubuntu 11.04 Installing...
Install Apache php phpmyadmin MySql If you want...

About the Author

has written 1285 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

3 Comments on “Install Apache MySQL PHP phpmyadmin (LAMP) on Linux Mint 11 Katya”

  • Kars wrote on 15 September, 2011, 7:47

    Thanks for sharing m8! Helped me get it up and running.

    Like or Dislike: Thumb up 1 Thumb down 0

    [Reply]

  • Barry wrote on 3 November, 2011, 18:18

    Excellent – worked first time! Many thanks

    Like or Dislike: Thumb up 2 Thumb down 0

    [Reply]

  • Phil wrote on 11 November, 2011, 3:45

    Thanks for this, just starting off learning PHP as my 1st scripting language and it’s also my 1st attempt at using linux (hence taking the easy option and going with Mint 11.) Would never have gotten it up and running without it! ;)

    Like or Dislike: Thumb up 0 Thumb down 0

    [Reply]

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*

Copyright © 2014 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes