Re: [SLUG] RH8 Question

From: Austin Theen (austin@austintheen.com)
Date: Thu Mar 27 2003 - 10:04:17 EST


Ok, I stumbled across the fix. I have to say I hate Redhat for this.

It seems the default has been changed so that short tags are turned off
in php.ini, resulting in the pages being passed to php and php is just
happy as a clam to pass them untouched to the browser. Once the
"short_open_tag = On" was enabled everything works.

Hope this helps somebody else, I know I lost a bunch of time tracking
this down.

Austin

On Thu, 2003-03-27 at 09:26, Austin Theen wrote:
> To go along with my question concerning Red Hat 8 and PHP, I've quoted
> inline the config's to enable php use in RH8 and my Gentoo system. RH8
> uses the filter which I guess is suppose to hand off these files to an
> interpreter marked as 'PHP'. Somehow libphp4.so knows this handler?
>
> --- begin /etc/httpd/conf.d/php.conf ---
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
>
> LoadModule php4_module modules/libphp4.so
>
> #
> # Cause the PHP interpreter handle files with a .php extension.
> #
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 524288
> </Files>
>
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
> --- END ---
>
> This is how I have my Apache 2.0.44 and PHP 4.3.1 working on Gentoo,
> which uses mod_php instead of filtering through php like cgi.
>
> --- BEGIN modules.d/70_mod_php.conf ---
> <IfDefine PHP>
> <IfModule !mod_php4.c>
> LoadModule php4_module extramodules/libphp4.so
> </IfModule>
> </IfDefine>
>
> <IfModule mod_mime.c>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php-source .phps
> </IfModule>
> --- END ---
>
> Thanks!
> Austin

-- 
Austin Theen <austin@austintheen.com>
Information Technology Works



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:17:17 EDT