Results 1 to 10 of 10

Thread: install mongodb in centos directadmin+nginx+php-fpm56

  1. #1
    Join Date
    Jul 2017
    Posts
    3

    install mongodb in centos directadmin+nginx+php-fpm56

    hello

    Is there some way to install MongoDB using Directadmin With directadmin+nginx+php-fpm56?

    Thanks a lot

  2. #2
    Hi,

    Install DirectAdmin with nginx, php-fpm like normal, then install MongoDB using this guide: https://harrytang.xyz/blog/install-m...on-directadmin
    100% Cloud SSD Hosting starting from $1.49

    Now accept Bitcoin payment!

    https://hostingkernel.com

  3. #3
    Join Date
    Jul 2017
    Posts
    3
    Quote Originally Posted by Hosting Kernel View Post
    Hi,

    Install DirectAdmin with nginx, php-fpm like normal, then install MongoDB using this guide: https://harrytang.xyz/blog/install-m...on-directadmin
    i use this

    but get error 500

  4. #4
    Join Date
    Jul 2017
    Posts
    3
    Quote Originally Posted by Hosting Kernel View Post
    Hi,

    Install DirectAdmin with nginx, php-fpm like normal, then install MongoDB using this guide: https://harrytang.xyz/blog/install-m...on-directadmin
    I get this error

    Fatal error: Class 'MongoClient' not found

  5. #5
    Hi,

    Maybe you need an it technician looks into this for you if you still have problem. Anyway I can try it (free of charge), please PM me if you need help.
    100% Cloud SSD Hosting starting from $1.49

    Now accept Bitcoin payment!

    https://hostingkernel.com

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,015
    Hello,

    the guide suggests that you run:

    Code:
    usr/local/php71/bin/pecl install mongodb
    for php 5.6 you should run

    Code:
    usr/local/php56/bin/pecl install mongodb
    the same way you should do for other PHP versions.

    And you should control output of the command, it might be that pecl install command failed. What are the last lines you see?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  7. #7
    Join Date
    Sep 2013
    Posts
    5

    Never use MongoDB at shared hosting servers

    I don't recommend to install MongoDB for the shared hosting purposes at all because MongoDB has huge security issues. MongoDB developers know about it, but either don't understand that it's the vulnerability, or don't care. The issue exists from 2015

    If you need to run some MongoDB sites, use virtualization or docker at least

  8. #8
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,660
    What vurnerability? It is depending on access from outside or even injecting queries from a website?
    Any link/reference?

    Thanks
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  9. #9
    Join Date
    May 2008
    Location
    The Netherlands
    Posts
    1,161
    I also read about this recently: https://www.reddit.com/r/netsec/comm...ity_surprises/

    Setting a correct chmod would seem to help.

    It's all about the chmod I guess, since you can also browse in the mysql data dir; however you can't access the subdirs (but you can see the database names).

    Even in CloudLinux you can see the MySQL files in CageFS by default; personally I move the sql data dir outside it and only leave mysql.sock inside it.
    ~ Arieh

  10. #10
    Join Date
    May 2008
    Posts
    484
    There was a big hack in January: http://thehackernews.com/2017/01/mon...-security.html

    As it was huge, it left the impression that MongoDB is very insecure. It's more like that the admins that are installing MongoDB are inexperienced, not that MongoDB is insecure. But yes, sorry for the word but the MongoDB documentaion sucks - it teaches you to install it in a very insecure way! And that's not a new problem - it exists since the beginning of the project. There were big hacks against MongoDB databases back in 2015 too and it was because of the same problem - not vulnerabilities but insecure installations.

    So if you are installing MongoDB, don't just follow the tutorials in the docs. Be prepared to dig deep in permissions of all files and manually configure everything.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •