I'm trying to use threads in PHP, so I need to install pthreads. It would be nice if EasyApache would have an option for pthreads. But I couldn't find it, so I tried installing it with the pecl command:
pecl install pthreads
But nothing happened.
Can anyone help me? Has anyone got pthreads working with cpanel?
HOW TO INSTALL IN LINUX SYSTEM'S: C panel With proper rights You can use commands using putty using SSH Shell
1) Download PHP sources and Unpack PHP
2) Download PEAR
3) Download pthreads Get PECL extension (PECL is a repository for PHP Extensions)
4) Unpack pthreads copy pthread-0.4.4 to php/ext
5) Reconfigure sources
You should see the appropriate --enable-pthreads option listed as a result, if you do not, then
6) Build PHP Compile PHP source code Add:
7) Installing PHP
8) Update php.ini
9) Check Modules php -m (check pthread loaded)
10) Test Thread Class # php SimpleTest.php
Check PHP PEAR Packages from your Control panel. and search for available packages. PHP Extension(s) and Application(s) Available for Installation