1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

php.ini and include path changed in plesk 8.0

Discussion in 'Plesk for Linux - 8.x and Older' started by interversal, Apr 1, 2006.

  1. interversal

    interversal Guest

    0
     
    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
     
  2. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
  3. interversal

    interversal Guest

    0
     
    ah yes. that's done it

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

    woopee!

    Thanks
    glennn
     
  4. Mateo1041

    Mateo1041 Guest

    0
     
    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.
     
  5. interversal

    interversal Guest

    0
     
    tis cool

    I've been adding the useful stuff I use over and over again in plesk to a blog.
    Plesk Useful Commands.
    But I'd forgotten about that one
     
Loading...