22397 Posts in 6743 Topics by 2748 members
|Go to End|
25 March 2011 at 4:10am Last edited: 25 March 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: 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.
25 March 2011 at 5:32am Last edited: 25 March 2011 6:53am
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.
php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
all my paths are correct. And when this script is active my pear install does work,.
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/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.?
25 March 2011 at 11:16am
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?
|Go to Top|