Wordpress folder permissions - 500 Internal Server

1

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

I assigned all folders within my public_html to 755 and assigns all my files to 644

Well, now only 500 Internal Server ao acessar

I also thought it was my htaccess

Today it looks 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 it be some wrong assignment? Or problem on my host?

    
asked by anonymous 09.05.2014 / 15:09

2 answers

0

Following the Wordpress rules, 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 reads). Warning: No directory should have chmod 777 (not even uploads), PHP works with proprietary permissions and can even write to a 755 directory.

These are the rules of Wordpress for File Permissions, if you help, I'm sending my default .htaccess:

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

Do not 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 some knowledge, I hope this helps you!

    
09.05.2014 / 15:52
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 problem.

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

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

09.05.2014 / 15:36