Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » 2.4 beta CGI Issues

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 713 Views
  • Mo
    Avatar
    Community Member
    485 Posts

    2.4 beta CGI Issues Link to this post

    Hi All,

    I am trying to run version 2.4 beta1 on my shared host. They are using cgi-php and I am getting some funky fatal errors. The main one is:

    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Log/Writer/Abstract.php' (include_path='/usr/local/share/pear:.') in /usr/local/psa/home/vhosts/i-lateral.com/httpdocs/sapphire/dev/LogFileWriter.php on line 17

    The require once statement in this file works fine in mod_php, but CGI doesn't seem to like it.

    Any ideas?

    Mo

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: 2.4 beta CGI Issues Link to this post

    Could be different include paths or something in the FastCGI setup of PHP? Might be worth checking the phpinfo() details to see if there's anything.

    Strange though, I've had SS 2.4 working with FastCGI and it appears to be working fine, even with IIS.

    Permission error, perhaps?

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: 2.4 beta CGI Issues Link to this post

    Hi Sean,

    Thanks for the response. I guess it could be issues with fastcgi not being able to amend PATH (as it will be doing so using my user account on the server). I am in contact with my hosting provider and have asked them. They are being very helpful, so hopefully I will know if that is the case, or if it is something else.

    I will post updates here when I have them.

    Cheers,

    Mo

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: 2.4 beta CGI Issues Link to this post

    Ok, I have been corresponding with my hosting company for about 4 days now, they have managed to fix the problem but it has been very strange.

    Not sure why, but the set_include_path function, used in sapphire/core/core.php was unable to to assign sapphire/thirdparty to the PATH when run under CGI. My host has added that directory to the PATH now in the cgi config (which was nice of them) and this has fixed the problem.

    Anyone have any ideas why this might happen? My host was asking if I had any ideas, in case something like this came up again, so I thought I would post the question to the community at large.

    Answers on a postcard please :s.

    Mo

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