Apache20

I am installing atmail webmail client. I extract the directory to my /usr/local give correct ownership and permission and I type in the url to see if the php script will start the installation but It only shows the directory. I have done before and it worked and now it isn't working. I check my php.ini and that is correct.
 
Can you explain a little more I thought If I set document root in httpd.conf it will work and I point it to that directory. /usr/local/atmail/webmail and that is what my document root is set to
 
Add index.php to the DirectoryIndex directive in httpd.conf. Pretty sure it's in every PHP faq/tutorial out there.
 
This is what I entered in httpd.conf

Code:
<IfModule mod_dir.c>
      IfModule mod_php5.c>
          DirectoryIndex index.php index.php5 index.html
         </IfModule>

Restarted apache20 and this time this shows up

Code:
<?php
/*
* Copyright (c) 2009-2010 ATMAIL. All rights reserved
* See [url]http://atmail.com/license.php[/url] for license agreement
*/

//apd_set_pprof_trace();

//session_cache_limiter('private'); //IE7 https file download work around
/* rather implimented.
TODO: try to find a way to have normal caching on if detected as https IE7 or other FAILER
header("Pragma: ");
header("Cache-Control: ");
*/

include_once('bootloader.php');
 
if($frontController)
{
	$frontController->dispatch();   

	Zend_Session::writeClose();
	Zend_Registry::get('log')->info('Hit closing down. Hit time: ' . round( ( microtime(true) - DEBUG_START_MT ),3 ) . ' seconds');
}


?>
 
I don't have any Apache 2.0 around, but in Apache 2.2 it simply looks like this:

Code:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
        DirectoryIndex index.html index.html.var index.php    
</IfModule>

Note that you have incomplete tags in your statement.

It may have been mod_dir in 2.0. See http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex
 
Try this, plain and simple.

Code:
<IfModule mod_dir.c>
          DirectoryIndex index.php index.php5 index.html
</IfModule>
 
Back
Top