Install MongoDB for PHP Laravel
At this moment, php-mongodb support PHP7.2 for Laravel. You need to change PHP-cli to 7.2 (my server use OpenLiteSpeed): Depend on your server OS, your commands like as: Add “extension=mongodb.so” to php72 config (php.ini). Restart your php server: For OpenLiteSpeed: systemctl restart lsws In your project folder, run:
Quick install MongoDB on Centos 8/ Rocky Linux in 1 minute
In Centos/ Rocky Linux terminal, run all bellow command: You can connect your DB by MongoDB Compass app in manual Change your MongoDB port and bind IP in: /etc/mongod.conf
Automated Database Backup (MariaDB, MySQL) on RHEL/Linux using Cron Job?
Have you thought about continuous database backup? Perhaps using the Control Panel is the choice of many people. But it will not be optimal in case you want to customize the backup file name. Or your server only runs MySQL, MariaDB (without Control Panel, no PHP,…). I will show you how to Automated Smart Database…