Friday 13 February 2009

Problem with yum update

Following is the error that occurred :
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 1.9 kB 00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Tue Feb 9 08:57:23 2010
Downloaded: Tue Jan 26 09:27:44 2010
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update

Solution :

Run the following two commands :
yum clean all
yum check-update

That should fix the issue.

Tuesday 10 February 2009

How to install Zend Optimizer on a cPanel server?


How to install Zend Optimizer on a cPanel server?

cPanel offers ‘phpextensionmgr’ script through which you can install various extensions. To list the available PHP extensions, execute the command as root
root@LHS [~]# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

To list the available Options and Actions, execute
root@LHS [~]# /scripts/phpextensionmgr –help
Usage:
phpextensionmgr [options] [action] [extension]


Options:
–help       Help message
–prefix     Installation prefix for PHP (normally /usr/local or /usr/local/php4)


Actions:
install      Install or update the extension
uninstall    Uninstall the extension
status       Display the installation status of the extension
list         Show available extensions

To install Zend Optimizer, execute the command
root@LHS [~]# /scripts/phpextensionmgr install Zendopt

To verify whether Zend Optimizer is installed, execute:
root@LHS [~]# php -v

You can install the other available extensions using the same command, just replace ‘Zendopt’ with the extension name you wish to install.