1

We are setting up a Wordpress Website on a Debian Server. It seemed to work, but as we ran into a few problems, we changed file and folder permissions on the Server using chmod and chown commands. I'm not the only one working on the server, so I haven't been able to follow all the development. The problem with the website is that it looks bad, i.e. the CSS is not loading, thus there is a white background and all fonts are Times New Roman.

If I try to go to the resource on the browser, as in I type http://www.mywebsite.net/wp/wp-content/themes/mytheme/style.css I get a HTTP:403 error. How can I render the CSS file accessible? I do have remote access to the server. The entire wp-content folder seems to be in possession of www-data and I have at some time applied chmod -R 777 to the whole folder (No need to tell me that this is not secure).

1 Answer 1

1

The entire wp-content folder seems to be in possession of www-data and I have at some time applied chmod -R 777 to the whole folder (No need to tell me that this is not secure).

Seems to be — means you will need to check if this is really the case. It may be not true.

BTW, I saw really bad designs where CSS files are out of the wp-content folder. You need to check where are these CSS files again.

Your browser may provide you the feedback of the exact location if you inspect.

Further, you may have used the plugins that alter the position of wp-content folder. If this is the case find out where is the new wp-content.

Consult SO web site and get the error log on your Debian web server to understand the possible problems. The errors may be dependent.

You may have some bad configuration in your .htaccess or other settings may forbid opening your CSS files.

Probably 10 more reasons may cause this problem, but hopefully this may be a good start.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.