Wordpress Folder Permissions - 500 Internal Server

Asked

Viewed 49 times

1

My Wordpress was working normally, I was editing the permissions for security reasons.

Assigned to all folders inside mine public_html to 755 and assigns to all my files to 644

Well, now just from 500 Internal Server ao acessar

I thought it was mine too htaccess

Today he’s like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteCond %{HTTP_REFERER} !^http://MEULINK.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://MEULINK.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://MEULINK.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://MEULINK.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://MEUIP/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://MEUIP$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

#security

<FilesMatch ^wp-config.php$>
Deny from all
</FilesMatch>

Options All –Indexes

Could be some misconception? Or problem on my host?

2 answers

1

There may be several things, but here is a list of what you can try.

  • Install another wordpress instance on your host; if it works, it’s not your host’s problem.

  • Remove the permalink option and delete your . htaccess and see if it works.

  • In the latter case, transfer your theme folder (and the db paths) to the new instance.

0


Following the rules of Wordpress, every directory should have: chmod 755 or 750. All files must have: chmod 644 or 640(Except the wp-config.php file, this file should have chmod 600 to avoid reading). Warning: No directory should have chmod 777 (not even uploads), PHP works with proprietary permissions and can write even in a 755 directory.

These are the rules of Wordpress for File Permissions, if help am sending my . htaccess standard:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Don’t forget that there are differences in using chmod xxx or chmod -R xxx, understanding these differences will help you solve.

Anyway, I posted a workaround and a certain knowledge, I hope it helps you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.