Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blank Pages - SAFE MODE Restriction in effect

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1947 Views
  • fratier
    Avatar
    3 Posts

    Blank Pages - SAFE MODE Restriction in effect Link to this post

    When I finish installing it, I get blank pages, so I enable the dev mode, then I get this error:

    FATAL ERROR: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 32642 is not allowed to access /tmp owned by uid 0
    At line 136 in /home/fratier/public_html/sapphire/core/SSViewer.php

    I'm currently running:
    PHP version    5.0.5
    MySQL version    4.1.21-standard
    Apache version    1.3.37 (Unix)
    Safe Mode default on but turned off by a php.ini

    EDIT ------------------------------------------------------------
    I found that my hosting provider only gives me 16m of memory_limit so I guess it must be that

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Blank Pages - SAFE MODE Restriction in effect Link to this post

    No, the problem seems to be the error you're seeing.... you need permission to access /tmp/ which is excluded by safe mode or perhaps some other issue.

    If you cannot get your webhost to do this, then you need to make a new directory that can be written to by the web server and should not be visitable from a web browser. Eg. you might make a folder called /.cache/

    You then need to set the cache directory... just look for references for /tmp/ in the code, and change them. Others have done this in the past too.

    Finally, your mileage with mem limit 16 may cause you issues and it might be better to move to a host that is running a modern version of PHP (v5.0.5 is very old) and not boxing you into safe mode.

    1947 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.