How To Enable Php Error Messages In Windows
Description:
In linux server default php errors are coming when there is any issue with code.But in windows server it is showing common error pages for all the error.Either it show 500 Internal server error or 401 error message.Unable to figureout the exact error message in php file.
Steps:
– In windows server default error pages are assign to error reporting.
– To resove this issue need to switch on display php errors.
– This feature is present in Plesk windows based server.
– In the below path you can find php.ini file
C:\Program Files (x86)\Parallels\Plesk\admin\php.ini
– Open the file in Note pad and change the below settings,
display_errors on
error_reporting=E_ALL & ~E_NOTICE & ~E_STRICT
– Now run the below command,
%windir%\system32\inetsrv\appcmd.exe set config -Section:system.webServer/httpErrors -errorMode:Detailed ( Not mandatory)
– In case unable to find php.ini file in the above location search and update the settings.
– Now restart iis services.
IISReset
Tags:IIS,PHP errors,Windows hosting,Linux server Php errors,Php coding,Windows hosting Article,Hosting Tutorials,Tech Article.
Add Comment