• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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