Milind P. Chaudhari
Milind P. Chaudhari

Reputation: 111

500 Internal server error displaying not getting way to show error

I am using Godaddy windows hosting(plex) the first time for PHP. I am uploading my PHP project files on hosting to display errors I am added .user.ini and .php.ini and this file contains error_reporting(E_ALL); ini_set('display_errors', 'On');

but still not displaying error. I am very frustrated to display error.Please help anyone.

Upvotes: 1

Views: 57

Answers (2)

Milind P. Chaudhari
Milind P. Chaudhari

Reputation: 111

We have to give permission to our directory in windows hosting.
Steps:-
1. {project directory}
2. by hovering the mouse on directory drawdown caret will appear on the right side.
3.Click on change permission.
4. And then click on the full control.
5. Problem solved.

Upvotes: 0

Thamaraiselvam
Thamaraiselvam

Reputation: 7080

Open php.ini, You can enable display errors permanently on php.ini

Now scroll down through the file until you find the following line.

display_errors = Off

Once you have found the display_errors line replace the parameter 'Off' with 'On'. Once you have made the swap save the file and then exit the editor.

display_errors = On

And do not forget to restart the server after changes are made.

To enable display errors temporarily add the top of the following line of index.php of your application.

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Upvotes: 1

Related Questions