RE: [PHP-DB] Apache not compiling php

From: Date: Thu, 01 Mar 2001 18:14:57 +0000
Subject: RE: [PHP-DB] Apache not compiling php
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7056@lists.php.net to get a copy of this message
> I had put the proper lines in httpd.conf, and in php.ini > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > all my php3 files are working but the browsers give the plain > text php code. Ok, 1st guess time here, you compiled with apxs so an apache module, but do you system scripts pass the -D PHP3 paramater when they start apache, often depends on the distro whether this happens. Secondly, I think, that for PHP3 the standard mime-type is application/x-httpd-php3, although don't know whether makes a difference. Thirdly, you talk about php3 files, does that mean they have the extension .php3? In which case you will also need to add a line similar to; AddType application/x-httpd-php3 .php3 Hope that gives you some starters :-; -- Andy Flisher 'We are but packets in the Internet of Life' andy@flish.co.uk http://www.flish.co.uk

« previous php.db (#7056) next »