PDA

View Full Version : [ubuntu] phpmyadmin problem



raunhar
January 19th, 2009, 09:25 AM
I installed phpmyadmin, but when I try to open http://localhost/phpmyadmin/

A pop up opens which has the following instaructions:
You have chosed to open .. which is a :PHTML file from http://localhost

What should Firefox do with this file?
Open/Save


What should be done, so that the page opens up properly.

Pl. suggest.

mcduck
January 19th, 2009, 09:29 AM
First, try clearing your browser's cache.

If that doesn't do the trick run these commands to make sure PHP is enabled in Apache:

sudo a2enmod php5
sudo /etc/init.d/apache2 restart

raunhar
January 19th, 2009, 09:40 AM
sudo a2enmod php5 says php5 module not installed. I checked through Synaptic Manager. PHP5 was installed.
apache2 is the server.
Is there any other thing to be installed.

mcduck
January 19th, 2009, 10:31 AM
You'll need at least "libapache2-mod-php5".

The best way to install the whole LAMP stack is to run "sudo tasksel install lamp-server". That will make sure you get everything required.

It's amazing why so many guides choose the more complicated way of apt-getting every required package separately (probably simply because the authors don't know about tasksel)..