Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with MongoDB extension on PHP7. #29

Open
hpolonkoev opened this issue May 9, 2017 · 14 comments
Open

Doesn't work with MongoDB extension on PHP7. #29

hpolonkoev opened this issue May 9, 2017 · 14 comments

Comments

@hpolonkoev
Copy link

Hello guys,

Thank you for your efforts developing the tool.
Unfortunately it doesn't work on my current local configuration. I am getting message

PHP cannot access MongoDB, you need to install the Mongo extension for PHP.

Configuration:

  • PHP 7.0
  • Apache 2..4.18
  • MongoDB 2.4.10

The extension for PHP 7 I am using is mongodb.so (http://php.net/manual/en/mongodb.installation.pecl.php)
After going through your code, it looks like you are only testing if the mongo extension is available. The second test you doing is on the MongoClient and Mongo classes.
MongoClient is deprecated. (http://php.net/manual/en/class.mongoclient.php)
And I am not sure about Mongo, couldn't figure out how to install it.

If you could update your tool to support the latest MongoDB extension and the latest class http://php.net/manual/en/class.mongodb-driver-manager.php, I would apreciate it.

Thanks.

@MongoDB-Rox
Copy link
Owner

This is on the to-do list. Supporting the new MongoDB extension is a big job as the entire syntax has changed, and the only supported-method to continue to use the (substantially more user-friendly) legacy-syntax is to include a userland PHP library, which is not an ideal option for phpMoAdmin since one of the key ease-of-use factors is that it is contained in a single-file.

@hpolonkoev
Copy link
Author

@MongoDB-Rox Thanks and good luck!

@cytopia
Copy link

cytopia commented May 25, 2017

I would also vote to go for the new php extension.

@nhanledev
Copy link

Any update guys? I have the same problem and hope this awesome tool can run on PHP 7.

@Santana1053
Copy link

+1

2 similar comments
@re8260
Copy link

re8260 commented Nov 28, 2017

+1

@morozovsk
Copy link

+1

@mpql
Copy link

mpql commented Feb 5, 2018

Honestly, having libraries isn't a big deal. 2 files is better than 0 working files, and plenty of upstanding projects include libraries -- better to use something tried and true than unnecessarily reinvent the wheel. Besides, it's the recommended method from mongodb themselves.

In any case, the joke with Debian is that while secure, "your packages are outdated by a year or more." Current Debian stable has us on PHP7, and if we're talking ease-of-use, dropping and extracting an archive is a lot easier than the thing not working. :P

(Best of luck with everything!)

@X25guru
Copy link

X25guru commented Jul 12, 2019

still doesnt work with php 7. Mark this as a dead project.

@simonschaufi
Copy link

simonschaufi commented Jul 23, 2019

As this project is dead, I can recomment some desktop clients:

@mpql
Copy link

mpql commented Jul 23, 2019

That is really helpful, thank you, @simonschaufi!

@niccottrell
Copy link

There's always MongoDB Compass Community version if you want an officially supported tool

@ali-khalili
Copy link

I forked the project here to make it work with PHP7 and mongodb/mongodb package (so, one requires to install package with composer). The overall functionalities seem to work now.

@SamuelTallet
Copy link

Here are some alternatives to phpMoAdmin:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests