Running couchbase with Wamp - sharing info
Posted by: bas.vijfwinkel (---.ap124.ftth.ucom.ne.jp)
Date: August 12, 2014 09:17AM

I don't know where to post it but I hope this saves somebody the trouble of figuring on his own:
Just woudl like to add some indications to get Wamp working with Couchbase.

The couchbase php client for windows fails silently without any indication what might be wrong when trying to run it from Apache/PHP directly. Not a single error in the apache error log.

I presume you succesfully installed the couchbase server (check the web interface!) and
wamp server has been installed correctly.

1. check what client version you needv(32 bits or 64 bits) :
goto localhost and click the phpinfo() link in the tools section (on the default wamp start up page)
if you don't have that anymore just write a php file with <?PHP phpinfo() ;?>
The Architecture field tells you if you need the x86 or the x64 version.

2. download the correct version from the pecl page
[pecl.php.net]
The files are in the DLL-list section.
(Note : Check the "PHP Client Library" page if the link above is still up to date:
[www.couchbase.com] )

3. extract the files from the archive you downloaded

4. copy libcouchbase.dll to your windows/system32 folder

5. copy php_couchbase.dll to your php extension folder
(probably : c:/wamp/bin/php/php_your_version/ext)

6. open the php.ini file for Apache :
c:\wamp\bin\apache\apache_your_version\bin\php.ini
copy the contents from couchbase.ini to your php.ini file

7. change extension=couchbase.so to extension=libcouchbase.dll
and save it

8. if you use the CLI version of PHP, be aware there is another php.ini
open c:\wamp\bin\php\php_your_version\php.ini
copy the contents from couchbase.ini to this php.ini file
change extension=couchbase.so to extension=libcouchbase.dll
save it.

9. restart Apache.
10. Take a look at yout phpinfo output and check if a couchbase section is present.
11. For the php-cli version run 'php -m' from the command line and check if the couchbase module is loaded.

Errors you might see:
Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/couchbase.so'
you forgot to rename the extension in the php.ini file(s)
Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12ext/php_couchbase.dll'
php_couchbase.dll has not been copied correctly to the ext folder or libcouchbase.dll has not been copied to the windows/system32 folder

Options: ReplyQuote
Re: Running couchbase with Wamp - sharing info
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 12, 2014 01:00PM

Thanks for this.

Can you check one thing though, do you actually need to do this?
Quote

4. copy libcouchbase.dll to your windows/system32 folder

Could you test if it would work without this step.

Also if it does not work without this step would it work with that dll copied to the ....\apache\apachex.y.z\bin folder instead.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Running couchbase with Wamp - sharing info
Posted by: leojen (123.124.163.---)
Date: July 03, 2015 11:38AM

I did all of what u said.but it dosen't work....help! my email:leojen2014@gmail.com

Options: ReplyQuote
Re: Running couchbase with Wamp - sharing info
Posted by: leojen (123.124.163.---)
Date: July 03, 2015 11:43AM

and the error msg is :Failed to create libcouchbase instance .I guess if something wrong with the version ? I need help.
my php is tongue sticking out smileyHP Version 5.5.12

and my couchbase info:
couchbase

couchbase support enabled
version 1.1.4dp1
libcouchbase version 2.1.3
json support yes
fastlz support yes
zlib support no
igbinary support no

Options: ReplyQuote


Sorry, only registered users may post in this forum.