[Tfug] Apache server and PHP
erich
erich1 at copper.net
Wed May 31 14:46:39 MST 2006
I'm sorry,
That's what was part of the vertical ellipsis,
(.
.
.)
I omitted it for clarity, but that backfired. Here's what the whole thing
looks like:
<IfDefine PHP5>
# Load the module first
<IfModule !mod_php5.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
# Set it to handle the files
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php-source .phps
</IfModule>
AddDirectoryIndex index.php index.phtml
</IfDefine>
The above is the entire contents of the file
/etc/apache2/modules.d/70_mod_php5.conf
Erich
Brian Murphy wrote:
>The 2 things to look for are a LoadModule php5_module statement and
>AddType application/x-httpd-php .php statement. Perhaps you missed the
>second stanza. It's common to append index.php to your DirectoryIndex
>statement too.
>
>Brian
>
>Quoting Erich Flothmeier <erich1 at copper.net>:
>
>
>> The problem is that my apache server is not performing the proper
>>encoding
>>of PHP code on my machine.
>>
>> There is a module:
>>
>> /etc/apache2/modules.d/70_mod_php5.conf
>>
>>with several software switches in it:
>>
>>
>><IfDefine PHP5>
>> .
>> .
>> .
>> <IfModule mod_mime.c>
>> .
>> .
>> .
>> </IfModule>
>> .
>> .
>></IfDefine>
>>
>> I am wondering how these switches are set. Right now I'm about
>>to rebuild Apache with the php use flag. Doing an
>>
>> emerge -vp apache
>>
>>does not give me any encouragement.
>>
>>
>>Erich
>>
>>
>>_______________________________________________
>>Tucson Free Unix Group - tfug at tfug.org
>>Subscription Options:
>>http://www.tfug.org/mailman/listinfo/tfug
>>
>>
>
>
>
>
>The opinions or statements expressed herein are my own and should not be
>taken as a position, opinion, or endorsement of the University of
>Arizona.
>
>
>
>_______________________________________________
>Tucson Free Unix Group - tfug at tfug.org
>Subscription Options:
>http://www.tfug.org/mailman/listinfo/tfug
>
>
>
More information about the tfug
mailing list