Jump to content
Sign in to follow this  
Maze

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

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 -

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

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.