Tag: WordPress
![How to fix MySQL error in WordPress](https://i0.wp.com/www.marius.uk/wp-content/uploads/2024/03/wordpress-mysql.png?fit=940%2C529&ssl=1)
WordPress Error: Duplicate entry ‘0’ for key ‘wp_postmeta.PRIMARY’
I got this error when I changed the hosting of one of my WordPress websites: And I assume something’s got overlapped during the migration where the AUTO_INCREMENT values are wrongly registered by WordPress engine. To fix this, just by reading the error message, I needed to update the AUTO_INCREMENT on […]
![](https://i0.wp.com/www.marius.uk/wp-content/uploads/2024/02/python-fastapi-docker.webp?fit=640%2C325&ssl=1)
A successful directory structure
Don’t just dump it all in the root! If software development is your job, then just don’t be that guy! Consider a project like the one described in my Advanced WordPress and Docker or FastAPI on Docker posts. I prefer to organise my code into directories for the application code […]
![WordPress via nginx on Docker](https://i0.wp.com/www.marius.uk/wp-content/uploads/2024/02/docker-wordpress-nginx.png?fit=810%2C450&ssl=1)
Run WordPress on Docker (with nginx)
Synopsis This article describes how to configure and deploy a WordPress instance, either in production or for local development (and assumes a beginner+ / enthusiast+ level in DevOps).To achieve this, other than the official WordPress codebase, we will also need a database and a web server which we’ll refer to […]
![](https://i0.wp.com/www.marius.uk/wp-content/uploads/2018/06/wow-to-create-wordpress-project.png?fit=960%2C600&ssl=1)
Deploy WordPress on CentOS (tutorial)
# install tools: sudo yum install centos-release-scl.noarch nano bash-completion net-tools wget curl lsof # install dependencies: sudo yum install git openssh-clients gettext-devel openssl openssl-devel zlib-devel curl sendmail python perl-CPAN perl-devel perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect # install apache: sudo yum install httpd sudo systemctl enable httpd.service sudo systemctl start httpd.service […]