Magento

https://vuestorefront.io – store front for magento. Magento 2 Magento 2 Enable SSL Magento 2 CLI Install Elasticsearch on Debian for Magento Enable memcached on Magento 2 in Plesk Server Magento 2 Unable to proceed: the maintenance mode is enabled How to Enable Magento 2 Cronjob Magento Disable CDN Magento 2 admin too many redirects error … Read more

CakePHP

After moving CakePHP application from one server to another with different DocumentRoot, site still try to load file from OLD directory. To fix this, delete the file rm tmp/cache/persistent/myapp_cake_core_file_map Once deleted, this file get auto created with new paths.

How to Disable MySQL Strict Mode

To Disable MySQL Strict Mode, edit vi /etc/my.cnf Add under [mysqld] section sql_mode = “” Verify MySQL Strict Mode To check if MySQL is running in strict mode, run SELECT @@sql_mode; You get empty result if MySQL is not running under strict mode. Here is a MySQL server running under strict mode mysql> SELECT @@sql_mode; … Read more

Backup Webite to Amazon S3

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 /backup/$BACKUP_FILE Make the file executable chmod 755 /usr/serverok/backup-daily.sh Set it run everyday with cronjob @daily /usr/serverok/backup-daily.sh > /var/log/backup-daily.log 2>&1 To backup MySQL database, use https://serverok.in/mysqldump-backup See Backup

Docker detach container

Docker container stop once the main program it started with stop running. If you start a docker container with console using -ti option, it stop when you disconnect. To avoid process getting stopped, you can detach from the console. This is done by pressing keys CTRL + P Followed by CTRL + Q You can … Read more

exiqgrep

exiqgrep allows you to search exim mail queue. To search for a particular recipients, run exiqgrep -r EMAIL_ADDR_HERE To search for all emails from a particular email account, use exiqgrep -f EMAIL_ADDR_HERE You can use -i option to list only message id. This is useful when you need to delete mails from a particular account. … Read more

FreeBSD ports Sucks

During 2004, i used to use FreeBSD 4 and 5 servers. During this time Cpanel Control panel supported FreeBSD. After cpanel stopped supporting FreeBSD, all the servers slowly got converted to Linux. I was FreeBSD free for several years. Today i decided to try FreeBSD again. I tried to install node.js from ports to see … Read more

Installing Software with FreeBSD ports

FreeBSD ports allows installing software from source. Update the tree. This will create /usr/ports if missing. portsnap fetch update portsnap extract Updating Index Before you can use ports, you need to fetch index. To do this, run cd /usr/ports make fetchindex Find Software To find software, use cd /usr/ports make search name=php Install a Software … Read more

FreeBSD

Installing Software in FreeBSD with pkg Installing Software with FreeBSD ports Install MySQL 8 on FreeBSD Install Apache/PHP/MySQL on FreeBSD FreeBSD /usr/ports: No such file or directory.

Installing Software in FreeBSD with pkg

pkg command is used to install software in FreeBSD. To update package repo, run pkg update -f Example root@ok-vm:~ # pkg update -f Updating FreeBSD repository catalogue… pkg: Repository FreeBSD has a wrong packagesite, need to re-create database Fetching meta.txz: 100% 940 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 878.0kB/s 00:07 Processing entries: 100% … Read more