I recently had a few errors in my httpd error log on a new CentOS 6 server – here I will list the errors as well as how to fix them.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/timezonedb.so' - /usr/lib/php/modules/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0
To fix this error I needed to run two commands on my server:
pecl install timezonedb
When running this command I got the following error:
sh: phpize: command not found
to fix that I needed to install php-devel
yum install php-devel
The run the pecl command again
pecl install timezonedb
Then I also had this error in my httpd error log on my Centos 6 server:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/memcache.so' - /usr/lib/php/modules/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
To fix that I needed to install the memcache client
pecl install memcache
Then I also had this error in my httpd error log on my CentOS 6 Server:
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.3.so: /usr/local/ioncube/ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory
To fix this I needed to install ioncube_loader on my server – run the following commands
cd ~
For 32 Bit server run:
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar -xf ioncube_loaders_lin_x86.tar.gz
For 64 Bit server run:
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xf ioncube_loaders_lin_x86-64.tar.gz
Then cd into the folder
cd ioncube
Then lets make the appropriate dir to move the files to
mkdir /usr/local/ioncube/
Then we move the files to the folder – its best to move the 5.2 file as well
mv ioncube_loader_lin_5.3.so /usr/local/ioncube/ioncube_loader_lin_5.3.so
mv ioncube_loader_lin_5.2.so /usr/local/ioncube/ioncube_loader_lin_5.2.so
Then just restart apace
service httpd restart