Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Thursday, May 15 2008 @ 11:26 PM EDT
   

List Index.PHP first in Apache for exponential increase

ServerGuys/KewlPHPGirls

I found an interesting performance tweek that was staring at me the whole time. After noticing 2-4 second delays in page rendering before geelog would load (I noticed geeklog said it loaded in, say .91 seconds yet from the time I hit enter on the web page, it tool 4-7 seconds to load).

For those using Apache, you MUST list index.php first as your DirectoryIndex . This one fix jumped my render time from 4-7sec to the true .91 sec. Mine looks like this now:

DirectoryIndex index.php index.htm index.html

Take care and happy GL'ing.

Story Options

List Index.PHP first in Apache for exponential increase | 2 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
List Index.PHP first in Apache for exponential increase
Authored by: Anonymous on Thursday, March 27 2003 @ 01:37 AM EST
Would this work as well if the directive was put in the .htaccess file I wonder?

(e.g., "DirectoryIndex default.php" added to .htaccess)
List Index.PHP first in Apache for exponential increase
Authored by: Anonymous on Thursday, March 27 2003 @ 02:44 AM EST
Sorry that should be:

.htaccess CODE STARTS HERE>

# For this to work, you must include the parameter 'Limit' to the
# AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit
#</Directory>
#
# 'All' with also work. (This configuration is in your
# apache/conf/httpd.conf file)

DirectoryIndex index.php

<.htaccess CODE ENDS HERE

Put the .htaccess in the directory where the index.php file is (usually public_html).

Tried this and yes it does speed things up a little:)