What is Internal Server Error?
It usually a server misconfiguration (check .htaccess file) or problem with your server side script.
First of all check for error log
If log file become empty then enable it via php.ini
Find display_errors, display_startup_errors
(Which look’s like below)
Uncomment it via removing semicolons (After change it will look like below)
Restart apache via below command
Now check in error.log file for Internal Server related problem.
If in error log you got module related problem like below:
/var/www/html/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
Then perform below command for above error which enable rewrite module of apache2:
That’s it. You are done :)