PHP Cheat Sheet
  Table of Contents
  
Chroot’ing PHP
Problem with chroot’d PHP: Can’t find mysql extension.
Solution:
- Make sure mysql.so is in the extension dir. (Use 
php-configto figure out where that is.) - Make sure dependent libraries are there.
 - Make sure 
/usr/local/etc/php.iniexists (or wherever it belongs on the platform). - In 
php.inidefine the extension directory and include this line. 
php.ini:
extension=mysql.so