The topic title above is my problem.
After I upgraded WP version I could not manage to insert media to the posts or pages. I get a warning saying:
You don't have permission to access /main/wp-admin/media-upload.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
Can anyone have an idea about the solution?