This might help, but the machine I am on right now is compiled as a CGI (but it also requires an "Action".

AddHandler application/x-httpd-php3 .php
AddHandler application/x-httpd-php3 .php3

>>> jethro at freakzilla.com 03/17/01 11:13AM >>>
  Hi,

I'm trying to get Apache to work with PHP files. I've built Apache 1.3.14
with Apache+ssl 1.3.14, and PHP 4.0.4pl1. I've nuilt php as a DSO. It
seems to have installed correctly. In httpsd.conf I've added:

	LoadModule php4_module        libexec/libphp4.so

and

	AddType application/x-httpd-php .php
	AddType application/x-httpd-php-source .phps

Also

	AddType application/x-httpd-php3 .php3

because I'll be running php3 files.

If I run a test.cgi file that does a printenv, I see:

	Apache/1.3.14 Ben-SSL/1.42 (Unix) PHP/4.0.4pl1

But accessing a .php or .php3 file just shows the source. I tried this
test.php:

	<HTML>
		<HEAD><TITLE>PHP Test </TITLE></HEAD>
		<BODY>
		<?phpinfo( ) ?>
		</BODY>
	</HTML>

I called it .php, .php3, made it executable, and I still get nothing.

Nothing in the error logs.


What am I missing?



-Yaron

--

_______________________________________________
tclug-list mailing list
tclug-list at mn-linux.org 
https://mailman.mn-linux.org/mailman/listinfo/tclug-list