Re: [PHP4BETA] I have almost got it I think. (PHP4 CGI on Apache)
| From: | Chad Cunningham | Date: | Wed, 21 Jul 1999 20:13:41 +0000 |
| Subject: | Re: [PHP4BETA] I have almost got it I think. (PHP4 CGI on Apache) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2465@lists.php.net to get a copy of this message | ||
I could be wrong, but if I remember correctly from the last time I
installed php as a CGI (and it was a long time ago and I only did it the
once :) I had to put it in the cgi-bin to get it to work. I seem to
remember putting it outside of the cgi-bin caused wierd parse errors where
it looked like it was trying to execute the binary itself, which is what
you seem to be getting. Might be worth a shot.
On Wed, 21 Jul 1999, Brian Moon wrote:
> 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
> >
>
>
> --
> PHP 4 Beta
>
>