PDA

View Full Version : [ubuntu] phpmyadmin cannot be accessed



RCholic
February 28th, 2009, 03:25 AM
I have phpmyadmin installed in /var/www/phpmyadmin on my Ubuntu server, however, when I try to access it by http://localhost/phpmyadmin, it shows '404 NOT FOUND'. Same error for http://localhost/phpinfo.php (the phpinfo.php file is located in /var/www/).

I then try http://localhost and it shows "it works".

I wonder what might be causing this weird problem? I have added a virtual host to apache2 though and it works by domain.

can someone help me out? thanks

Hobgoblin
February 28th, 2009, 03:38 AM
Access rights immediately spring to mind.

RCholic
February 28th, 2009, 06:23 AM
What ownership/group would be appropriate? 'nobody' is OK? thanks :popcorn:

Hobgoblin
February 28th, 2009, 07:32 AM
IIRC Apache runs under user www-data

RCholic
February 28th, 2009, 08:25 AM
goblin: do you mean I should chmod these files/directory to 'www-data'?

Hobgoblin
March 1st, 2009, 09:00 PM
goblin: do you mean I should chmod these files/directory to 'www-data'?

As long as www-data has read and execute then I think it will be OK, but giving www-data ownership should be fine.

Out of interest, how did you install phpmyadmin? It's available through teh repositories and if you've installed it that way the permissions should be set up already.

RCholic
March 1st, 2009, 09:19 PM
I installed phpmyadmin by running 'apt-get install phpmyadmin' and I have this problem mentioned in the first post.

RCholic
March 1st, 2009, 09:21 PM
After I change the ownership to www-data, phpmyadmin is still not accessible.