Error The following PHP extensions are missing: socket

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
joss
Posts: 4
Joined: Fri Jan 18, 2013 11:43 am

Error The following PHP extensions are missing: socket

Post by joss »

Hi guys,
I work on Mageia, i already install php5, apache, mysql as the documentation explained.
http://www.cacti.net/downloads/docs/htm ... httpd.html
But first I didn't find the PHP configuration file at /etc/httpd/conf.d/php.conf
So i don't know it can have an impact or not...

I find this topic, my problem is the same:
http://forums.cacti.net/about32844.html&highlight
When I browser http://localhost/cacti/ it told me:
Error

The following PHP extensions are missing:

sockets

Please install those PHP extensions and retry
But when I use php.info:

Configure Command './configure' '--with-apxs2=/usr/sbin/apxs' '--build=x86_64-mageia-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/lib64' '--localstatedir=/var/lib' '--mandir=/usr/share/man' '--enable-shared=yes' '--enable-static=no' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--enable-inline-optimization' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-pcre-regex=/usr' '--with-pdo-odbc=unixODBC' '--enable-magic-quotes' '--enable-safe-mode' '--with-zlib=shared,/usr' '--with-zlib-dir=/usr' '--with-openssl=shared,/usr' '--enable-libxml=/usr' '--with-libxml-dir=/usr' '--enable-mod_charset' '--without-pear' '--enable-bcmath=shared' '--with-bz2=shared,/usr' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared,/usr' '--without-curlwrappers' '--enable-dba=shared' '--with-gdbm' '--with-db4' '--with-cdb' '--enable-dom=shared,/usr' '--with-enchant=shared,/usr' '--enable-exif=shared' '--enable-fileinfo=shared' '--enable-filter=shared' '--with-pcre-dir=/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--enable-json=shared' '--with-openssl-dir=/usr' '--enable-ftp=shared' '--with-gd=shared,/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--with-gettext=shared,/usr' '--with-gmp=shared,/usr' '--enable-hash=shared,/usr' '--with-iconv=shared' '--with-imap=shared,/usr' '--with-imap-ssl=/usr' '--with-ldap=shared,/usr' '--with-ldap-sasl=/usr' '--enable-mbstring=shared,/usr' '--enable-mbregex' '--with-libmbfl=/usr' '--with-onig=/usr' '--with-mcrypt=shared,/usr' '--with-mssql=shared,/usr' '--with-mysql=shared,/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=shared,/usr/bin/mysql_config' '--enable-mysqlnd=shared,/usr' '--with-unixODBC=shared,/usr' '--enable-pcntl=shared' '--enable-pdo=shared,/usr' '--with-pdo-dblib=shared,/usr' '--with-pdo-mysql=shared,/usr' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pgsql=shared,/usr' '--enable-phar=shared' '--enable-posix=shared' '--with-pspell=shared,/usr' '--with-readline=shared,/usr' '--with-recode=shared,/usr' '--enable-session=shared,/usr' '--enable-shmop=shared,/usr' '--enable-simplexml' '--with-snmp=shared,/usr' '--enable-ucd-snmp-hack' '--enable-soap=shared,/usr' '--enable-sockets=shared,/usr' '--with-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--with-sybase-ct=shared,/usr' '--enable-sysvmsg=shared,/usr' '--enable-sysvsem=shared,/usr' '--enable-sysvshm=shared,/usr' '--with-tidy=shared,/usr' '--enable-tokenizer=shared,/usr' '--enable-xml=shared,/usr' '--enable-xmlreader=shared,/usr' '--with-xmlrpc=shared,/usr' '--enable-xmlwriter=shared,/usr' '--with-xsl=shared,/usr' '--enable-wddx=shared' '--enable-zip=shared' '--with-libzip=/usr'

So I don't know what's wrong with my configuration.

When I make php -m

I don't find sockets in the list, I don't know if it means somethings.

I am not very good with linux and all this stuff, so I hope you can help me. I really need your help!

Thanks you.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Error The following PHP extensions are missing: socket

Post by Linegod »

urpmi php-sockets

Edit: then restart apache
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
joss
Posts: 4
Joined: Fri Jan 18, 2013 11:43 am

Re: Error The following PHP extensions are missing: socket

Post by joss »

It works!!!

Dude I love you, thanks!

I can finally work on my project! Ty dude!
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Error The following PHP extensions are missing: socket

Post by Linegod »

No problem.

Mageia rules :)
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
artfuldodger
Posts: 1
Joined: Wed Jun 26, 2013 2:24 pm

Re: Error The following PHP extensions are missing: socket

Post by artfuldodger »

Guys, I am running SuSE Linux 11 SP2 and I have the same problem.
How do I add the php sockets?

Please could you assist.

Thanks!
vijaysom
Posts: 2
Joined: Fri May 06, 2016 4:41 am

Re: Error The following PHP extensions are missing: socket

Post by vijaysom »

Guys,

i am facing same issue running on SUSE Sp4..
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests