Connect mongo Db with Cockpit

415 views
Skip to first unread message

Web Wizard

unread,
Dec 19, 2019, 2:07:27 PM12/19/19
to mongodb-user
Hello Guyz,
I am trying to connect Cockpit with mongo db. byt default cockpit supports sqlite.

While i am trying to connect it using config.php file, I am getting 500 error.
    'database' => [   
        'server' => 'mongodb+srv://develoepr:DeveloperM3!@.mongodb.net/cockpitcms?ssl=true&retryWrites=true&w=majority',
        'options' => [
            'db' => 'cockpitcms',
'ssl' => true,
        ]
    ],


Please help me with this

Stennie

unread,
Dec 19, 2019, 2:25:41 PM12/19/19
to mongodb-user
On Friday, 20 December 2019 06:07:27 UTC+11, Web Wizard wrote:
I am trying to connect Cockpit with mongo db. byt default cockpit supports sqlite.

While i am trying to connect it using config.php file, I am getting 500 error.

Hi,

A 500 error is a generic internal web server error that doesn't provide any insight into your application issue.

You need to enable error reporting for your dev environment or script to see a more informative description. Since Cockpit uses PHP, you should be able to adjust the error_reporting() to show all errors in your dev environment. It looks like Cockpit also has a debug option in its config which should be enabled by default if you are accessing via localhost or a .local url.

For questions about configuring and using Cockpit CMS, you are likely to find more specific expertise in their community forum: https://discourse.getcockpit.com.

Regards,
Stennie
Reply all
Reply to author
Forward
0 new messages