|
I'm able to install pecl solr extension. The shared object file is created at the php extension dir. However, if I include /usr/lib/php5/20121212/solr.so into php-fpm ini, it does not able to load the extension.
I try install phalconphp, another shared object is created at the same php extension dir. Update the php.ini, and the phalcon extension is loaded correctly.
Not sure what could be possible went wrong?
Here are the step to install solr pecl extension pecl install -n solr
pecl list Installed packages, channel pecl.php.net: ========================================= Package Version State solr 1.0.2 stable
SO file (confirm exist) ls -alh /usr/lib/php5/20121212/solr.so -rw-rw-r-- 1 root root 1014K Nov 16 08:46 /usr/lib/php5/20121212/solr.so
ls -alh /usr/lib/php5/20121212/phalcon.so -rwxr-xr-x 1 root root 3.0M Nov 16 08:20 /usr/lib/php5/20121212/phalcon.so
Here is the loaded extension Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => openssl [5] => pcre [6] => zlib [7] => bcmath [8] => bz2 [9] => calendar [10] => ctype [11] => dba [12] => dom [13] => hash [14] => fileinfo [15] => filter [16] => ftp [17] => gettext [18] => SPL [19] => iconv [20] => mbstring [21] => session [22] => posix [23] => Reflection [24] => standard [25] => shmop [26] => SimpleXML [27] => soap [28] => sockets [29] => Phar [30] => exif [31] => sysvmsg [32] => sysvsem [33] => sysvshm [34] => tokenizer [35] => wddx [36] => xml [37] => xmlreader [38] => xmlwriter [39] => zip [40] => cgi-fcgi [41] => json [42] => PDO [43] => apcu [44] => curl [45] => memcache [46] => phalcon [47] => mysql [48] => mysqli [49] => pdo_mysql [50] => readline [51] => mhash [52] => apc [53] => Zend OPcache )
The web server is nginx, which make me wondering the pecl extension only work for apache server? However, this does not sound right, as the solr extension should be loaded in the CLI environment too.
|