Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Sat Dec 20, 2014 5:58 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: The following PHP extensions are missing: * sockets
PostPosted: Wed Jun 03, 2009 1:56 pm 
Offline

Joined: Wed Jun 03, 2009 1:15 pm
Posts: 5
Trying to get Cacti going on my CentOS5 box.

Have running
Apache2
PHP5
MySQL5

When I access http://localhost/cacti/ I get the following message on my browser, neither apache nor mysql nor the system report any issues in the logs.

Error

The following PHP extensions are missing:
* sockets
Please install those PHP extensions and retry

Any ideas as to how to correct this problem....


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 03, 2009 3:53 pm 
Offline

Joined: Thu Oct 18, 2007 1:34 pm
Posts: 3
Location: Chapin, SC USA
I had to recompile PHP to get it to work. I was jumping from 0.8.6j all the way to 0.8.7d on an old RHEL 4 install in this case, but I had the same problem on a CentOS 5 box. I think PHP had previously been installed from source on the RHEL box; it's something I inherited rather than built myself.

In the ./configure step building PHP, append --enable-sockets to whatever your ./configure command line was before.

I found out what the config used was by creating a file called phpinfo.php in Apache's root directory. The contents of that file consist of:

<?php phpinfo(); ?>

Then go to the URL http://yourserver/phpinfo.php and it should tell you up at the top what the config string was.


Top
 Profile  
 
 Post subject: The following PHP extensions are missing: * sockets
PostPosted: Thu Jun 04, 2009 12:15 pm 
Offline

Joined: Wed Jun 03, 2009 1:15 pm
Posts: 5
That worked!!!
thank you!!!
I had to append --enable-sockets at the beginning of ,.configure and then the rest of my options....

thanks again!


Top
 Profile  
 
 Post subject: Re: The following PHP extensions are missing: * sockets
PostPosted: Mon Jun 25, 2012 4:51 am 
Offline

Joined: Thu Jun 21, 2012 8:23 am
Posts: 7
i could not understand what should i do?

php info shows ;

'../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib64' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'


Top
 Profile  
 
 Post subject: Re: The following PHP extensions are missing: * sockets
PostPosted: Mon Jun 25, 2012 7:43 am 
Offline

Joined: Thu Oct 18, 2007 1:34 pm
Posts: 3
Location: Chapin, SC USA
The configure string shows what options were turned on when PHP was compiled. The PHP you're using was built without sockets. You need to recompile PHP, with the same options it had before, and add sockets while you're at it.

I don't know how familiar you are with compiling software, but generally, you download and unpack the source code, configure the options (in your case, it'll be something like "./configure --enable-sockets --prefix=/usr --datadir=/usr/share/php5..." plus everything else in the configure string you posted) , compile it, then install it.


Top
 Profile  
 
 Post subject: Re: The following PHP extensions are missing: * sockets
PostPosted: Wed Jul 18, 2012 3:57 am 
Offline

Joined: Wed Jul 18, 2012 3:49 am
Posts: 3
but I still get the error even I compile with --enable-sockets option. I use php -m and I can see the sockets is in.
I restart the http service ,doesn't work. I try add a line extension=sockets.so or extension=/usr/local/xxx/sockets.so
it still doesn't work.

why?


Top
 Profile  
 
 Post subject: Re: The following PHP extensions are missing: * sockets
PostPosted: Sun Jul 22, 2012 3:23 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Did you restart httpd, then?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group