Jump to content

safe-mode and its effects on vhosts - why does turning off


Maze

Recommended Posts

i run several wordpress on domains - and wthin the wordpress i have a plugin that allows uploads of images -within a certain plugin

the interesting thing: image upload is - sometimes possible and sometinmes impossible:

see here the circumstances -

PHP Version : 5.3.28
PHP Safe Mode : On

image upload is impossible -

and on the same server - a second vhost

PHP Version : 5.3.28
PHP Safe Mode : off

image upload is possible

why is this so - does it have to do with the safe-mode -

Link to comment
Share on other sites

the interesting thing: image upload is - sometimes possible and sometinmes impossible:

Possibly not a safe mode issue, maybe file upload size limit,timeout or other.

 

safe mode is deprecated version 5.30 and gone in 5.4+.

Warning

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

 

It was an attempt to make shared servers more secure, but didn't work so well and caused permission issues.

It will make files belonging to the server that your scripts can't do anything with.

The correct way is to set profiles in the operating system.

 

Why not just turn it off?

 

My suggestion is to compare your php.ini settings and make them match the one that works.

 

Hosts should be updating php to somewhere near the latest php versions, if not then find a host that does.

PHP is up to version 5.6.1 now, lots of changes and even missing out some new features.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.