Hello, gentlemen. )

I want to raise PHPDaemon on Centos 6, everything seems to be done, but it was not there ... I can not start PHPDaemon, I swear at the - PECL eio event. Versions of eio and event are fresh, a couple of days I am looking for a solution to the problem, but something is not suitable.

# sudo phpd start --verbose-tty=1 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/event.so' - /usr/lib64/php/modules/event.so: undefined symbol: php_sockets_le_socket in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/eio.so' - /usr/lib64/php/modules/eio.so: undefined symbol: php_sockets_le_socket in Unknown on line 0 [PHPD] FS: missing pecl-eio >= 1.2.1. Filesystem I/O performance compromised. Consider installing pecl-eio. `pecl install http://pecl.php.net/get/eio-1.2.1.tgz` [PHPD] Loaded config file: 'conf/conf.d/ExampleJabberBot.conf' [PHPD] Loaded config file: 'conf/conf.d/FastCGI.conf' [PHPD] Loaded config file: 'conf/conf.d/FlashpolicyServer.conf' [PHPD] Loaded config file: 'conf/conf.d/HTTPServer.conf' [PHPD] Loaded config file: 'conf/conf.d/IdentServer.conf' [PHPD] Loaded config file: 'conf/conf.d/SSL-sample.conf' [PHPD] Loaded config file: 'conf/conf.d/WebSocketServer.conf' [PHPD] Loaded config file: '/usr/local/phpdaemon/conf/phpd.conf' [PHPD] [EMERG] event extension >= 1.6.1 not found (or OUTDATED). You have to install it. `pecl install http://pecl.php.net/get/event-1.6.1.tgz` 

Please tear)))) Tell me, guys, how to cure this thing. )) Thank you in advance. )

Update

Before I started the installation, I updated PHP from 5.3 to 5.6, something I suspect is incorrect update, because the server is not currently used, I allowed myself to completely demolish everything and install everything I need, fresh to clean, without any updates old versions, I hope the problem will be solved.

There are many different installation instructions for PHPDaemon on the web, but somehow everyone writes everything in their own way, share a link to the verified installation instructions, if it's easy.

  • @ Alexey II; To format a code, select it with the mouse and click on the {} button of the editor. - user31688
  • suppose i need libevent - etki
  • @ AlekseyII, Try to write more detailed questions. Explain what you see the problem, how to reproduce it, etc. - Nicolas Chabanovsky
  • Good afternoon, updated the question. - AlekseyII

1 answer 1

So solved the problem:

one)

 wget http://pecl.php.net/get/event-2.1.0.tgz tar zxvf event-2.1.0.tgz phpize && ./configure -with-php-config=/usr/bin/php-config make && make install 

2) add "extension = event.so" to php.ini 3)

 /usr/bin/env php -m|grep event и php -v Получил: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pecl.so' - /usr/lib/php5/20131226/pecl.so: cannot open shared object file: No such file or directory in Unknown on line 0 event 4) Открыл /etc/php5/mods-available/pecl.ini для редактирования а) закомментировал строку с вызовом модуля: ;extension=pecl.so б) затем после этой строки добавил 2-е строки с вызовом модулей: extension=raphf.so extension=http.so в) в /etc/php5/mods-available/raphf.ini закоментировал вызов модуля: ;extension=raphf.so. Это нужно для того, чтобы модуль raphf.so вызывался раньше http.so, если не вызывать до http.so то будет другая ошибка появляться: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/http.so' - /usr/lib/php5/20131226/http.so: undefined symbol: php_persistent_handle_abandon in Unknown on line 0) 
  • I forgot to clarify that the zero point (that is, before point No. 1) executed the command: - Oleg Kuznetsov
  • "pecl uninstall event". In principle, after you can use another installation method try - with the command "pecl install event eio" - most likely the installation will go well (I did not try it myself) - Oleg Kuznetsov