Ubuntu 8.04 LTS (Hardy Heron) Apache-PHP-MySQL Server

Submitted by str on Tue, 05/06/2008 - 17:52

Once again, here's my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.

Install SSH Client and Server (for my remote access)
sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server-5.0

Install Apache HTTP Server
sudo apt-get install apache2

Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5

Restart Apache
sudo /etc/init.d/apache2 restart

Optionally, install phpMyAdmin
sudo apt-get install phpmyadmin

Note: Updated version here.

Comments

your help please
i have installed LAMP as instructed above but i cant go into phpmyadmin interface so i can start creating database,
i have tested apache is running when i type http://127.0.0.1 it report that It works!
through terminal i have tested mysql i found it is working but i don't find where i can start phpmyadmin

help me please.

Alex.css (not verified)

Sat, 05/24/2008 - 06:14

By reading your article I just found what I did wrong with my Apache - PHP - MySQL installation =D
I didn't restarted Apache, so PHP wasn't active xD

Thanks again ;)

Anonymous (not verified)

Mon, 05/26/2008 - 17:55

Installation of phpmyadmin not working :(... Ubuntu says E: Operacion invalida: phpmyadmin... Tried also with phpMyAdmin but same error...

Someone could helpme in an easy way of installing phpmyadmin?

Anonymous (not verified)

Thu, 06/12/2008 - 12:32

I can't create a new data base width phpMyadmin. The link on the page http://127.0.0.1/phpmyadmin/index.php is inactive. this is the
"Create new database: No Privileges"
what can i do?
thanks

cep (not verified)

Sun, 09/14/2008 - 19:41

After following the install instructions I finally got my LAMP up and running on Hardy.
( Great tutorial, Thanks !!! )
My problem now is that after installing phpmyadmin I try to run it (using Firefox) and get the message phpmyadmin cannot be found on the server. Does a phpmyadmin.php file need to be moved to the /usr/www directory?
Thanks for any help.

Anonymous (not verified)

Sat, 12/06/2008 - 16:02

-->connect:
Fatal error: Call to undefined function mysql_connect() in /var/www/mysqltest1.php on line 5

wtf ? mysql server is fine (I can anything from the command line) the phpinfo() function works fine. Apache looks fine. Can anyone PLEASE help. Pounding my brain for way to long on this one. Followed many many links and still get this. Honestly how can an install be this wacked ? gfdi HELP !!
Thanks and sorry for my frustration.

Is this a fresh install?

Please contact me (http://www.strdoc.net/contact) if the problem still persist.

I'm sure I can help you.

ben11 (not verified)

Thu, 12/18/2008 - 10:08

In reply to by Anonymous (not verified)

Try to follow the new guide: http://www.strdoc.net/ubuntu-apache-php-mysql-server-810-intrepid if you are using Intrepid (8.10).

I just installed a fresh home desktop server and follow that guide and it works like charm.

Very good and simple guide.

Thanks to this site.

how to uninstall this?
its not working for me and i want to uninstall and try some other way to install apache php and mysql..

thank you

hi,

just execute the following commands to uninstall this:

sudo apt-get remove mysql-server-5.0 mysql-commons apache2 php5 libapache2-mod-php5

sudo apt-get autoremove

please note, that the files of the applications won`t get completely removed, so please find (find . | grep ) & delete them...