I have almost got it I think. (PHP4 CGI on Apache)
| From: | Brian Moon | Date: | Wed, 21 Jul 1999 20:06:12 +0000 |
| Subject: | I have almost got it I think. (PHP4 CGI on Apache) | ||
| References: | 1 2 3 4 5 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2464@lists.php.net to get a copy of this message | ||
Ok, this is as close as I have gotten.
./configure --with-mysql
php binary at /usr/local/bin/php4
httpd.conf:
<VirtualHost 209.95.70.169>
DocumentRoot /home/www/webroot2
ScriptAlias /php4/ "/usr/local/bin/"
AddType application/x-httpd-php php
Action application/x-httpd-php /php4/php4
</VirtualHost>
Tried: http://209.95.70.169/test/info.php
Got: Parse error: parse error in /usr/local/bin/php4 on line 117
Any Clues?
Brian Moon
-------------------------------------------------------------------------
Phorum Dev Team - http://www.phorum.org
Making better forums with PHP
-------------------------------------------------------------------------
----- Original Message -----
From: Sascha Schumann <sascha@schumann.cx>
To: Brian Moon <brian@phorum.org>
Cc: Jim Winstead <jimw@php.net>; php4 <php4beta@lists.php.net>
Sent: Wednesday, July 21, 1999 11:44 AM
Subject: Re: [PHP4BETA] HELP! Getting PHP4 to work as CGI with Apache
onFreeBSD
> On Wed, Jul 21, 1999 at 11:32:00AM -0500, Brian Moon wrote:
> > Ok, so now I have:
> >
> > /usr/local/bin/php4
> >
> > I have a symlink in cgi-bin to that binary
> >
> > in .htaccess:
>
> RemoveHandler html
> AddType application/x-httpd-php html
>
> > AddType application/x-http-php html
> ^
> > Action application/x-httpd-php /cgi-bin/php4
>
> --
>
> Regards,
>
> Sascha Schumann
> Consultant
>