500 Internal Server Error Part 1

500 Internal Error Can be caused by many reasons some of which I am going to list here that might help you figure out your problem and remove your headache.
  • File Permissions
    • Some hosting providers like hostagator they need a specific permission set for the files and folders.  You can follow this rule for most of the hosting solutions. File permissions should be 644 and directory permissions should be 755.
  • .htaccess Rule error
    • use of php_flag in .htaccess file can result in 500 Internal Server Error, its a good practice to set values in php.ini rather than to use .htaccess for php configuration. php_flag can be used only with php_ini_all and php_ini_perdir directory types and is used to set boolean values only.
      You can check in apache error log too for this which might be logged as :
[Mon Nov 11 04:15:01 2013] [alert] [client 120.89.118.206] /public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration


Comments

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud

Google translate adds Nepali Language Conversion