Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    71

    Default PHP Upgrade Broke Applications

    I had a server management co. upgrade PHP to 5.2.6. I requested all configuration and modules be carried over to remain the same. But when the upgrade was complete I had several sites that suddenly didn't work.

    Two sites have Drupal installs using CiviCRM. Suddenly there are path errors for example:

    "Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

    » civicrm_root is currently set to: /home/username/public_html/sites/all/modules/civicrm."

    However, the config files on these sites have not changed and the paths are correct. The web server just can't find them.

    Similarly, I have a bunch of X-cart sites and when you try to access the shopping cart you get the error message: "Can't find template engine!"

    Clearly a path issue. The company that did the upgrade seems to have no answers. I have posted to the CiviCRM forum just in case anyone there might have a clue, and no help. So, I am seeking any help I can find.

  2. #2
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    Did you install suphp or something similar when you upgraded?

    I know that suphp and similar systems can restrict php from opening files that it thinks are outside the scope of the script.

    For example /opt/suphp/etc/suphp.conf has the following parameters:

    Code:
    ; Path all scripts have to be in
    ; This works as a prefix when a trailing slash is not specified.
    ; e.g. /home will match /home /home2 /home3 etc While /home/ will only match /home/
    docroot=/home
    
    ;Path to chroot() to before executing script
    chroot=/home

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    71

    Default

    suphp was not installed.

    It's fixed with the help of data center support. In case anyone runs in to this here is what was discovered and the fix:

    Each VirtualHost declaration contains include file in form like this:

    include /usr/local/apache/conf/userdata/std/1/<username>/*

    At this location you can find file: cp_php_magic_include_path.conf which contains:

    php_admin_value include_path "..." declarations. Values set by php_admin_value directive can not be overwritten anyhow (not by .htaccess file not by set_ini function).

    The solution is replace 'php_admin_value include_path' with 'php_value include_path' anywhere it exists.

    Now, why this happened with the upgrade to php 5.2.6 is still unclear and may have to do with the fact that this is a Cpanel server.

  4. #4
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default

    Did you enable these 'include' lines by hand or were they already uncommented?

    Because my httpd.conf has them but they are all commented like this:

    Code:
        # To customize this VirtualHost use an include file at the following location
        # Include "/usr/local/apache/conf/userdata/std/2/myuser/mydomain.com/*.conf"

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    71

    Default

    I can't tell you as I didn't do the work. I am just reporting what was done. Sorry.

Similar Threads & Tags
Similar threads

  1. phpMyAdmin broke with 11.25 upgrade
    By hostultra in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-22-2009, 02:43 PM
  2. cPanel/whm PHP upgrade broke server, please help!
    By sagehost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-17-2009, 08:59 AM
  3. Apache/PHP upgrade broke Gallery
    By linkup in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-21-2009, 04:34 PM
  4. Php Extensions and Applications Package enable? can't..
    By Empyrium in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 08-17-2007, 11:33 PM
  5. Replies: 3
    Last Post: 01-02-2006, 11:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube