Summary :
While making a $http
call from angular to the backend(php file) for getting the requested data. In localhost(e.g. http://localhost) everything is working fine. Issue is generating when open a web page on hosted server(e.g. http://www.example.com). I am getting this error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@xyz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
This is my .htaccess
file :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /s/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /s/public/#/$1
</IfModule>
Tried So far :
check error logs in
cpanel
.I already checked out the error log and get more information on what is causing the error. Here is an example video that i followed for cPanel logs.
http://www.youtube.com/watch?v=pzO1UNHZjZo
Server logs :
I am not able to understand this error. There are lot of answers on SO but all are confusing.
Why might this problem be occurring? Is there any misconfiguration with my server settings?