Re: Can't open phpMyAdmin
Have you also installed the PHP support?
Code:
sudo apt-get install libapache2-mod-php php5-mysql
Also, by default the phpmyadmin script is installed in /usr/share/phpmyadmin, a directory that isn't access from Apache.
You'll want to do the following to get http://localhost/phpmyadmin to work
Code:
cd /var/www
sudo ln -s /usr/share/phpmyadmin phpmyadmin
Re: Can't open phpMyAdmin
phpmyadmin should all be lowercase (don't know if that's an issue on your server setup)
http://localhost/phpmyadmin
phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)
so you may need to go to your web folder root
and put one there yourself.
Code:
sudo ln -s /usr/share/phpmyadmin/ phpmyadmin
Re: Can't open phpMyAdmin
Code:
cd /var/www
sudo ln -s /usr/share/phpmyadmin phpmyadmin
Thanks that worked for me.
Re: Can't open phpMyAdmin
thank you guyz:p it work....
That annoying habit is still there...
...and this solution still works :D
Quote:
phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)
so you may need to go to your web folder root
and put one there yourself.
Code:
sudo ln -s /usr/share/phpmyadmin/ phpmyadmin
Re: Can't open phpMyAdmin
Worked a treat, thanks!!
I had to create the link by hand due to some weird permissions....but still worked!!
:D
Re: Can't open phpMyAdmin
Quote:
Originally Posted by
OffAxis
phpmyadmin should all be lowercase (don't know if that's an issue on your server setup)
http://localhost/phpmyadmin
phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)
so you may need to go to your web folder root
and put one there yourself.
Code:
sudo ln -s /usr/share/phpmyadmin/ phpmyadmin
Thanks for this fix. Amazingly, as of todays date (9 September 2010) the problem is still there to trip up a Ubuntu newbie such as myself. Surely if all users are serving localhost out of /var/www/, why doesn't the phpmyadmin install script put the necessary files into /var/www/phpmyadmin automatically, or at the very least, flag up the issue as a comment in the terminal window during installation?
Re: Can't open phpMyAdmin
i also had the problem of not being able to access phpmyadmin after i had installed it with
Code:
apt-get install phpmyadmin
(im using ubuntu 10.04.1 lts)
i found that the problem for me was that phpmyadmin had not created the necessary file 'phpmyadmin.conf' under /etc/apache2/conf.d. for me i had the advantage of being able to copy the file accross from another ubuntu system, however if you do not have this as an option the contents of this file are:
Code:
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
i actually did
Code:
locate phpmyadmin | grep conf
just incase the file did infact exist with a different name - but no such luck.
Re: Can't open phpMyAdmin
Right, if you're having a trouble accessing after checking the paths are right in the Apache config, it's probably permission-related.
Code:
sudo chmod 777 directoryname
and work your way up from there. When you're diagnosing an issue like this, security (permissions) should never be tight unless your server is live and you want to add a few hours to the project, haha. I get trouble like that all the time with my Apache setup but the power of chmod cleans that right up!!