Reputation: 643
I am trying to enable Socket in PHP on linux. I checked php.ini but in that file not getting following line.
;extension=php_sockets.so
Upvotes: 3
Views: 20585
Reputation: 2594
As you have installed php5 libapache2-mod-php5, according to it.
The following extensions are built in: bcmath bz2 calendar Core ctype date dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib.
Upvotes: 3
Reputation: 71
It does not need external module. check phpinfo() result to see if PHP compiled with --enable-sockets or not! (if you installed it using apt-get or software center of Ubuntu, It must be ok yet!)
Upvotes: 1