Tag Archives: wordpress

Understanding the internals of wordpress php-fpm-alpine image

This post describes the internals of wordpress:php7.4-fpm-alpine Docker image. The wordpress container does nothing but run the following command and wait for it to end which it never does as it spins up a server that listens for incoming connections … Continue reading

Posted in Software | Tagged | Leave a comment

Debugging File Upload Issues with WordPress

First make sure you have adequately increased the maximum file size that can be uploaded to wordpress. It is possible that uploads may still not work. On php-fpm-alpine image (and even on apache) wordpress runs under the credentials of www-data … Continue reading

Posted in Software | Tagged | Leave a comment

How to change the maximum file size you can upload to wordpress on nginx w/ php-fpm

Apache is a solid web server but my goto environment for wordpress has now changed to running it on Docker with NGINX + php7.4-fpm-alpine. To change the max file size you can upload to wordpress, you will need to make … Continue reading

Posted in Software | Tagged | Leave a comment

CloudFlare 522 Error. Server does not respond.

This is probably the longest time I have spent on debugging something (4 days) so its worth the effort to write about it. The problem: We built a wordpress site but got CloudFlare 522 error when trying to connect to … Continue reading

Posted in Software | Tagged | Leave a comment

A note on the dbDelta function

The dbDelta function documented at https://codex.wordpress.org/Creating_Tables_with_Plugins: The dbDelta function examines the current table structure, compares it to the desired table structure, and either adds or modifies the table as necessary, so it can be very handy for updates (see wp-admin/upgrade-schema.php … Continue reading

Posted in Software | Tagged | Leave a comment

Writing Your First WordPress Plugin

This post describes how to develop a WordPress plugin that can be used to count visits to a WordPress site. The basic idea is that we will create a table visitor_log in which we will store the timestamp, url_visited, ip_address, … Continue reading

Posted in Software | Tagged | 2 Comments

Backing up WordPress db

It is very important to backup wordpress db. This is done using mysqldump command. In the basic form: mysqldump -u wpreader –password=’password’ wordpress > backup.sql But we need to automate this and protect the password. This is done by following … Continue reading

Posted in Software | Tagged | 1 Comment

Steps to add Like button to your custom installation of wordpress

WordPress (WP for short) does not come with any like button functionality built-in. You have two choices to add the like button. Use a 3rd party plugin. The caveat with these is that they will send your data to a … Continue reading

Posted in Software | Tagged | Leave a comment

How to change the maximum file size you can upload to wordpress

Spent a lot of time figuring this out and trying out different things suggested by different sites so thought would make a note of it. Its actually quite simple once you know what you need to do. All you need … Continue reading

Posted in Software | Tagged | Leave a comment

Installing MySQL on brand new Ubuntu VM

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04 siddjain@engblog:~$ sudo apt update Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:5 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [753 kB] Get:6 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [271 kB] … Continue reading

Posted in Software | Tagged | 3 Comments