Giter Site home page Giter Site logo

phpmongodb-1's Introduction

New Versionn is cominng Soon

  • @package PHPmongoDB
  • @version 1.0.0
  • @link http://www.phpmongodb.org ============================================================================================================== Introduction ============================================================================================================== A Tool available for administrative work of MongoDB over Web. It is PHPmongoDB. Available here link. For any support and suggestions, You can write us to [email protected]. Freely available!!!

============================================================================================================== Installation

  1. Install PHP Webserver like APACHE, NGINX, HTTPD if you don't have one
  2. Install MongoDB PHP driver (http://us.php.net/manual/en/mongo.installation.php)
  3. Download the package from https://github.com/phpmongodb/phpmongodb or git clone https://github.com/phpmongodb/phpmongodb.git
  4. Unzip the files where you want to Run your Project.
  5. Open the config.php with your editor, change host, port, admins and so on As per your system. Default given below: -Server Setting 'name' => "Localhost", 'server'=>false, 'host' => "127.0.0.1", 'port'=>"27017", 'timeout'=>0,
    • Make authentication = TRUE for using your MongoDB user and password.
    • Make authorization['readonly'] = TRUE for making your MongoDb readonly.
  6. Visit the index.php in your browser, for example: http://localhost/phpmongodb
  7. Login with admin username and password, which is set "admin" and "admin" as default
  8. Start Playing with your MongoDBs!

============================================================================================================== Upgradation

1.Copy all files excluding config.php to your old version directory 2.Done!

For any help, suggesstions Please submit your Queries to : [email protected],[email protected]

phpmongodb-1's People

Contributors

dineiar avatar nanhe4it avatar nanhekumar avatar pataquets avatar phpmongodb avatar rroossssoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpmongodb-1's Issues

Create 'official' Docker image on Docker Hub

Docker Hub allows you to create Automated Builds from source: https://docs.docker.com/docker-hub/builds/
It would add another packaging/distribution/installation method, whose buildings would be triggered automatically on each commit. It also allows to create different image tags from git tags & branches.
Also, documentation could easily include a canonical docker run statement to quickly spin up a phpmongodb instance with just a single command.

By making the image build via an AB, you give the resulting image verifiability and auditability. Also, the build is fully automatic. You can have the latest image tag build from HEAD and individual image tags from git's release tags.
Some people avoid non-verifiable (manually uploaded) images due to security & traceability reasons.

Docker search command clearly displays AB when listing images (mine is shown):

$ docker search phpmongodb
NAME                      DESCRIPTION     STARS     OFFICIAL   AUTOMATED
pataquets/phpmongodb                    0                    [OK]

Just a free Docker Hub account and a quick setup would do. Ping me if you need help.

(see also #5)

delete document with empty _id

I accidently created a document with empty _id, now I am unable to delete that document. I had to remove it from CLI.

Static assets not downloaded correctly

All links to static assets (CSS, JS) in the index page starts with http://localhost/ regardless of the address the application is really running. Thus, no asset files are downloaded and the application is not working correctly. Might be there a configuration error or a web server settings error (I'm using nginx)? Or is it supposed to run only from the localhost?

Import Not working with User Login

When using a user that has the following roles on the database:

'roles': [ 'readWrite', 'dbAdmin', 'userAdmin', 'clusterAdmin' ]

The import to collection function says: Note: unauthorized

 Cannot create databases

After submitting database name in the blank field, and then show me the success message, but it is not created successfully.

ps. I logged in as the super user, and I can create databases by command line.

JSON formatting isn't correct JSON

When viewing the content of a collection, there's three choices of displaying the data: JSON, Array or MongoCursor. I haven't checked the other two as I don't really know the definitions for it, but the JSON one, does not display JSON data according to the JSON standards. Example of output:

{
    '_id': ObjectId("55d755d46ac2fe071cc919f4"),
    'name': 'Bob the Builder',
    'picture': {
        'url': 'http://example.com/profiles/3.jpg',
        'hash': 'efgh'
    }
}

There's two main problems with this. Strings are encapsulated with single quotes, JSON required it to be double quotes. The ObjectId("sdfsd") is not a valid structure in Json. The correct notation of this example would be:

{
    "_id": { "$id": "55d755d46ac2fe071cc919f4" },
    "name": "Bob the Builder",
    "picture": {
        "url": "http://example.com/profiles/3.jpg",
        "hash": "efgh"
    }
}

Is this project still being actively maintained? Or should I find my own solution? Cheers!

Javacript/jQuery errors, buttons not working

I have just created a database. Within that created a collection. I click on the collection in order to start inserting data, but none of the buttons are working, "Browse", "Insert", "Export", etc.

Opening up Firebug reveals the following errors:

shot-1
Problem is both in latest Firefox and Chrome.

Can't connect to my mongodb instance (not localhost)

I have a server that have a mongodb instance installed and working properly (accessible from CLI). My client machine have a nginx/php-fpm with mongodb driver installed (1.6.0-dev, from phpinfo() ) and all works fine. But I installed phpmongodb on my client machine (to access the server), and have no access to the mongodb instance. I have followed the installation instructions on github, without success.

The message error:

Failed to connect to: 1:27017: Invalid argument

config.php

public static $server=array(
'name' => "MyMongoServer",
'server'=> false,
'host' => "myNetworkIp",
'port'=>"27017",
'timeout'=>0,
);
public static $authentication = array(
'authentication'=>true,
'user' => 'admin',
'password' => 'admin'
);
public static $authorization = array(
'readonly'=>true,
);

Both machines have arch linux installed, and (I checked) iptables are empty on both (for development).

What I'm doing wrong? Any Ideas?

Best regards,

Does not support PHP7

I tried to run on PHP7.1

gives me this message => To make things right, you must install php_mongo module. Here for installation documents on PHP.net.

I already added the correct php mongodb driver.

Export error

On windows export have an error:

Warning: fopen(/tmp/State.json): failed to open stream: No such file or directory in .\mongodb\phpmongodb\system\File.php on line 22

And I suggest to add a Collection export.

Error on exporting Collection

The error shows after exporting a collection using Quick Export method, Error:

Warning: Missing argument 3 for Model::find(), called in /home/admin/web/[REDACTED]/public_html/mgo/application/controllers/Collection.php on line 461 and defined in /home/admin/web/[REDACTED]/public_html/mgo/system/Model.php on line 72

Notice: Undefined variable: query in /home/admin/web/[REDACTED]/public_html/mgo/system/Model.php on line 81

Warning: MongoCollection::find(): expects parameter 1 to be an array or object, null given in /home/admin/web/[REDACTED]/public_html/mgo/system/Model.php on line 81

Fatal error: Call to a member function limit() on null in /home/admin/web/[REDACTED]/public_html/mgo/system/Model.php on line 81

xss vulnerability

At first glance, this project is vulnerable to XSS attacks. I guess it is risky to use this package in production unless some security researchers take a look in the source code.

I have wrote a quick fix for one I've found and will make a pull request shortly.

capture

Doesn't work under HTTPS

Under Debian Wheezy PHP5 I installed the package.
The application is trying to figure out whether to use HTTP or HTTPS, and it doesn't succeed. The page loads but without any CSS and all links are shot as well. Looking at the source I see this for the CSS files:

<link rel="stylesheet" type="text/css" href="<br />
<b>Notice</b>:  Undefined variable: serverProtocol in <b>/some/path/phpmongodb/system/Theme.php</b> on line <b>37</b><br />
slocalhost/phpmongodb.com:443/phpmongodb/application/themes/default/bootstrap/css/bootstrap.css">

Which should be something along the lines of:

<link rel="stylesheet" type="text/css" href="https://localhost/phpmongodb/phpmongodb/application/themes/default/bootstrap/css/bootstrap.css">

Note that there's an S at the beginning of the URL that shouldn't be there, while the HTTP is replaced for an error message. The script links also have an S that shouldn't be there and no protocol.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.