When you encounter this error while compiling php,

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

use "yum install libtool-ltdl-devel or install mcrypt-devel" to fix the issue.