• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

php.ini and include path changed in plesk 8.0

I

interversal

Guest
Hi, this is just to let people know of a problem I had when installing plesk 8.0 from 7.54.
I had mysql 4.18 and Zend optimizer.

After the upgrade many of my php sites displayed an error like this:

Warning: main(): Failed opening 'include/utils/security_utils.php' for inclusion (include_path='\')

After resetting permissions, trying to do a restore but discovering that 8.0 can't read 7.5 backups. I thought I was stumpted.
Then I came across a fix on a forum that said:


i figured it out... in the php.ini file include_path must be exactly this:
----
.:/usr/local/lib/php
----
or in my case it needed to be
include_path=".:var/lib/php"

And that's in /etc/php.ini in my case
You can find out what your include_path is by running a php file with exaclty this in it

<? echo phpinfo(); ?>

no spaces before or after.

I hope this helps some people and saved you the 10 hours it took me to figure out.
It affected my mambo templates and zen cart installs.

Cheers
Glenn
 
ah yes. that's done it

Now I've got zend back my php pages are working like a treat again,

woopee!

Thanks
glennn
 
Code:
include_path=".:var/lib/php"

Thanks SOOOOOO much for the path!! It just solved a week old mystery! For some lame reason Plesk was defaulting to ".:" for me.
 
Back
Top