You can follow below steps to install PHP expect module with PECL:
First of all you have to install below yum packages with below command:
yum install expect expect-devel expectk tcl tcl-devel tk tk-devel
After installing all above packages you can go to WHM for further steps:
WHM > Software...