Question: I recently dragged a website I built with joomla out of a subdirectory and now the whole website just shows a 500 internal error, can't even log into the backend. I've already tried changing the log and tmp path variables in the configuration.php file with no luck. any help as to what could be causing this?

Answer: 
I also have the same issue on my site backend. Finally I solved it.
Add these lines to `/etc/httpd/conf.d/mod_secuirity.conf`

```
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>

```

Save it and restart apache. It works fine for me.

Adding these lines disable mod\_secuirity engine off. I don't know if it causes secuirity problems in future.
When you do a backup of the site while it's in the old place and unpack with the script in the new place, the userrights are good to go.