-
Notifications
You must be signed in to change notification settings - Fork 3
Installation
Payden Sutherland edited this page Dec 8, 2013
·
2 revisions
- libevent
- libwebsock
- openssl (optional)
- libevent_openssl (optional)
The library requires libwebsock, which in turn requires libevent. If you would like your server application to accept secure connections using SSL you must also have the openssl library and libevent_openssl. libevent_openssl is made available as a part of the libevent package. It comes as a separate library so that one does not have to link against OpenSSL if SSL is not required.
git clone https://github.com/payden/php-ws.git && cd php-ws
sudo apt-get update -qq
sudo apt-get install -qq build-essential libevent-2.0-5 libevent-openssl-2.0-5 libevent-dev php5-dev php5-cli
./install-libwebsock.sh && phpize && ./configure && make && sudo make install
After installation be sure to add "extension=ws.so" to your php.ini.
Check php-ws is enabled:
payden@celduin:~/php-ws$ php -i | grep -i websock
WebSocket support => enabled
libwebsock version => libwebsock 1.0.4
payden@celduin:~/php-ws$