I am trying to change webhost. My new webhost has Safe mode=on. I did not think it should be a problem since I moved another Drupal site to this host a couple of months ago without problem. But now I have a problem. I get this message
warning: fopen(): SAFE MODE Restriction in effect...
As I have found on this forum it is the filesfolder that give me a problem.
I have tried to change chmode on the folder. No difference.
I have deleted the folder and created new folders. No difference.
Anyone who has solved the problem? Webhost is Surftown.
Drupal is 5.12

Comments

AstaC’s picture

Noone?

AstaC’s picture

Suddenly everything just worked. I write down what I did if anyone someday find my post through the searchengine.

My problem. Moving my site to new host. Filesfolder suddenly not writeable. Problem: Safe_mode=ON.
First try: Asked my host if it was possible to change safe_mode on to off on just one account. Answer: Not possible.
Next step - a lot af swearing!
Then I tried to fiddle with CHMODE. The folder and subfolders should have 755. No change.
Tried to create new filesfolder and subfolders to which I moved the files. No change.
Renamed my newly created filesfolder to "oldfiles" and again created a new filesfolder which did not work. Just for fun I now entered my adminpages in Drupal and redirected to "oldfiles" instead of "files". Suddenly it worked!! I then renamed "oldfiles" to "files" and again redirected Drupal to files, And now it worked!! Do not ask me why.
But for summary - what worked for me was to create a new filesfolder with CHMODE 755 and change name on it a couple of times.

haroon373’s picture

Thats really did a trick. :)
Thanks AstaChattare

samtherobot’s picture

We needed to do something similar with Drupal 6.x (which when we tested, it didn't run at all). To do it you need to edit your VirtualHost entry for the site in httpd.conf. Just add the following line

php_admin_flag safe_mode on

That way you can test locally without affecting your other development sites. We find it best to always try to match the potential host settings on our dev servers. This way you can be sure that if it runs on the dev box then it will run on the host.