Jump to:

23355 Posts in 17744 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Can enabling PEAR disable SIlverstripe?

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: 995 Views
  • DsX
    Avatar
    Community Member
    178 Posts

    Can enabling PEAR disable SIlverstripe? Link to this post

    I have just enabled Pear on one of my domains.
    I have SS site running in this domain (httpdocs root). It has been up for a few months now no problems.
    I have developed a small FaceBook app that I have running in a directory eg /httpdocs/app
    I just added a feature to the FB app that required Pear, so I enabled it for http and https (see: http://kb.mediatemple.net/questions/514/Enabling+PEAR+by+setting+your+open_basedir+and+include_path)

    My primary SS site is now down.
    Currently loading a 404 url will get me the 404 page.
    Any 'good' url will result in a blank page.
    If I load www.mysite/admin I see the url redirection to mysite.com/Security/login?BackURL=%2Fadmin
    meanwhile the FB app is running fine.

    My server has a setup that has a httpdocs and a httpsdocs directory, I am using just the httpdocs (this has been fine in the past)
    Since I setup the vhost_ssl.conf file could I have a path issue?
    Or is there another reason that enabling PEAR might have crippled my SilverStripe install?

    I don't know what to look at next?

    PS. my SS install is 2.4.4

    EDIT: additionally an internal data link, that SS is outputting to a flash file as xml also errors out. It is interesting because it appears that the browser is getting the Header (xml) but not the data.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Can enabling PEAR disable SIlverstripe? Link to this post

    So the quick answer in my case is Yes. enabling PEAR by following these instructions (http://kb.mediatemple.net/questions/514/Enabling+PEAR+by+setting+your+open_basedir+and+include_path) does kill SS

    now the question is why?

    OK, I have now played with a few settings and it appears that something in this vhost.conf file is causing SS to die.

    <Directory "/var/www/vhosts/example.com/httpdocs">
    php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/usr/share/pear:/tmp"
    php_admin_value include_path ".:/usr/share/pear"
    </Directory>

    all my paths are correct. And when this script is active my pear install does work,.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Can enabling PEAR disable SIlverstripe? Link to this post

    so its: php_admin_value include_path ".:/usr/share/pear"
    my server doesn't like it being set here.
    I have added it now to the phpini but doens't seem to be working.

    Currently my phpinfo lists the correct settings for open_base_dir and include_path

    open_basedir   /var/www/vhosts/plastikwrap.com/httpdocs:/usr/share/pear:/tmp   no value
    include_path   .:/usr/shared/pear   .:/usr/shared/pear


    note that open_basedir has only a local setting (since it is being set in the .conf file)
    and my SS site is runing, but my FB app has no PEAR features.?

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Can enabling PEAR disable SIlverstripe? Link to this post

    my bad.
    fixing the php.ini setting from shared to share and it now is working.

    Still do not know why SS will not allow me to set the include_path in the vhost.conf file?? Really strange since I don't thing SS should care where or how it is set?

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