• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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