# wget http://pecl.php.net/get/expect-0.3.1.tgz # tar zxvf expect-0.3.1.tgz # cd expect-0.3.1 # phpize # ./configure # make # make install
# yum install expect-devel tcl-devel
echo 'extension=expect.so' > /etc/php.d/expect.ini
/etc/init.d/httpd configtest /etc/init.d/httpd reload