Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

XAMPP (windows 7 / 8) does not load Couchbase SDK for PHP

2 replies [Last post]
  • Login or register to post comments
Fri, 02/15/2013 - 13:45
nekkid
Offline
Joined: 02/15/2013
Groups: None

Hi,

it seems not to load the SDKs dll files.
I put these dlls (libcouchbase.dll + php_couchbase.dll) into this folder:
..\xampp\php\ext
added to php.ini these lines:
extension=php_couchbase.dll
extension=libcouchbase.dll
and additionally added the dlls into the windows folder + system32 to be sure...
It still does not load, no error on apache start...

BUT if I try to access to the database with my php script it throws the following error:
fatal error class 'couchbase' not found.

Anyone has an idea how to fix it??

Thanks in advance!

Kind regards,
Nekkid

Top
  • Login or register to post comments
Sun, 02/17/2013 - 07:20
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

Hi,

you shouldn't specify libcouchbase.dll as an extension in php.ini (it is just a library that php_couchbase.dll is linked with. You could try to use an absolute path to php_couchbase.dll to ensure that it is in the seach path for where the php binary tries to look for dlls (if it have a different search order than the system).

I haven't tried to run xampp, but I did try to run this with IIS: http://trondn.blogspot.no/2012/12/iis-php-and-windows.html

Cheers,

Trond

Top
  • Login or register to post comments
Tue, 02/19/2013 - 11:39
nekkid
Offline
Joined: 02/15/2013
Groups: None

XAMPP seems to be a one-way road.

Sounds great with IIS. Never worked with it, but as it seems to be a product of microsoft, there should be some tutorials to get started with.

Thx for the hint, I will post my results as fast as it's possibe :)

Kind regards,
Nekkid

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker