Hello,
We know that mongoDB is not supported in cPanel. But we need to develop a Laravel project with mongoDB and that's why we have installed mongoDB 3.6. Everything is working fine as expected through root user. Below are the mongoDB info:
Only one things we are facing that we are unable to run 'mongo' command via cPanel user terminal, we are getting "-bash: mongo: command not found". Below are the few information of our server, kindly go through and help us.
Installed cPanel Version Details
[email protected] [/]# /usr/local/cpanel/cpanel -V
78.0 (build 20)
==================
Current cPanel Environment:
[email protected] [/]# cat /var/cpanel/envtype
standard
==================
OS Version:
[email protected] [/]# cat /etc/redhat-release
CloudLinux release 7.6 (Vladimir Lyakhov)
Any suggestion would be appreciated.
Thanks,
Tarak Nath
We know that mongoDB is not supported in cPanel. But we need to develop a Laravel project with mongoDB and that's why we have installed mongoDB 3.6. Everything is working fine as expected through root user. Below are the mongoDB info:
Code:
==========
[email protected] [/]# mongod -version
db version v3.6.12
git version: c2b9acad0248ca06b14ef1640734b5d0595b55f1
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
allocator: tcmalloc
modules: none
build environment:
distmod: rhel70
distarch: x86_64
target_arch: x86_64
----------------------------
[email protected] [/]# systemctl status mongod
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-04-18 07:21:47 EDT; 2h 5min ago
Docs: The MongoDB 4.0 Manual — MongoDB Manual
Main PID: 21425 (mongod)
CGroup: /system.slice/mongod.service
└─21425 /usr/bin/mongod -f /etc/mongod.conf
Apr 18 07:21:45 server1.mydomain.com systemd[1]: Starting High-performance, schema-free document-oriented database...
Apr 18 07:21:45 server1.mydomain.com mongod[21423]: about to fork child process, waiting until server is ready for connections.
Apr 18 07:21:45 server1.mydomain.com mongod[21423]: forked process: 21425
Apr 18 07:21:47 server1.mydomain.com mongod[21423]: child process started successfully, parent exiting
Apr 18 07:21:47 server1.mydomain.com systemd[1]: Started High-performance, schema-free document-oriented database.
----------------------------
[email protected] [/]# mongo
MongoDB shell version v3.6.12
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("04a2eb10-8ee6-4ca3-bc7c-55bc00510047") }
MongoDB server version: 3.6.12
Server has startup warnings:
2019-04-18T07:21:45.974-0400 I STORAGE [initandlisten]
2019-04-18T07:21:45.974-0400 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2019-04-18T07:21:45.974-0400 I STORAGE [initandlisten] ** See Production Notes — MongoDB Manual
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten]
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten]
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten]
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten]
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-04-18T07:21:47.098-0400 I CONTROL [initandlisten]
>
==========
Installed cPanel Version Details
[email protected] [/]# /usr/local/cpanel/cpanel -V
78.0 (build 20)
==================
Current cPanel Environment:
[email protected] [/]# cat /var/cpanel/envtype
standard
==================
OS Version:
[email protected] [/]# cat /etc/redhat-release
CloudLinux release 7.6 (Vladimir Lyakhov)
Any suggestion would be appreciated.
Thanks,
Tarak Nath
Last edited by a moderator: