Re: compiled php 5.5.20 throws error [RewriteRule directive is forbidden: /usr/lib/cgi-bin/php55-cgi]

2015-01-04 Thread Jochen Spieker
Bob:
> 
> [Thu Jan 01 09:03:22 2015] [error] [client 192.168.1.116] Options 
> FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule 
> directive is forbidden: /usr/lib/cgi-bin/php55-cgi

AFAICT, this error is completely unrelated to PHP. My guess would be
that Apache doesn't read your .htaccess file and your settings aren't
applied. Since you appear to have access to the Apache configuration,
you should just add the directives from the .htaccess file to the
appropriate VirtualHost section.

J.
-- 
I frequently find myself at the top of the stairs with absolutely
nothing happening in my brain.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


compiled php 5.5.20 throws error [RewriteRule directive is forbidden: /usr/lib/cgi-bin/php55-cgi]

2015-01-04 Thread Bob
Dear list,

I am already messed-up compiling php 5.5.20 as cgi module and seeking your kind 
guidance to put the things back on track.

I have compiled php 5.5.20 on debian (wheezy) 7.7
The objective is to allow some websites run with php 5.5.x as cgi module

The source code is located at /usr/local/src/php5-build/php-5.5.20 and compiled 
at /usr/local/bin/php-5.5.20

[...]

./configure --prefix=/usr/local/bin/php-5.5.20 
--with-config-file-path=/usr/local/bin/php-5.5.20  --enable-cgi ..


[]


A /usr/lib/cgi-bin/php55-cgi has been created with following

[.]

#!/bin/sh
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/local/bin/php-5.5.20/bin/php-cgi -c 
/usr/local/bin/php-5.5.20/lib/php.ini

[]


and it is able to parse php

[...]

/usr/lib/cgi-bin/php55-cgi < /var/www/testme/phpinfo.php  | grep "PHP/"

X-Powered-By: PHP/5.5.20

[...]


A /etc/apache2/php55.conf has also been created with following

[...]

ScriptAlias /php5-cgi  /usr/lib/cgi-bin/php55-cgi
Action application/x-httpd-php5  /php5-cgi
AddHandler application/x-httpd-php5 .php .php5 .php4 .php3 .phtml
[.]

and included at apache2.conf

After successful restart of apache a .htaccess has been placed at the required 
web-root folder

<...>
Options +FollowSymLinks +SymLinksIfOwnerMatch

RewriteEngine On


SetHandler application/x-httpd-php5


<...>

BUT the apache error log throws error as

,

[Thu Jan 01 09:03:22 2015] [error] [client 192.168.1.116] Options 
FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule 
directive is forbidden: /usr/lib/cgi-bin/php55-cgi
[Thu Jan 01 09:03:22 2015] [debug] mod_deflate.c(700): [client 192.168.1.116] 
Zlib: Compressed 287 to 219 : URL /php5-cgi/testme/phpinfo.php




Though the required modules are loaded already


# a2enmod rewrite actions fcgid

Module rewrite already enabled
Module actions already enabled
Module fcgid already enabled
'

I'm clueless, anyone Please ?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150102093454.599c9...@shiva.selfip.org