Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Warning: fopen() - SAFE MODE

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: 2932 Views
  • Rytchie
    Avatar
    Community Member
    9 Posts

    Warning: fopen() - SAFE MODE Link to this post

    Hello,
    I tried to install this very nice CMS (thanks to the all developers for it:) ) in my hosting but during the installation I received this warning message:

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /tmp owned by uid 0 in .../silverstripe/sapphire/core/ManifestBuilder.php on line 105

    I think, it means that my hosting-provider has disabled function fopen for security reasons. Have you got any idea how to repair/pass it, or anything else what I can do with that?

    Thank you very much.

  • fester
    Avatar
    Community Member
    2 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    i get the same kind of error

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'assets' folder...
    # Creating 'mysite/_config.php'...
    # Creating '.htaccess' file...
    # Building database schema...

    Warning: fopen(/tmp/manifest_home_fester_public_html_silverstripe-v2.0_sapphire_main.php) [function.fopen]: failed to open stream: Permission denied in /home/fester/public_html/silverstripe-v2.0/sapphire/core/ManifestBuilder.php on line 105
    Cannot write manifest file! Check permissions of /tmp/manifest_home_fester_public_html_silverstripe-v2.0_sapphire_main.php

  • nodevice
    Avatar
    Community Member
    37 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    I'm getting exactly the same message!

  • fester
    Avatar
    Community Member
    2 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    I have been fiddling for ages, cant make it work

  • nodevice
    Avatar
    Community Member
    37 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    I've got this answer from my hosting provider (powweb).

    "I have tried to install SilverStripe CMS application, but it results class errors “Fatal error: Class 'Director' not found in ‘naciondnb/cms/_config.php’ on line 3”. It appears to be a bug in cms software, not able to locate the class ‘Director’. You can contact support team of cms application to fix the bug."

    Is this true? or is problem of their hosting service, the service looked like it had all the requirements to install silverstripe.

    They are also suggesting me to install another CMS
    "We are providing couple of CMS applications in your OPS control panel. You can install anyone of the CMS application software which best suits for your business from ‘InstallCenter’ in your OPS control panel."

    I really want to install Silverstripe, is the only CMS that have allowed me to customize my site so easy! and I have my site ready for uploading!

    Hope somebody could help me.

  • Rytchie
    Avatar
    Community Member
    9 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    It is not a bug in SS. When provider has activated SAFE MODE on Apache server, you cannot write into any files, which are above the current directory. I studied SilverStripe and I think, that there is a problem with /tmp, because its in web root directory "/". But how to repair it?

  • Andy
    Avatar
    230 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    There is a line at the top of sapphire/core/Core.php that defines where the temporary folder is. Try changing that and tell me how you get on.

  • Rytchie
    Avatar
    Community Member
    9 Posts

    Re: Warning: fopen() - SAFE MODE Link to this post

    Yes, I tried to change this directory but I always get "Unable to access". Can you make some update packet for this problem?

    2932 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.