Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-24, 07:05:03

Author Topic: How to install 'pthreads' PHP extension.  (Read 3025 times)

0 Members and 1 Guest are viewing this topic.

Offline ufish

  • Junior Member
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
How to install 'pthreads' PHP extension.
« on: 2015-06-24, 18:09:27 »
Hi there,

I need run multi-threading in PHP, and it need to install the pthreads extension.
http://php.net/manual/en/book.pthreads.php

Please teach me how to install it on kloxo-mr.
Thank you very much.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install 'pthreads' PHP extension.
« Reply #1 on: 2015-06-24, 18:12:58 »
What's the purpose to want php with pthreads?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ufish

  • Junior Member
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to install 'pthreads' PHP extension.
« Reply #2 on: 2015-06-24, 18:31:14 »
What's the purpose to want php with pthreads?.

Need to run a php program to multy check websites status, the pthreads can run multi-threading in PHP, the program can quick run 100000 task with this extension.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to install 'pthreads' PHP extension.
« Reply #3 on: 2015-06-24, 18:38:53 »
By default, Kloxo-MR using php from IUS but no php-pecl-pthreads. Remi repo (also include in mratwork.repo include this module; ready for php 5.4-5.6 in CentOS 6). But no sure, it's compatible with IUS's php or not.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: How to install 'pthreads' PHP extension.
« Reply #4 on: 2015-06-25, 10:38:58 »
You might want to try to install pthreads from pecl.
Install pecl, php-devel and then try 'pecl install channel://pecl.php.net/pthreads'

Be cautious, as i haven't tested it.
Kloxo-MR!

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.067 seconds with 23 queries.

web stats analysis