Page 1 of 1

include_path problem with PHP 5.2

Posted: Thu Apr 24, 2014 3:07 pm
by spaceout
I'm trying to use 5.2 to get an old copy of OSCommerce to work for a client, but I'm having an include_path problem.

I see this is currently included...

include_path='.:/opt/atomic/atomic-php52/root/usr/share/pear:/opt/atomic/atomic-php52/root/usr/share/php'

I've tried adding :/var/www/vhosts/shopdomain.com/httpdocs to the end of that, but that doesn't seem to work. Any ideas what I'm doing wrong?

Re: PHP Panda! Multi-PHP installer for Plesk (and others!)

Posted: Fri Apr 25, 2014 4:52 am
by prupert
What are the exact errors?

Re: include_path problem with PHP 5.2

Posted: Fri Apr 25, 2014 9:50 am
by scott
which php.ini are you editing?

Re: include_path problem with PHP 5.2

Posted: Fri Apr 25, 2014 5:43 pm
by spaceout
I was editing it in the PHP Settings area available in Plesk. It seems to be picking up the changes as I see it changed in the error logs, but it's still not working.

Here is a sample of the error log...

Code: Select all

[Fri Apr 25 14:42:00 2014] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning:  include(includes/languages/english): failed to open stream: Success in /var/www/vhosts/shopdomain.net/httpdocs/shop/admin/includes/application_top.php on line 146
[Fri Apr 25 14:42:00 2014] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Warning:  include(): Failed opening 'includes/languages/english' for inclusion (include_path='.:/opt/atomic/atomic-php52/root/usr/share/pear:/opt/atomic/atomic-php52/root/usr/share/php:/var/www/vhosts/shopdomain.net/httpdocs') in /var/www/vhosts/shopdomain.net/httpdocs/shop/admin/includes/application_top.php on line 146

Re: include_path problem with PHP 5.2

Posted: Fri Apr 25, 2014 5:55 pm
by scott
Yeah, thats the wrong one. You have to edit the php-panda php.inis, those live in /opt/atomic/