Answer the question
In order to leave comments, you need to log in
Ubuntu path to 403 Wordpress files?
Good afternoon, I installed the entire package required to work with shared hosting. Installed WP. Everything works fine, but the get_template_directory_uri function, which should insert the path to the folder with the files, inserts
127.0.1.1/wp-content/themes/themename/img/img.png
And the path is correct, but they do not load and the console has a 403 forbidden error.
The files are in /var/www/wordpress/wp-content/themes/themename/img/img.png
The most important thing is that I gave permission to this folder, because I can edit, create, and delete files through phpstorm. I don't think it's right
Answer the question
In order to leave comments, you need to log in
find /var/www/wordpress/ -type f -exec chmod 666 {} \;
find /var/www/wordpress/ -type d -exec chmod 777 {} \;
find /var/www/wordpress/ -type f -exec chmod 644 {} \;
find /var/www/wordpress/ -type d -exec chmod 755 {} \;
and see tip 1Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question