I was trying to port a php based CMD on my account in my public_html folder. But, every time I put index.php in the public_html folder, it throws 500 Internal Server Error. index.html works just fine. I checked that my index.php file has 0644 perm. and all the folder it needs access to, has 0755 perm. Even now it's not doing so. I've put this line in my index.php, so it could show errors :
ini_set('display_errors', 1);and this in my .htaccess :
php_flag display_errors 1My .htaccess looks like :
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|content|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
php_flag display_errors 1 Not sure what's causing this weird problem. I have checked the website and it's working on my local system. Here's the github repo of the project : https://github.com/chocolatkey/FoOlSlide2 Could anyone please look into this and help me? Thank You