I need to install and run a Drupal6's website with a hosting provider who set 'safe_mode' to 'On'.

I have tried this work around without success: http://jan.baresovi.cz/dr/cs/node/37

Did someone resolve an issue like that?

Comments

vm’s picture

drupal will not run in safe_mode by default. I disagree with hacking core files to try and accomplish this. There are multiple scripts that will not run in with safe_mode enabled.

You may be able to disable safe_mode using a custom php.ini file (provided your host allows the use of custom php.ini files). If not file a support request with your host asking to disable safe_mode. If they do not comply maybe you should consider moving to a less restricting host. Plenty of commenting on php.net points to safe_mode being more of a hinderance than a hel which is likely why has been removed in PHP6

matkeane’s picture

Hi,

I don't mean to be contradictory, but I have several Drupal sites running on a rented dedicated server with safe_mode and safe_mode_gid on. To complicate matters, the sites are on separate vHosts and the Drupal install is shared by all the sites. By default, you're right, that nothing worked, but that's down to the server, not Drupal. With careful configuration of the vHosts and Unix users/groups, it can be done. If you search around on the Drupal site for 'drupal safe mode', there are some quite detailed instructions (thankfully!) about how to get this set up. So you're right that there's no need to hack core.