[Tfug] Apache server and PHP

Stephen Hooper stephen.hooper at gmail.com
Wed May 31 20:22:16 MST 2006


If the problem is that PHP code is not being interpreted, but instead
being returned raw to the browser, try modifying
"/etc/conf.d/apache2", and adding "-DPHP5" to the apache options, and
then restarting apache2 (/etc/init.d/apache2 restart).


On 5/31/06, Erich Flothmeier <erich1 at copper.net> wrote:
>     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
>




More information about the tfug mailing list