CakePHP
After moving CakePHP application from one server to another with different DocumentRoot, site still try to load file from OLD directory. To…
After moving CakePHP application from one server to another with different DocumentRoot, site still try to load file from OLD directory. To…
Create file mkdir /usr/serverok/ vi /usr/serverok/backup-daily.sh Add #!/bin/bash BACKUP_FILE=”backup-`date +%Y-%m-%d`.tgz” /bin/tar –exclude-tag-under=no-backup -zcvhf /backup/$BACKUP_FILE /var/www/html/ aws s3 cp /backup/$BACKUP_FILE s3://S3_BUCKET_NAME/ rm -f…
logrotate is a program to rotates logs. This is run daily using cronjob /etc/cron.daily/logrotate Logrotate config files are stored in /etc/logrotate.d/ To…
To install npm on Ubuntu, run apt install npm To install a node package, run npm install mongodb@2.2 –save How to change…
To find latest MongoDB version, see https://docs.mongodb.com/manual/release-notes/ To install MongoDB 3.6 on CentOS 7, create file vi /etc/yum.repos.d/mongodb-org-3.6.repo Add [mongodb-org-3.6] name=MongoDB Repository…
To restore backup, login to R1Soft Server Backup Manager. Go to Protected Machines. This page will list all available servers. Click on…
To install GeoIP Apache module on CentOS 7, run yum -y install GeoIP GeoIP-devel GeoIP-data yum -y install mod_geoip Now you need…
Restart php-fpm in Cpanel Server Enable Error Logging in php-fpm CentOS 7 Apache use PHP-FPM
To get list of all available timezones, run Example You can use the following command to set the timezone Example To set…
Sendy cronjob */5 * * * * /usr/bin/curl –silent https://URL/scheduled.php &> /var/log/sendy.log Or */5 * * * * /usr/bin/php /var/www/html/scheduled.php > /dev/null…
To install fail2ban on Deban/Ubuntu, run To enable fail2ban start on boot and start it To view the status To resart fail2ban
To install fail2ban on CentOS, first, enable the epel repo by running Now install fail2ban with Enable fail2ban with Basck to fail2ban