You are not logged in.

#1 2009-01-24 19:25:26

ACodispo
Member
Registered: 2007-08-24
Posts: 8

PhpMyAdmin not appearing on localhost...

Weird behaviour, and I don't know much about this stuff.

I have installed LAMP according to these directions:

http://wiki.archlinux.org/index.php/LAMP

When I am at:

http://localhost/

I can see the directories I have put in /srv/http, all except for phpMyAdmin, which I installed via pacman.

Here's output of ls -l on /srv/http:

total 12
drwxr-xr-x  2 root root 4096 2009-01-24 14:03 cheese
-rw-r--r--  1 root root   98 2009-01-24 14:02 index.htm
drwxr-xr-x 10 root root 4096 2009-01-24 14:04 phpMyAdmin

Permissions are the same...but all I see in the index page at localhost is index.htm and cheese.

I feel it might be weird that I'm even getting the server generated index, rather than viewing the index.htm .

There's a chance I messed with the /etc/httpd/conf/httpd.conf file at an earlier time and forgot. Would something in there be causing this? Is there an Arch "vanilla" httpd.conf that I could put in there?

Thanks for your help.

--
Andrew

Offline

#2 2009-01-24 19:34:39

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: PhpMyAdmin not appearing on localhost...

As for the .htm file not being displayed as the main page, you need to set it up in httpd.conf, like this (there should be already an entry like the following, just add "index.htm" to the list):

 <IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>

Did you also try to go to http://localhost/phpMyAdmin? What errors does it bring up? Check your error log (should be in /etc/httpd/logs/error_log).


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#3 2009-01-24 19:45:25

ACodispo
Member
Registered: 2007-08-24
Posts: 8

Re: PhpMyAdmin not appearing on localhost...

I feel silly now!

So there was a .htaccess file in the phpMyAdmin directory, with:

deny from all

in it.

Removing this file lets me access the directory. If it isn't too much trouble: what should properly go in that .htacces file? deny from all being too restrictive, but perhaps nothing in the file is too permissive? Thank you again for your help.

Offline

#4 2009-01-24 19:50:41

ACodispo
Member
Registered: 2007-08-24
Posts: 8

Re: PhpMyAdmin not appearing on localhost...

EDIT: Stupid question deleted. big_smile

Last edited by ACodispo (2009-01-24 19:56:04)

Offline

#5 2009-01-24 19:53:27

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: PhpMyAdmin not appearing on localhost...

I'm not very good at .htaccess files, but for the other problem you are getting, I would suggest you to check your permissions. Also check your error log.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#6 2009-01-24 19:57:02

ACodispo
Member
Registered: 2007-08-24
Posts: 8

Re: PhpMyAdmin not appearing on localhost...

Thanks for your help, finferflu! Solved my problem at least temporarily.

Offline

Board footer

Powered by FluxBB