How does one easily add posix support to PHP using yum?

37,320

Solution 1

You can try and see if it's in the testing repository.

To see if it's in that repository.

yum --disablerepo=\* --enablerepo=c5-testing list available \*php\*

And to install it.

yum --enablerepo=c5-testing install php-posix

Be aware though, that the PHP version it needs may be higher than you currently have.

Solution 2

While the question was for centos, notice that for fedora the php-posix package is provided by php-process from fedora 11. I assume this change also will hit centos at some point.

Solution 3

This work for me where I have problem with symfony.

http://blog.myee.web.id/warning-the-posix_isatty-is-available-failed-install-and-enable-the-php_posix-extension-used-to-colorized-the-cli-output/

I Hope work for you. thanks

Share:
37,320
Kyle
Author by

Kyle

doing something new now. previously head of engineering for Parade (yourparade.com) from launch to $140m+, cofounded 2 companies before that

Updated on April 18, 2020

Comments

  • Kyle
    Kyle about 4 years

    I am running CentOS 5.2 and using yum to manage packages. I have had little luck installing php-posix but know with almost 100% certitude that it is a real and available package...somewhere. Has anyone had luck installing it?

    FWIW, I am using the following:

    sudo yum install -y php-posix

    Update: I've realized that this may be an issue with my host (Slicehost) as I do in fact have cli, posix, and pcntl enabled for my PHP version (5.2.9)

  • Kyle
    Kyle about 15 years
    Thanks for this, but sadly, c5-testing doesn't have it either. Might have to use the RPM, but man, what a nightmare.
  • Tony Miller
    Tony Miller about 15 years
    Yes. The URL is: dev.centos.org/centos/5/CentOS-Testing.repo which you can (as root) cd /etc/yum.repos.d && wget dev.centos.org/centos/5/CentOS-Testing.repo
  • Kyle
    Kyle about 15 years
    Yes, I'm using CentOS 5.2 (Final) and PHP v5.2.9 with cli, pcntl, and posix enabled - yet none of the posix functions are defined.
  • Frosty Z
    Frosty Z almost 13 years
    On RHEL 5: you will have to install package php53 since only a package php53-process exists. On RHEL 6: php-process is directly available.
  • Frosty Z
    Frosty Z almost 13 years
    You can as well use the "Remi Collet" repository blog.famillecollet.com/pages/English-site-introduction to get php-process for PHP 5.3 (for EL5 or EL6).
  • sberder
    sberder over 12 years
    I personally like using the IUS community repository, this repository was created by rackspace guys ans is well maintained with a lot of lamp related packages (php52, php53, mysql50, mysql51, mysql55, etc). As mentioned by @hlovdal, php-process will install php-posix.
  • BenMorel
    BenMorel about 11 years
    That is the correct answer. On Amazon Linux, php-process and php54-process (for PHP 5.4) provide POSIX functions.
  • alex.pilon
    alex.pilon about 11 years
    For CentOS 6.4 POSIX functions can be added by installing php-process. I was just trying to get phpsh to work with php 5.4 on CentOS 6.4 and this thread lead me to this solution.
  • m3nda
    m3nda about 9 years
    what about the epel-repo? it's plenty of software.
  • Alvin Bunk
    Alvin Bunk about 8 years
    Thank you! I had to use yum install php70u-process since I have php 7.0 installed.