include_path problem with PHP 5.2

Support/Development for PHP
spaceout
Forum Regular
Forum Regular
Posts: 112
Joined: Wed Mar 19, 2008 10:22 pm

include_path problem with PHP 5.2

Unread post 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?
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

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

Unread post by prupert »

What are the exact errors?
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: include_path problem with PHP 5.2

Unread post by scott »

which php.ini are you editing?
spaceout
Forum Regular
Forum Regular
Posts: 112
Joined: Wed Mar 19, 2008 10:22 pm

Re: include_path problem with PHP 5.2

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: include_path problem with PHP 5.2

Unread post by scott »

Yeah, thats the wrong one. You have to edit the php-panda php.inis, those live in /opt/atomic/
Post Reply