Installation PHP Apache MySQL phpmyadmin in Ubuntu 9.04

June 2, 2009 at 1:09 pm 23 comments

1. Open terminal and execute following command.

sudo apt-get install apache2 php5 php5-mysql mysql-server

2. Test the apache2 server. http://localhost/

when you want to restart apache execute following command.

sudo etc/init.d/apache2 restart

3. Test PHP. You need to go to folder localhost and then create file .php for example using test.php

cd var/www/

sudo gedit test.php &

Then typing php to test file test.php. we use command echo to print hello .

<?

echo “hello”;

?>

testing file test.php http://localhost/test.php

4. Install phpMyadmin, execute folling commands

sudo apt-get install phpmyadmin

After finishing, you need to execute this command below for changing phpMyadmin folder  to var/www

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

Testing phpMyadmin http://localhost/phpmyadmin/index.php

Username for phpMyAdmin is “root”.

Advertisements

Entry filed under: Uncategorized.

Making Your Internet is safer, faster, and smarter because you’re using OpenDNS. Installation Wekaclassalgos1.7 in Ubuntu

23 Comments Add your own

  • 1. David  |  June 11, 2009 at 4:06 pm

    Perfecto! Thanks so much. I was searching in vain for phpmyadmin. That last command completes my web installation. Now to the ftp server.

    Reply
  • 2. Will  |  June 13, 2009 at 6:10 am

    Thanks for this info 🙂 I only used step 4 for phpmyadmin and it worked perfectly.

    Reply
  • 3. Neto  |  June 16, 2009 at 12:59 am

    Tanks, very good!!! Perfect instalation…

    Reply
  • 4. Steve  |  June 28, 2009 at 10:41 pm

    Thank you, this made installing and using phpmyadmin with jaunty easy! Thanks again!

    Reply
  • 5. sotiris  |  July 17, 2009 at 1:03 am

    perfect!!! It works fine for me!!! Thank you!

    Reply
  • 6. Pradeep  |  July 17, 2009 at 12:56 pm

    Thanks for your tutorial which were most valuable for me.

    Reply
  • 7. Bob  |  July 20, 2009 at 5:22 pm

    when I click on http://localhost/phpmyadmin/index.php I get a dialog box asking me what to do. Is this normal?

    Reply
    • 8. chadaphone  |  July 21, 2009 at 1:55 am

      yes, it’s normal so you need to type your username and password which same with your MySQI.

      Reply
  • 9. Maxmah  |  August 21, 2009 at 9:41 am

    The best tutorial for installing phpmyadmin in ubuntu.

    Reply
  • 10. ridwan arifin  |  August 28, 2009 at 1:09 pm

    thnx for your tutor….
    its works…!!

    Reply
  • 11. jagadeesh  |  October 12, 2009 at 8:58 am

    Thank you.Perfect Work

    Reply
  • 12. guillermo  |  October 25, 2009 at 10:51 pm

    excelente, justo lo que buscaba grasias

    Reply
  • 13. secure  |  October 27, 2009 at 3:46 am

    this line help me thank you
    sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

    Reply
  • 14. David Cook  |  October 27, 2009 at 7:40 pm

    I get the following error when I try to do step 4 (everything works perfectly up till that step): Really appreciate any help!

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run `apt-get -f install’ to correct these:
    The following packages have unmet dependencies:
    phpmyadmin: Depends: php5-mcrypt but it is not going to be installed
    Depends: dbconfig-common but it is not going to be installed
    Recommends: php5-gd but it is not going to be installed
    sun-java6-jre: Depends: sun-java6-bin (= 6-16-0ubuntu1.9.04) but it is not going to be installed or
    ia32-sun-java6-bin (= 6-16-0ubuntu1.9.04) but it is not installable
    Recommends: gsfonts-x11 but it is not going to be installed
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

    Reply
  • 15. Rafaduka  |  October 28, 2009 at 11:36 pm

    Ty guy..
    I do not knowing how to configure phpmyadmin on system..
    This tuto, help-me

    great

    Reply
    • 16. Girish KG  |  October 31, 2009 at 12:08 pm

      1) Download required phpmyadmin taking care of installed PHP version and MySQL version.

      2) untar it. i.e. # tar -xzvf phpmyadmin-xxxxx.tar.gz (please use “TAB” or type it manually)

      3) rename the resultant folder for your choice.i.e.’pma” in my case

      4) copy the folder into “/var/www/html/” so that you should have folder “pma” or “your_choice_of_phpmyadmin_folder” in “html” folder.

      5) cd to folder pma. i.e. #cd /var/www/html/pma/

      6) Create one folder in pma. i.e. use #mkdir config

      7) Copy “config.sample.inc.php” to “Config” folder. i.e. you could do it manually.

      8) Rename “config.sample.inc.php” to “config.inc.php”

      9) chmod it. i.e. #chmod o+rw /config

      10) #chmod o+rw /config/config.inc.php

      11) Now open web browser and call the link “https://your_Local_server_IP/pma/scripts/setup.php (note: pma & Server address should be changed according to your spec)

      12) Supply the info according to your spec

      13) Must and Should Use save button at the end

      14) Go to pma folder and rename confg to old_config and copy the config.inc.php to “pma” folder from “old_config” folder.

      15) Now “config.inc.php” file is in “pma” folder.

      16) Chmod it. i.e. #chmod 775 config.inc.php (make sure that you are in pma folder, else cd to pma folder before doing it)

      17) Well Done….!!! call your friend pma. i.e. “http://your_server/pma” and enjoy it.

      Let me know if you need further help. Thanks.

      Girish KG
      NOC Engineer
      Bangalore, India

      Reply
      • 17. Shridhar  |  January 20, 2010 at 1:49 pm

        I want to install all mysql, php and phpmyadmin, apache2 on ubuntu linux. As i m very new to ubuntu linux.. and I dont have internet connection on my pc
        I download xampp-linux-1.7.2.tar.gz from internet cafe. but I dnt knw how to install packagesin that .tar file. please help.
        Shridhar Kulkarni

      • 18. sham  |  January 20, 2010 at 1:52 pm

        hello girish,
        i m having problem in 11th step.
        i m confused with what to supply as your_local_server_ip.
        n also i didn’t found setup.php file in scripts folder, i found setup.php file in libraries/dbg folder.
        can plz help me to solve dis problem as early as possible.

  • 19. David  |  November 9, 2009 at 7:53 pm

    Searching for hours and that all i needed to know!!

    Thanks!!!

    Reply
  • 20. pathu madhuranga  |  November 30, 2009 at 2:52 am

    Thanx a lot…its great…..

    Reply
  • 21. Jason  |  December 23, 2009 at 11:48 pm

    Perfect. Works perfectly.

    Reply
  • 22. Wesley  |  April 27, 2010 at 12:07 pm

    hi, thanks for the post. it is a bit old now but still works a charm. I have installed everything without a hitch and now want to develop my PHP, MySQL, Apache skills. Can you recommend any tutorials?

    Reply
  • 23. Marco  |  June 19, 2012 at 7:01 am

    Hello, i wish to rename the folder phpmyadmin in something like xzczxchdasd , how could i change it ?
    I am using Ubuntu
    thanxk

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

June 2009
M T W T F S S
« Apr   Nov »
1234567
891011121314
15161718192021
22232425262728
2930  

Most Recent Posts


%d bloggers like this: