P r o f e s s i o n a l — M a n a g e m e n t — S o l u t i o n s
RSS icon Email icon Home icon
  • Update to PHP5 on CentOS 4.5 ( plesk )

    Posted on November 27th, 2008 Admin No comments

    One nice thing about CentOS is the long support life and stability of the system. One not so nice thing is that because it is based on Red Hat Enterprise, the package selection is pretty conservative. That’s not too bad though, Apache is 2.0.52, MySQL is a 4.0.x version, so things are reasonably current. One thing that’s really dated though is PHP (4.3.x)… We have been using PHP 5 for a while and quite like it, so a PHP 5 package for CentOS would be nice. Good news though is that one already exists, its in the CentOSPlus repository.

    To enable CentOSPlus edit /etc/yum.repos.d/CentOS-Base.repo. After [centosplus] heading, you’ll see a line that currently says “enabled=0. Change that to “enabled=1″ to enable CentOSPlus. Once the CentOSPlus repo is enabled, “yum update php” will search the repository and offer to upgrade any packages to newer versions from CentOSPlus. If you had PHP installed previously, this will upgrade you to PHP 5.1.x.

    Once you’ve got php 5 and the php-pgsql package installed, check the “extension_dir” setting in php.ini, make sure the directory exists and the pgsql.so file is in that directory. Mine is set to “/usr/lib/php/modules”, so that’s where the .so files will be installed by default. If yours isn’t set to that directory then it might be easier to change the extension_dir rather than move the .so’s.

    Make sure the line “extension=pgsql.so” appears somewhere either in php.ini or one of the /etc/php.d/*.ini files. This will force PHP to load the pgsql extension.

    For ex. If update missed GD here is what you need to do

    Installing the GD library is easy on CentOS thanks to yum.  Simply type:

    yum install gd gd-devel php-gd

    make sure /etc/php.d/gd.ini the extension is enabled

    Thats all. If you have trouble updating php on Centos with Plesk please contact our support department support@24×7servermanagement.com for help.

    Share/Save/Bookmark

  • PHP error “The component version on the server does not satisfy the site application’s requirements”

    Posted on July 9th, 2008 Mark No comments

    Some applications from Application Vault may not support PHP5 and may not work correctly with PHP 5. If PHP 5 support is not officially featured by this application vendor, then PHP dependency is set to 4.x for this application in Plesk..
    Read the rest of this entry »

    Share/Save/Bookmark