let’s say you’re going to connect to mysql database server but the database not open to public (security reason), there is workaround to perform this…
Continue reading [Linux] Connect to Mysql through SSH Tunnel
Comments closedIndonesian Magento Developer
let’s say you’re going to connect to mysql database server but the database not open to public (security reason), there is workaround to perform this…
Continue reading [Linux] Connect to Mysql through SSH Tunnel
Comments closedinstall required library apt install libnss3-tools -y download, give permission & copy/move to bin folder: wget https://github.com/FiloSottile/mkcert/releases/download/v1.1.2/mkcert-v1.1.2-linux-amd64chmod +x mkcert-v1.1.2-linux-amd64cp mkcert-v1.1.2-linux-amd64 /usr/local/bin/mkcert Generate local CA sudo…
Continue reading [Ubuntu] Setup https on localhost
Comments closedjust an example, upgrade php cli version to php 7.1, make sure you have sudo right sudo rm /usr/bin/php sudo ln -s /opt/plesk/php/7.1/bin/php /usr/bin/php or…
Continue reading [Linux]Change PHP Cli Version
Comments closedfirst to view current number of connection, use this command ss -p | grep nginx | grep -i estab | wc -l if the number…
Continue reading [Linux/Nginx]Block unwated bot
Comments closedfor failed login attempt, use this awk ‘/Failed/ {x[$(NF-3)]++} END {for (i in x){printf “%3d %s\n”, x[i], i}}’ /var/log/auth.log | sort -nr and then for…
Continue reading [Linux] How to list IP who successful & failed login into server by ssh
Comments closedyou already modified /etc/default/varnish, but still not working? then you have to edit following file nano /lib/systemd/system/varnish.service change : ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80…
Continue reading Fixed Varnish Issue, not listen on port 80 (Ubuntu)
Comments closedssh -i yourkey.pem serverusername@server-ip filezilla : Edit (Preferences) > Settings > Connection > SFTP, Click “Add key file” that’s it
Continue reading Ubuntu : SSH Login with pem file
Comments closedTo filter Payment Method Options we can use observer, i assume you have knowledge of Magento module development, anyway let’s begin on config.xml, register an event…
Continue reading Filter Payment & Shipping Method on Checkout Page
Comments closedEdit /etc/ssh/sshd_config and make sure to add the following at the end of the file: Match group groupsftp ChrootDirectory %h X11Forwarding no AllowTcpForwarding no ForceCommand…
Continue reading Create SFTP User on Linux
Comments closedi think this is common problem after development phase, yes, server disk space… usually a developer having problem with this kind issue, especially if your…
Continue reading Linux : Check files & directories size
Leave a Commentwell maybe this is something we needed in the future…to do this, login to your cpanel, go to advance/cronjobs menu let say we will execute…
Continue reading Cpanel: Use Cron jobs to visit a URL
Leave a CommentThis is My Favorite Online Tools to Check Website Performance, help me indentify which part need to optimized: 1. Speed test & performance test: http://gtmetrix.com/ 2. Http…
Continue reading My Favorite Online Tools to Check Website Performance
Leave a Commenthere you go!! echo Mage::app()->getLayout() ->createBlock(‘checkout/cart_sidebar’) ->setTemplate(‘checkout/cart/mini-cart.phtml’) ->toHtml();
Continue reading Magento: Directive for Mini Cart
Leave a Commentcommand: mysqldump -u[username] -p[password] [databasename] | gzip > [filename].sql.gz example: mysqldump -uadmin -padm1n magentos | gzip > db_magentos.sql.gz another option: mysqldump < mysqldump options> |…
Continue reading Linux: Mysqldump with compression file result
Leave a Commentquick command to create and extract tar archive in Linux Shell: create tar: tar -cvf name.tar /path/to/directory extract tar: tar -zxvf name.tar
Continue reading Linux: Create & Extract Tar Archive Syntax
Leave a Comment