You propably have the wrong rights set to your file(s). PHP files CHMOD rights should be set to 644 or less. Folders should be set at CHMOD 755 or less.

In addition, .htaccess files cannot contain PHP variables. PHP variables need to be configured in php.ini file.

You can also check your errors from the error log from your cPanel.