I spend far too long search for this each time I have to do it
- cd ~
- Download the PHP source for the version your using (php -i to get version)
- tar -xzf php-source.tar.gz
- cd php-source/ext/mysql
- sudo phpize ./
- sudo ./configure –with-zlib-dir=/usr/include –with-mysql-sock=/var/lib/mysql/mysql.sock –with-libdir=lib64 –with-mysql=/usr/bin
- make
- make install