Hi everyone!
I have encountered another problem with WordPress. Earlier, I was developing a website using XAMPP (with modified and updated modules, of course). Then I decided to switch to Docker because it’s much faster and more convenient to use. But unfortunately, its usage requires more experience than I have right now.
What I did:
1. Created a new container with a .yml config file.
2. Used the Updraft plugin to restore the website from a backup.
Here is the compose.yml file:
version: '3.8'
services:
db4:
image: mysql
environment:
MYSQL_DATABASE: wordpress_db_4
MYSQL_USER: db_user_4
MYSQL_PASSWORD: db_user_pass_4
MYSQL_ROOT_PASSWORD: securepassword_4
volumes:
- db4:/var/lib/mysql
wordpress4:
image: wordpress:6.9.0-php8.5-apache
ports:
- 8084:80
environment:
WORDPRESS_DB_HOST: db4
WORDPRESS_DB_NAME: wordpress_db_4
WORDPRESS_DB_USER: db_user_4
WORDPRESS_DB_PASSWORD: db_user_pass_4
volumes:
- wordpress4:/var/www/html
volumes:
wordpress4:
db4:
Now, about the problems I’ve encountered:
1. None of the custom icon sets that I previously uploaded on Elementor Pro are being loaded or shown after restoring the website. I suspect the problem is related to read/write file permissions, but none of the methods I tried from ChatGPT helped me solve the issue.
That’s what I see when the restore via Updraft is done:
2. However, if I upload a new icon set to Elementor Pro, it uploads without any issues and is also visible on the page.
3. WP Rocket keeps showing the following message:
**WP Rocket** cannot configure itself due to missing writing permissions.
Affected file/folder: `wp-config.php`
The following code should have been written to this file:
define( 'WP_CACHE', true ); // Added by WP Rocket
Screenshot:
But his issue is easily fixed by changing the ownership of the wp-config.php file to www-data by applying the following command:
chown www-data:www-data /var/www/html/wp-config.php
However, I’m not sure if it won’t brake anything on the same time ![]()
Based on what I’ve described above, I have some questions:
Has anyone faced similar problems to mine? Before I perform a full restore from the backup, is there any procedure I need to follow to ensure that all directories and files have the proper read/write permissions?
Is there maybe some universal command I can run in the terminal to assign general access rights to all files so that everything works without problems and restrictions? For example, with XAMPP, everything worked perfectly out of the box, the only issue with it was that it was slow. If it weren’t for that, I would have continued working with XAMPP.
Thanks in advance!

