Installing Expect on WHM/CENTOS

This is an installation procedure that would work on 5.6 PHP. Not sure if it would work on higher PHPs.

Go to SSH/putty or whatever you use and install these dependencies.

  1. Install PHP and its Development Framework
yum install php php-devel php-common

2. Install php-pear (PHP Extension and Application Repository)

  yum install php-pear

 To verify whether pear is installed properly or not, type command pear, there you will get

 list of command like discover-channel, upgrade,upgrade-all,if pear is successfully installed.

3. Install Tool command language (TCL) and TK, required for expect package

  yum install tcl tcl-devel tk tk-devel

4. Install Expect package required for php-expect

  yum install expect expect-devel

5. Install php-expect using pecl

  pecl install expect

 sometimes it may give error regarding channel,then use the path mentioned in suggestion like

channel://pecl.php.net/expect-0.3.1
QKu8JzTThDyLyt6nZYs bKmHhR8KKnT8 m29MbajdXx1mn6Wg8Tb0hGKGACwZVCA114grVQzslVZRZOuC4sQ PddL RDfCc9DeVMOroK3bJkridElyfngGQUrqxPjo jt YSsZ p |  Uncategorized |

 After successful installation of expect package, add the following line under extension in

 php.ini file (this will also be shown after successful installation of expect function)

 extension = expect.so

0 0 vote
Article Rating
Author profile

About Maida
She is Zipsite's all around Zipsiter. Only clocks out when she can barely stand. She sings, bakes, and tries so hard to be fit. But don't judge, she can literally strong arm you no problem. She's currently involved with eCorp, Contrib and VNOC, besides being a Brazilian Jiu Jit Su practitioner.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
Total
0
Share this Page

So we promise if you share this page, you get a free social media boost on us 🍺!

 

 

Facebook
Twitter
Google+
Pinterest0
Linkedin0
GMail0
Messenger0
Diigo0
Total
0

Everybody needs a helping hand and we feel that we could all get anything we want, even stop this pandemic, by just reaching out.

 

 

ajax-loader
0
Would love your thoughts, please comment.x
()
x