The situation as changed. I created a brand new VM with Ubuntu 14.04, the Debian was way too broken to clean it up and it seems that Ubuntu community is stronger than Debian for documentation and help.
Alright, so here are the steps I followed : 1.) aptitude update && aptitude upgrade 2.) aptitude install apache2 3.) a2enmod rewrite 4.) change /etc/apache2/sites-available/000-default.conf, added the <Directory .. directive with AllowOverride All> 5.) service apache2 restart (website works) 6.) aptitude install mysql-server (connect successfully to mysql) 7.) add password for mysql-server, twice 8.) aptitude install php5 php-pear phpunit php5-cli php5-gd php5-mcrypt php5-intl php5-mysql php5-curl php5-dev 9.) wget -O couchbase.key http://package.couchbase.com/ubuntu/couchbase.key 10.) apt-key add couchbase.key 11.) add, in /etc/apt/sources.list file, the couchbase repo URL 12.) aptitude update (see the couchbase link works) 13.) aptitude install libcouchbase2-core libcouchbase-dev libcouchbase2-bin libcouchbase2-libevent 14.) pecl install couchbase (works, says to add extension=couchbase.so in php.ini) 15.) create a file in /etc/php5/mods-available/couchbase.so 16.) add "extension=couchbase.so" in it 17.) create a symlink in /etc/php5/apache2/conf.d such as ln -s ../../mods-available/couchbase.ini 30-couchbase.ini 18.) reboot Now, the page doesn't show anything, and I've got a [core:notice] [pid 994] AH00051: child pid xxxx exit signal Segmentation fault (11), possible coredump in /etc/apache2 I followed some thread in stackoverflow that say to use gdb. In those, it was question of a dump that could be generated to follow the tracestack php is doing. I may understand that I need a CoreDumpDirectory that is only available with apache2-mpm-itk. But I think I've misunderstood. Anyway, I installed apache2-mpm-itk, when I comment the extension=couchbase.so in /etc/php5/mods-available/couchbase.ini file, the site loads. Oh, I forget. I've created a single PHP file with these line of codes : $c = new CouchbaseCluster('couchbase://ip.add.re.ss:8091'); $b = $c->openBucket(); var_dump($b); die('there'); When I've tested without the couchbase.ini mods, I replace $b with $b = ['a' => 'b'];, and it var_dump properly. On Friday, April 17, 2015 at 3:15:20 PM UTC-4, André Jacques wrote: > > Hi, > > My setup : Debian 7.7 (Linux herpderp.ca 3.2.0-4-amd64 #1 SMP Debian > 3.2.54-2 x86_64 GNU/Linux), PHP 5.4.36 > > I tried to install the PHP SKD in my Debian VM, install libevent-dev, > compile libcouchbase and php-couchbase too. When I try to instantiate a > Couchbase class, PHP tells me it doesn't exists. Couchbase module is > nowhere to be found in *php -m* and *php -v *return this error, twice : > > *PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php5/20100525/couchbase.so' - libcouchbase.so.1: cannot open > shared object file: No such file or directory in Unknown on line 0* > > I moved my couchbase.so file in /usr/lib/php5/20100525/ and set mode > without x (like all the other so file in this folder). Any idea? > > A. Jacques > -- You received this message because you are subscribed to the Google Groups "Couchbase" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
