Skip to main content

Posts

Showing posts with the label website

Lets improve Website speed

 Salam All! Today i have the privilege to do some website analysis. The main objective is to improve the current website speed and performance. Well, tbh there's less sale on the website, however the purpose having it available is for reference. Most of the sale transactions happens on Shopee~   First i ran the GTMetrix performance analysis.  https://gtmetrix.com/reports/4nutz.tk/j42YIXSg/  you can see the report completely! here are some screenshots ! fyi im not using any cdn to do the script and image caching, due to my target audience is in Malaysia itself. And the server i deployed is from Singapore.     Steps that i take to improve the speed! Change to only use Webp images! Ive done this step previously, however didnt cater all images. For homepage lets convert all the visible image to webp! Will update from time to time this post! Troubleshoot file loading time Using browser console we can see which scripts taking long time to load then from there we ...

Automate Letsencrypt Certs renewal for Docker with Multisites Wordpress

 Assalamualaikum,  Well to understand this post you will need to read first how i set multiple Wordpress sites in Docker containers ~   LetsEncrypt Certification Auto Renewal   Ok the trick that i did to automate the renewal process is  1. Create 2 separate docker file I'm not able to create a single line letsencrypt command that can run cert renewal for two different domains, thus this is a hack way. If you have any suggestion let me know please!   ls -l wordpress/docker-compose* -rw-rw-r-- 1 cxx cxx 2421 Jun  7 11:32 wordpress/docker-compose-4nutz.yml -rw-rw-r-- 1 cxx cxx 2442 Jun  7 11:28 wordpress/docker-compose.yml For file docker-compose-4nutz.yml small change made on the certbot definition, where i commented out the volumes for another website / kedaibiskut. Highlighted you can just totally remove it. Ensure the command is correct only for one domain and one path. certbot:     depends_on:       - web...

Create Wordpress Website & MySQL Database Backup then Upload to Gdrive

 It's easy to use plugin, but you only need few commands to run :D Usually Wordpress user will just quickly find a plugin to backup the website and its databases. Is it to daunting to do it by ourselves? Photo by Science in HD on Unsplash     I find plugin is easy in certain way, but for an admin myself, i prefer simple command / script to get the job done.  Create database backup This is the command required to run a simple database backup in mysql.p/s you can change the destination path. I put in /tmp because i want to upload to gdrive later.   If you choose to upload to Gdrive Normally a user might just want to backup the file to its host server. For this case i wanted to upload the backup file(s) to Gdrive. And im using a third party Gdrive command client . You might want to checkout tutorial on how to get it installed in your server~   **Use at your own risk! the third party cli will have access and write permission to your Gdrive files!**   I...