Blog

Configuraing local php variables in Php -FCGI set up

Tags: .user.inimagic_quotes_gpcphp -fcgi

Published on: September 16, 2014 by Vipin R.N

Configuraing local php variables in Php -FCGI  set up

Scenario:

Scenario

A customer says he needs to turn off PHP magic quotes ( magic_quotes_gpc ) in his account. 

Pre-Requisite Information
 
PHP version 5.3.22
Server API CGI/FastCGI
Solution

An absolute walk in the park if you know it, otherwise 🙁

PHP.net says “Since PHP 5.3.0, PHP includes support for .htaccess-style INI files on a per-directory basis. These files are processed only by the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are using Apache, use .htaccess files for the same effect” 

In simple words, instead of using .htaccess to set php parameters you must now use .user.ini, (note the dot in front .user.ini) in the public_html directory, which is the root of your web directory.

Get 24/7 expert server management

Category : Howtos, Troubleshooting

Vipin R.N

Vipin R.N

Vipin is a no-nonsense, disciplined guy who ensures that everything is carried out with the highest level of perfection. Apart from his great coding skills, he is quite interested in advanced server administration, issue analysis, documentation and training. In-depth knowledge in international politics, ammunition and automobiles makes this hard core Manchester United fan, one of the most referenced personalities in the entire team.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items