Config File Error?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
andrewharvey
Forum Newbie
Posts: 1
Joined: Mon Feb 22, 2010 12:32 pm

Config File Error?

Post by andrewharvey »

Build
php 5.2.11
apache 2.0.63 on Solaris 10 (x86)

LoadModule php5_module modules/libphp5.so
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType text/html .php
AddHandler server-parsed .php

I seem to have a php parsing directive missing from my httpd.conf (I've simply repurposed the ones I used to use for apache 1.3.33 except for the value of the php version.) Since these parse, addtype and directory index lines worked in apache 1.x I thought they might work in apache 2.x. But it happens not.

Does anybody know off the top of his head what other directive apache 2.x requires? Not including +Includes (I've added that.) My 2.0.63 httpd server believes itself to be php enabled. It says so in the error log: Apache/2.0.63 (Unix) PHP/5.2.11 configured -- resuming normal operations and yet it writes php variables to the webpage (almost as if none of the mime types had been added.) But in that case it simply writes the whole script to the browser. In my case it only writes part of the script to the browser and interprets the other parts in the php interpreter. It's most peculiar.
Post Reply