Question

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
Was it helpful?

Solution

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.

OTHER TIPS

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!)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top