It is indeed recommended *not* to use <IfModule> for that very reason. If
the module isn't loaded, then those directives will not be evaluated. Run
apachectl -M to see loaded modules.

On Mon, Oct 1, 2018 at 5:27 PM Filipe Cifali <cifali.fil...@gmail.com>
wrote:

> Are you sure you have mod_php installed and active? This would explain the
> failing DirIndex and all of this sudden change
>
> On Mon, 1 Oct 2018 at 17:36 Jack M. Nilles <jnil...@jala.com> wrote:
>
>> /etc/apache2/conf.d/php5.conf is as follows:
>>
>> <IfModule mod_php5.c>
>>        <FilesMatch "\.ph(p[345]?|tml)$">
>>            SetHandler application/x-httpd-php
>>        </FilesMatch>
>>        <FilesMatch "\.php[345]?s$">
>>            SetHandler application/x-httpd-php-source
>>        </FilesMatch>
>>         DirectoryIndex index.php4
>>         DirectoryIndex index.php5
>>         DirectoryIndex index.php
>> </IfModule>
>>
>> Why this doesn't work is a mystery to me. Especially since it is included
>> as part of the vhosts.conf file. Should I put the '*Include
>> /etc/apache2/conf.d/*.conf*' directive earlier in the conf file? Does
>> the order make a difference?
>>
>> BTW, if I copy the current index.php file on site1 to index.html the
>> latter displays without the ssl decorations. However, the site still won't
>> display any php files.
>>
>>
>> --
> [ ]'s
>
> Filipe Cifali Stangler
>

Reply via email to