Welcome! Log In Create A New Profile

Advanced

Can't set php config value magic_quotes_gpc in nginx fastcgi config file

Posted by neilstuartcraig 
Can't set php config value magic_quotes_gpc in nginx fastcgi config file
May 10, 2012 11:36AM
Hi everyone

Despite searching the web a lot, i can't find a reason why i am unable to set the PHP config for magic_quotes_gpc in Nginx vhost config file. I've used the same format previously for other vars which worked fine but this one doesn't, any ideas:

fastcgi_param php_value "magic_quotes_gpc=On";

I have tried loads of variants e.g. php_flag/php_admin_flag, 1/On etc but no luck.

I need to do this as 2 different apps on my server mandate magic quotes GPC off/on. My workaround is to try PHP-FPM pools which i will try if i can't get this to work.

My setup is:
Debian 6 (squeeze)
Nginx 1.2.0 (from apt)
PHP-FPM 5.3.11 (dotdeb, with suhosin & xcache)

I have checked and suhosin is not the problem as this still doesn't work when it's disabled.

Any suggestions would be very welcome, even if it just rules out Nginx as the issue.

Many thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready