Month: January 2022

[Node.js] Cheat Sheet

Install NVM on Ubuntu 20.04 curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.profile https://tecadmin.net/how-to-install-nvm-on-ubuntu-20-04/ NVM frequent commands nvm install –lts node -v npm -v Send email https://www.w3schools.com/nodejs/nodejs_email.asp Set up 2FA and app password for your Gmail account. Install PM2 on Ubuntu 20.04 npm install pm2 -g PM2 frequent commands pm2 start app.js Check logs pm2 logs https://pm2.keymetrics.io/docs/usage/log-management/#:~:text=Log%20files%20are%20located%20in,pm2%2Flogs%20.

How to set up Bitnami WordPress in AWS LightSail

In this tutorial, you can achieve Set up a Bitnami WordPress in AWS LightSail Set up a basic Bitnami configuration sudo vi /opt/bitnami/php/etc/php.ini post_max_size=1024M  upload_max_filesize=1024M memory_limit=2048M sudo vi /opt/bitnami/php/etc/php-fpm.d/www.conf pm=ondemand sudo /opt/bitnami/ctlscript.sh restart define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);