Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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

Can enabling PEAR disable SIlverstripe?

Go to End

4 Posts   1294 Views


Community Member, 178 Posts

25 March 2011 at 4:10am

Edited: 25/03/2011 5:14am

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:

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


Community Member, 178 Posts

25 March 2011 at 5:32am

Edited: 25/03/2011 6:53am

So the quick answer in my case is Yes. enabling PEAR by following these instructions ( 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/">
php_admin_value open_basedir "/var/www/vhosts/"
php_admin_value include_path ".:/usr/share/pear"

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


Community Member, 178 Posts

25 March 2011 at 7:19am

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/	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.?


Community Member, 178 Posts

25 March 2011 at 11:16am

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?