IonCube / Zend / PDO / SQLite Errors (when using custom php.ini)

Ioncube error - Site error: the file /home/user/public_html/file.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the site administrator.

To resolve this issue simply add the following to your php.ini file:

zend_extension = "/usr/local/IonCube/ioncube_loader_lin_5.3.so"


Zend Optimiser / Zend Guard Loader error - what to do if your Zend Encoded files aren't displaying properly (usually random shapes/characters).

To resolve this issue simply add the following to your php.ini file:

zend_extension="/usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so"


PDO / SQLite error - Fatal error: Class 'PDO' not found or similar

To resolve this issue simply add the following to your php.ini file:

extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
extension = "pdo.so"
extension = "pdo_sqlite.so"
extension = "sqlite.so"
extension = "pdo_mysql.so"

Upload the php.ini to the folder that the relevant folder that the file(s) your script (requiring the custom settings) is in.

If you put the php.ini file in the wrong folder the changes won't have any effect.


Check this article for instructions on how php.ini files work and how they should be used. Small mistypes can cause your script to completly break.


If you haven't set a php.ini file up then the error is most likely an issue with the script its self or its come with its own php.ini file or because the script was uploaded via FTP with the wrong file encoding type.


Notes: You cannot modify php settings using 'htaccess' due to other security measures in place on the server.

Any changes made to the php.ini file take effect immediately and can be easily undone by removing the settings within the file or by deleting the php.ini file.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
Official cPanel Manual (Views: 2479)
Official WHM Manual (Views: 2251)
PHP Time Zone Errors (Views: 670)