Sandy8086
Sandy8086

Reputation: 643

How to enable Socket in PHP 5.3.10 on Ubuntu 12.04 System

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

Answers (2)

Vinay
Vinay

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

Sadeq
Sadeq

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

Related Questions