Re: Apache 1.3/PHP
| From: | John Nichel | Date: | Thu, 22 Jan 2004 22:24:58 +0000 |
| Subject: | Re: Apache 1.3/PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175474@lists.php.net to get a copy of this message | ||
Tom Ray [List] wrote:
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 4.3.3-CGI from /usr/ports on the machine. It seems that everything is ok, but when I try to use a .php file it does not run it through the parser. So when I hit test.php in my browser it outputs: <? print "Test 123"; ?> or <?php print "Test 123"; ?> I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they would be. Anyone with experience with FreeBSD/Apache/PHP give me a hand? TIA TomChances are, you need to add this to your httpd.conf and restart Apache... AddType application/x-httpd-php .php -- By-Tor.com It's all about the Rush http://www.by-tor.com