Apache not configured right
Hi,
I've recently installed Debian but my Apache web server doesn't seem to be configured right. When I type Quote:
Quote:
Also I've tried the same with a php file and this fails to load from sub-dirs. When I try Quote:
Quote:
Thanks for any help to resolve this :) Chris |
1. Is php installed?
2. Have you edited httpd.conf to allow for php to be parsed BEFORE .html? This will be # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.php index.html index.htm index.shtml index.cgi </IfModule> WHERE you stick index.php before index.html 3. What happens if you place a test.txt file in one of the /var/www/subdirs (or whatever your DocumentRoot is) and you explicitly call it? |
Hi Thanks for the reply. :)
Php is installed and 'index.php' appears first in the DirectoryIndex list as you've shown. Quote:
Thanks Chris |
Have you restarted apache after you edited DirectoryIndex?
apachectl configtest apachectl restart HTH |
Yes I did all that :)
PHP & htmlpages work if you explicitly call them, for an example of whats wrong go to; 81.174.166.225/stats It comes bak saying The page can't be displayed, Then go to http://81.174.166.225/stats/index.html And the page displays ok! :( Thanks Chris |
[edit]
Sorry double post :( |
All times are GMT -5. The time now is 09:36 PM. |