You are not logged in.
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
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
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
EDIT: Stupid question deleted.
Last edited by ACodispo (2009-01-24 19:56:04)
Offline
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
Thanks for your help, finferflu! Solved my problem at least temporarily.
Offline