Re: php_build .htaccess directives
Albert Lash <alby-8/[email protected]> Thu, 2 Jun 2005 17:01:11 -0400 (EDT)
| Newsgroups | gmane.comp.lib.nexista.devel |
|---|---|
| Message-ID | <[email protected]> |
Wow dude this is incredible aggravating. Not familiar with scriptaliases... I thought the cgi/php file (the link to the real php binary) was in the htdocs folder? Here's my setup: /var/www/localhost/htdocs/index.php /var/www/localhost/htdocs/.htaccess /var/www/localhost/htdocs/cgi/php /usr/local/php5/bin/php /var/www/localhost/htdocs/index.php: <? phpinfo(); ?> /var/www/localhost/htdocs/.htaccess: AddType custom-php .php Action /cgi/php /var/www/localhost/htdocs/cgi/php: #!/usr/local/php5/bin/php PHP_PATH="/usr/local/php5/" export LD_LIBRARY_PATH=$PHP_PATH/lib $PHP_PATH/bin/php $1 It doesn't work though. I'm losing it. Alby On Thu, 2 Jun 2005, Joshua wrote: > That's looks fine - assuming you are allowed scriptaliases in your apache conf > - but since you've been using it.... > The redirect message is weird - doesn't sound like it has to do with that. > Have you tried first passing a simple php file (echo statement) straight to > the binary as > > php myfile.php > > On Thursday 02 June 2005 9:42 am, Albert Lash wrote: > > Hi Joshua, > > > > I'm trying to use the php_build script you built, but I keep getting a > > configuration error. When I call the cgi/php script, I can get the php > > binary to output the version, like this: > > > > cgi/php -v > > > > Is my .htaccess accurate: > > > > Action custom-php /cgi/php > > AddType custom-php .php > > > > The apache error_log says it met the maximum number of redirects.... > > > > Thanks, > > > > Al >