Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jul 2007 20:08:54 -0700
From:      Chris Maness <chris@chrismaness.com>
To:        Norberto Meijome <freebsd@meijome.net>, freebsd-questions@freebsd.org
Subject:   Re: index.php not being pulled up?
Message-ID:  <468B0F46.1000508@chrismaness.com>
In-Reply-To: <20070704123614.7dae8b44@localhost>
References:  <468AFB9D.8090302@chrismaness.com> <20070704123614.7dae8b44@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Norberto Meijome wrote:
> On Tue, 03 Jul 2007 18:45:01 -0700
> Chris Maness <chris@chrismaness.com> wrote:
>
>   
>> I have these directives in my httpd.conf file, but index.php is not 
>> being pulled up like index.html.  This worked before I upgraded apache 
>> and php5.  Any suggestions?
>>
>> <IfModule mod_dir.c>
>>     <IfModule mod_php3.c>
>>         <IfModule mod_php4.c>
>>             DirectoryIndex index.php index.php3 index.html
>>         </IfModule>
>>         <IfModule !mod_php4.c>
>>             DirectoryIndex index.php3 index.html
>>         </IfModule>
>>     </IfModule>
>>     <IfModule !mod_php3.c>
>>         <IfModule mod_php4.c>
>>             DirectoryIndex index.php index.html
>>         </IfModule>
>>         <IfModule !mod_php4.c>
>>             DirectoryIndex index.html
>>         </IfModule>
>>     </IfModule>
>>     
>
> #################################
>   
>>     <IfModule !mod_php5.c>
>>         <IfModule mod_php5.c>
>>             DirectoryIndex index.php index.html
>>         </IfModule>
>>     
> #################################
> Spot the problem :)
>
>
>   
Does the following 3 lines negate the previous 3 lines?
>>         <IfModule !mod_php5.c>
>>             DirectoryIndex index.html
>>         </IfModule>
>>     </IfModule>
>> </IfModule>
>>
>>     
>
>
> _________________________
> {Beto|Norberto|Numard} Meijome
>
> Windows caters to everyone as though they are idiots. UNIX makes no such assumption. 
> It assumes you know what you are doing, and presents the challenge of figuring it out for yourself if you don't.
>
> I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.
>   
I added the following lines to the end of my httpd.conf file (but before 
the virtual host directives) before I recieved your e-mail and it fixed 
the problem:

<IfModule mod_php5.c>
        DirectoryIndex index.php index.html
</IfModule>


-- 
Chris Maness
(909) 223-9179
http://www.chrismaness.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?468B0F46.1000508>