Re: [PHP4BETA] I have almost got it I think. (PHP4 CGI on Apache)
| From: | Chad Cunningham | Date: | Wed, 21 Jul 1999 20:32:49 +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-2471@lists.php.net to get a copy of this message | ||
DId you still have the script alias there?
Basic procedure I used:
Copy php binary to /cgi-bin/php.cgi
Add to httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /cgi-bin/php.cgi
Then restart the server. No other directives should be needed than the
three above.
On Wed, 21 Jul 1999, Brian Moon wrote:
> When I put it there I get:
>
> You don't have permission to access /cgi-bin/php4/test/info.php on this
> server.
>
> Brian Moon
> -------------------------------------------------------------------------
> Phorum Dev Team - http://www.phorum.org
> Making better forums with PHP
> -------------------------------------------------------------------------
>
>
> ----- Original Message -----
> From: Chad Cunningham <ccunning@math.ohio-state.edu>
> To: Brian Moon <brian@phorum.org>
> Cc: php4 <php4beta@lists.php.net>
> Sent: Wednesday, July 21, 1999 3:13 PM
> Subject: Re: [PHP4BETA] I have almost got it I think. (PHP4 CGI on Apache)
>
>
> > 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
> > >
> > >
> >
> >
>
>
> --
> PHP 4 Beta
>
>