mrantony2015-03-24 22:55:36
Apache HTTP Server
mrantony, 2015-03-24 22:55:36

403. Permission 777, everything is fine in .htaccess. Where to dig?

Site on Wordpress.
All of the images suddenly disappeared.
With direct access - 403.
I set the rights to 777 for all folders and files . Removed
I upload a new image - everything is ok. I download the old one via FTP - everything is ok.
I transfer to another server - everything is ok.
Technical support says - everything is ok with us, look for yourself.
Help, colleagues - I broke my whole head.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Valery Ryaboshapko, 2015-03-25

Suddenly - after what action? New topic? New plugin?
In addition to .htaccess in the root of the site, another .htaccess can be located along the path to the images. Plus, access settings are written in the VirtualHost section of the main Apache config (if you have access there). And yes, following the precepts of AlexLIn , look at the logs, there may be worthwhile info, although it is unlikely with a 403 error.
PS Rights 777 is a vicious practice. When you figure it out, change it back to 644 for files and 755 for folders.

AlexLIn, 2015-03-24

Look at what the error_lop file says and access.log will
immediately understand where to dig.

ShamblerR, 2015-03-25

you most likely worked as root and your files have an owner and group root:root or different from the default of the site itself. As a result, your Apache falls into the trust group, or even into the latter, as a result of which it does not have enough rights.
Change the group and user to match your site
chown -R user:group /ptah
and that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question