• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

php as cgi/fastgi safemode

R

Rustam Khamidov

Guest
When php run as CGI/FastCGI mode, the safe mode is always turned ON.
Thus, checkbox safemode does not work.
This is a bug or a feature?

P.S. sysinfo

OS: Centos release 5.2 (Final)
x86_64
Linux xxxxx 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:32:05 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

Plesk: 9.0.1
psa-9.0.1-cos5.build90090127.18
 
Last edited by a moderator:
i do not know centos, but on debian there are 2 different php.ini files

one for apache and one for cli, cgi/fast-cgi uses the cli one ...

and plesk does not modify the cli one ...
 
I am not talking about the php.ini file!
It is about generating a file httpdocs.include (full filename on my system like /var/www/vhosts/domain.name/conf/httpdocs.include).
In this file in case of php as cgi / fastgi, regardless of safemode checkbox, contain follow line
php_admin_flag safe_mode on
Which should vary with changes in safemode.
 
I'm seeing the same issue on Plesk 9.3 running on Ubuntu 8.04 Server LTS. When you choose FastCGI the safe_mode box is ignored so the global safe_mode setting is used. I'd prefer to keep the global setting On so my current fix is to override with a vhost.conf.
 
Back
Top