• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

10.4.4 - The new PHP-Settings-feature writes wrong values to php.ini

Dave.E

New Pleskian
With the new feature to easily set PHP-options, some values in the custom php.ini's are set in a wrong manner.

Example:
Switching
'safe_mode' to 'off'
in the subscription's PHP Settings will cause the php.ini in /var/www/vhosts/$domain%/etc to take the value
safe_mode = "off"
which seems not to work for i.e. joomla. (joomla reports it to be "on", but phpinfo() says, its "off")

Instead it should be set to
safe_mode = off


On the other hand, setting the 'safe_mode'-option in the Service Plan (Admin-Panel >> ServicePlan >> %Plan% >> PHP Settings) works in weird manner.
Switching 'safe_mode' to 'on' causes all custom php.ini's to be updated with safe_mode = "on" (with the wrong notation).
Switching it to 'off' causes nothing (in fact: value is set to 'default') - the initial value from /etc/php.ini (which in my cas is 'On') is taken into account.


So the new feature seems to have some optimisation capabilities...

Anyone having the same issues?


---------------------------------------------------------------
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Panel 10.4.4 MU#5
CentOS 5
Linux 2.6.18-194.26.1.el5xen
PHP 5.3.3-1.el5_6.1 (updated with plesk update)
MySQL 5.0.77-4.el5_6.6 (updated with plesk update)
Apache 2.2.3-53.el5.centos.3

PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
New PHP Settings-feature writes options to /var/www/vhosts/%domain%/etc/php.ini with quotes, which some 3rd party software does not interpretate.

Different behaviour with the PHP Settings in templates: some values aren't set at all
(i.e. safe_mode > 'off', results in 'default'-value for 'safe_mode')

ACTUAL RESULT

EXPECTED RESULT
The values should be set without quotes,
the settings in Service Plan-templates should work all over.

--------------------------------------------------------------
 
Last edited:
I have forwarded it to developers. Let's wait their answer.
 
Use the workaround of settings safe_mode=off in the global system php.ini
 
I have Panel-Version 10.4.4 Update #15 and the same problem.
When I save via plesk a php configuration for a client safe_mode set in -> " ". Many scripts will recognize this as on.

Web is mod_fcgid.

Thanks. Greets Danny
 
Last edited:
I have the same problem with safe_mode and Joomla!

OS Microsoft Windows 6.1;build-7600;sp0.0;suite400;product3
Panel version 10.4.4 Update #19

Joomla! says safe_mode is on. But all php.ini files I can find (*php*.ini) have safe_mode set to off.

PHP is executed via FastCGI.
PHP version is set to 5.3.9
 
Yes, same problem. Phpmode is fast-cgi, Plesk 10.4.4 and in php.ini in domain etc/ is safe_mode ="off"
I have to change to safe_mode = Off after update in plesk panel of php options from domain.
 
This problem is still there.

Since MU #11 the value from the service plan is taken into account now, but it still comes in double-quotes " ".

This can't be such a complicated problem and should be able to be fixed within a few seconds by Plesk.
So please, Plesk, fix this problem and take off the annoying quotes from
- safe_mode

and for safety also from all other on/off values like:
- register_globals
- display_errors
- log_errors

Thanks.
 
I see Parallels joking. Just at last updated to last version, but there STILL safe mode = "off". MU 22 released, but ... It's ridiculous.
 
Plesk version: 10.4.4 Update #23

Have experienced similar problems as those above.

Reset php.ini file to safe mode = Off after upgrade to PHP 5.3.

PHP Settings in each site indicate safe mode = Off. When installing or viewing applications into sites their controls show warnings regarding safe mode = on. Even though global php.ini set to off, it seems to be on.

Even though when entering panel for PHP settings the safe_mode showed "off" prior to changing to Default, the server was not configured to off. Change to Default.

Solution for my configuration:
1. Enter each "Domain" in plesk panel.
2. Select "Customize" in configuration.
3. Select "PHP Settings" tab.
4. Under "Common settings", safe_mode select "Default" option.
5. Select "Ok" button at bottom of panel window.

So far, so good.
 
DaveW4,

Unfortunately developers can't reproduce it. Do you have any additional details or steps-to-reproduce?
 
Same Issue with Quotations

I'm on 10.4.4 MU# 24.

Main purpose of my server is to run a few Joomla websites. I run Plesk in Single User mode. Saving a custom php.ini using Plesk panel puts quotes around my variables when they shouldn't. Once I removed them by manually editing the file everything worked.

Plesk Generated example:
register_globals = "off"

What works:
register_globals = Off


My problems were with these specific variables (didn't try any others):

Safe Mode
Register Globals
Log Erros
Output Buffer

Steps:

1. Websites and Domains Tab
2. Click the Domain
3. Php Settings Tab
4. Make changes
5. Submit "Ok"

Creates/edits apply to domain/etc/php.ini files
 
Last edited by a moderator:
Partially.

upload_max_filesize = "16M"
post_max_size = "16M"
memory_limit = "64M"

still wrong. It should be:

upload_max_filesize = 16M
post_max_size = 16M
memory_limit = 64M
 
Back
Top