I try to install WordPress: PHP8.4-FPM on my VPS to perform a website on it (official WordPress image of Docker Hub).
I already have swag and maraidb containers on my VPS, so I decided to use them.
I made a user identified by a password on Mariadb and I made a DB for WordPress, I gave the new user all the privileges on the DB.*.
I added the recommended configuration to SWAG and gave this access to the WordPress file using bind volume that folder to www/domain name Directory (reading only).
Yet I have no access to the website, I get File not found! On the website When you try to open it.
Of course, all 3 containers are on the same network with a static IP address, with Iptables configuration on the Host VPS that pass on all traffic on that network.
I made the following analysis, but couldn’t do anything:
- I have ensured that both SWAG and WordPress container have access to files, I did this with the help of
ls -lIn both containers they can both see all files. - I have made ownership and permissions to admit WordPress, the property is my user: www-data and permissions are 774.
- I have ensured that from the WordPress container I have access to Mariadb container, and I have access to it without any problem, but of course I have not found any tables in it.
- I have added a custom access_log to SWAG, so that I can see what is going on, and it seems as if it can communicate without a problem with WordPress container, and it can accompany some static files (I have added Faveicon.ico, and I can open it directly without passing WordPress) … here are the access lines:
--ACCESS_LOG:- USER-ADDRESS:"172.70.108.190" PORT:"443" TLS:"TLSv1.3" REQUESTED-DOMAIN:"yusuf-bm.me" REQUEST-ENDPOINT:"GET / HTTP/2.0" STATUS:"404" AT:[30/Jul/2025:01:05:37 +0300]
--DEBUG_LOG:- BODY BYTES SSENT:"16" HTTP REFERRER:"-" REQUESTED CONTAINER:172.18.1.11:9000 CONTAINER STATUS:"404" UPSTREAM CACHE:"-" FILE CHECKED:"/index.php" TRIED FILE:"/config/www/wordpress/yusuf-bm.me/index.php" RESPONSE TIME:"0.001"
I tried chatgpt, but it couldn’t help me.
I appreciate every help, thanks in advance.
#WordPress #Docker #installation #work

