sponsors:

Centos installation steps for eio and event extensions.


Centos installation steps for eio and event extensions.

Install eio extension

sudo pecl install http://pecl.php.net/get/eio-1.2.5.tgz

Enable internal debugging in Eio [no] : Just hit enter

Do add "extension=eio.so" to php.ini afterwards manually with Your favourite text editor

Install event extention

sudo yum groupinstall "development tools"

Hit y on a question

sudo yum install pecl-event php-devel libevent-devel

Hit y on a question

  • sudo pecl channel-update pecl.php.net

  • sudo yum --enablerepo=remi install openssl-devel

  • wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

  • tar -xzf libevent-2.0.21-stable.tar.gz

  • cd libevent-2.0.21-stable

  • sh ./configure --prefix=/opt/libevent2

  • make && make install

sudo pecl install http://pecl.php.net/get/event-1.10.3.tgz

libevent installation prefix [/usr] : /opt/libevent2
All other questions answer just hit enter

Do add "extension=event.so" to php.ini afterwards manually with Your favourite text editor

sudo /etc/init.d/php-fpm restart (If You have php-fpm apache installation)
sudo /etc/init.d/httpd restart

Do check libraries installed and enabled via console

[10:50 ]-[vagrant@localhost]-[/var/www/libevent-2.0.21-stable]
$ php -i | grep event
229:event
231:Event support => enabled
238:libevent2 headers version => 2.0.21-stable
872:PWD => /var/www/libevent-2.0.21-stable
921:_SERVER["PWD"] => /var/www/libevent-2.0.21-stable

[10:50 ]-[vagrant@localhost]-[/var/www/libevent-2.0.21-stable]
$ php -i | grep eio
219:eio
221:eio support => enabled

or via browser
Create info.php file contains

<?php
phpinfo
();
?>

And You should see there eio and event libraries enabled via browser

You are done.

Trackback URL for this post:

http://itua.name/en/trackback/955
Share this

Syndicate content Syndicate content

Propeople Expert

Партнери

експерименти

Rambler's Top100