• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

php Safe mode and other things

Thanks for the reply,

Interesting the PHP script does not explicitly reference /var/tmp and line 5 is "session_start();" so that suggests /var/tmp is stored somewhere else. I'll follow the instructions on http://kb.swsoft.com/article_41_432_en.html although it seems a bit odd to have to do this for every domain. Do you know if there is a global variable/setting I could change to make this take effect server wide?

Many Thanks
 
No, there is no global way, as Plesk writes out an httpd.include file for every domain, which overrides any global settings.

Do you get these /var/tmp errors on other domains as well? You might want to find out why it's trying to use /var/tmp.

On my machines (CentOS) I have session.save_path = /var/lib/php/session. That's not in the open_basedir path, but apparently that is no problem. So I wonder why the PHP script tries to access /var/tmp.
 
OK I followed the instructions on and now I get
ERROR: PleskFatalException
Create ShortcutCreate Shortcut
Up LevelUp Level
Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /usr/local/etc/rc.d/apache2.sh failed to start

0: /usr/local/psa/admin/plib/common_func.php3:151
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /usr/local/etc/rc.d/apache2.sh failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28

I can't restart apache which is quite bad.
 
I think its a ***** that safe mode is on in all domains by default.

It was very nice to automate the creations of accounts, except that 80% of people then complaing that safe mode is on, so i have to manually log in and change that setting. This really sucks. PHP safe mode on should be by default off, or at least let us decide what we want on new domains created.
 
The good news is that in PHP6 safemode will be GONE GONE GONE
 
Back
Top