How to disable php safe mode in plesk 10?

Please tell me how to do this from the Plesk interface (version 10).

Btw, if this is not possible via the Plesk interface, please tell me which of these two files I need to change:

[ root@vps ~]# find / -name php.ini /etc/php.ini /usr/local/psa/admin/conf/php.ini 

edit . In the end, I came to the conclusion that my main problem is not safe mode, but an open base directory. The link that helped me solve this: remove the openbasedir restriction for a specific domain in plesk , which I will insert here if this blog gets removed:

If you have an open_basedir restriction causing domain problems, you can easily remove this restriction. First, in /home/httpd/vhosts/[domain]/conf/vhost.conf enter the following text:

 <Directory /home/httpd/vhosts/[domain]/httpdocs> php_admin_flag engine on php_admin_value open_basedir none </Directory> # If there was already a vhost.conf in the directory, then just reload Apache. Otherwise, run the magic wand: /usr/local/psa/admin/bin/websrvmng -av # Then bounce Apache: /etc/init.d/httpd reload # BUT, if the client has both php4 and php5 things get a little more complicated, and you have to add the "IfModule" directive from the apache syntax, eg: < Directory /var/www/vhosts/domain.com/subdomains/SUBDOMAIN/httpdocs> < IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir none < /IfModule> < IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir none < /IfModule> Options +Includes -ExecCGI < /Directory> # Or if you want to add a new location to open_basedir instead of disabling open_basedir, you would have: php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp:/new/path/comes/here" 
+4
source share
4 answers

Go to the control panel for a specific domain where you want to disable safe mode, click the Websites and Domains tab. Below is a listing of domain names, click on the individual name to see its hosting settings. There must be a checkbox for PHP, and another to use safe mode.

See also: https://manage.grabweb.in/knowledgebase.php?action=displayarticle&id=86

+13
source

I'm not sure, but try using your plesk acc:

  • log in to your Plesk account and select the domain that will be associated with PHP safe mode Directive
  • select the appropriate installation icon in your preferred domain
  • click on the flag indicating PHP safe safe mode option
0
source

In the list of domains, click on the one you want to edit.

Configure the button at the top> Permissions tab> secure PHP security management.

Does it do?

0
source

Go to the control panel for a specific domain where you want to disable safe mode, click the Websites and Domains tab. Below is a listing of domain names, click on the individual name to see its hosting settings. There must be a checkbox for PHP, and another to use safe mode. <=== Right

-1
source

Source: https://habr.com/ru/post/1341535/


All Articles