• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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