sockets support not enabled in PHP

Bryan Blackburn blb at macports.org
Wed Nov 5 20:13:36 PST 2008


On Thu, Nov 06, 2008 at 11:41:36AM +0800, Михаил А said:
> Hi!
> I Installed:
> $sudo port install apache2
> $sudo port install mysql5 +server
> $ sudo port install php5 +apache2 +mysql5 +pear
>
> registered  PHP 5 with Apache 2:
> $ cd /opt/local/apache2/modules
> $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
>
> And created a php.ini file (which you can edit to configure PHP 5):
> $ cp /opt/local/etc/php.ini-dist /opt/local/etc/php.ini
>
>
> Then I installed the cacti:
> $ sudo port install cacti
>
> and  My cacti.log was littered with the error:
> "WARNING: sockets support not enabled in PHP,falling back to SNMP ping"

Looks like you need to install php5 with the +sockets variant as well.
Uninstall php5, then

sudo port install php5 +apache2 +mysql5 +pear +sockets

Though you might want to run 'port variants php5' first, see if there's
anything else you might want/need.

Bryan


>
> How can I get rid of this message ?
>
>
> Thanks!
> Mihail Artyuhov
> pano.irk at gmail.com
>


More information about the macports-users mailing list