Skip to main content

Posts

(Docker Solved) Post-processing of the image failed likely because the server is busy or does not have enough resources ERROR

Hi All!   Photo by Markus Spiske on Unsplash   Post-processing of the image failed likely because the server is busy or does not have enough resources. Encountered this issue, when uploading media files to my 4nutz.tk website! To solve this issue it might comes from PHP setting and Nginx settings. Thus i took the chance to fix both!   Fix PHP settings First i increased the minimum size file upload in PHP settings by introducing new php.ini / uploads.ini file link to local file to the wordpress container  example in docker.yaml file setting.   wordpress:     depends_on:       - db     image: wordpress:5.1.1-fpm-alpine     container_name: anutz_wordpress     restart: unless-stopped     env_file: .env     environment:       - WORDPRESS_DB_HOST=db:3306       - WORDPRESS_DB_USER=$MYSQL_USER   ...

Git push changes to remote repo issue on different port

 Taking security precaution I have changed the SSH access port on my DO droplet. Recently as i have setup the docker Wordpress stack in the droplet an i wanted to keep track the version changes by pushing to git remote repo.      Unfortunately i encountered error.    xxx@ubuntuxxxx:~/wordpress$ git push origin main -v Pushing to git@github.com:aliaramli/xxx-docker.git ssh: connect to host github.com port 10xx: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.   As we can see I'm using verbose flag to troubleshoot the issue, "-v". Error reported that the server unable to connect with github.com server tru port 10xx (i purposely censored the full port number)   to correct the issue i will need to set ssh connection to github server using github supported port which is 22.  eg setup of my ~/.ssh/config file  Host github.com  Port 22 ...

Dockerize Wordpress Stacks for Easy Migration

  Assalamualaikum,    Photo by Campaign Creators on Unsplash   After using Google Cloud free credit   for 3 months, its time to migrate our Wordpress website! I have launched https://4nutz.tk an e-commerce website that sells our own home-brand Natural Nut Butters!  To save money, development was done on Google Cloud Compute Engine, after 3 months running, putting all the contents there! Tracking our own sales, finally its time to migrate.  At the beginning, i don't want to put so much effort in running it up, used Bitnami image to run the Wordpress. Everything was easy and breezy! But aware of the time limit, yes we need to migrate eventually. Because the Google Cloud pricing is too expensive for me! $20 per month? kidding me.  Running the website on Digital Ocean is much cheaper $5 per month! Register using my referral link ya! you will get free $100 credit for 2 months! gets your hands dirty and start running you own web app / projects~ Ive b...

Restoring Database and Wordpress Site

  Command based Restoring Database and Wordpress Site First you need to have the backup files ready. Visit my recent post on how to backup database and wordpress site .   Photo by Carl Heyerdahl on Unsplash   Restore DB Having the backup files ready, following below steps to restore it properly. Ensure MySQL is installed For Windows users can checkout this tutorial https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html Ensure mysql path is set in the environment For Windows users can checkout this tutorial https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/mysql-installation-windows-path.html Run following commands to create db, assign new users, and restore db. Access MySQL by running below command mysql Create the user that you wanted to use / manage the db in wordpress later.  create USER testrestore@localhost IDENTIFIED BY '<the user password>'; Create the database that you wanted to use for wordpress later.  create DATABASE mydatabase...

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...

Create a Wordpress Cron Job to Send Reminder

 Hi All,     The following code is sample of how to create a WP Cron and send out email reminder to targeted seller/admin. You may use this as reference and change accordingly. Please read the code comments to understand the flow! This code will check seller users that is not active for 1 month to send reminder to them and delete seller products that is not active for 3 months. To better enhance the code you can actually just set the product as draft instead of deleting it directly.

Payment Method / Cara pembayaran yang Dibenarkan Oleh Google Ads untuk pengguna Malaysia

 Salam semua, ada beberapa comment dari youtube video saya di bagaimana cara untuk buat payment? berdasarkan input dari Google sendiri hanya 2 cara payment yang diterima oleh Google.  Melalui credit dan debit card.     Semua sedia maklum yang kalau kita takder credit card, kita boleh guna debit card.    Kerajaan telah pun mewajibkan semua pemegang ATM card untuk tukar kepada debit card.    Maka ATM card kita yang ada simbol VISA/MASTERCARD itu boleh digunakan untuk membuat pembayaran kepada Google Ads. Semuga ini membantu anda ya!