I'm managing a Plesk web server and fairly new to server-side things. Error reporting is not switched on so as I'm coding websites I'm just getting: The website encountered an error while retrieving *SITE.COM*. It may be down for maintenance or configured incorrectly. How annoying when I can't see what the error is. Anyway, any simple way to switch it on? I've looked all through the settings but can't find it. I ran phpini and it does say it's switched off. HELP!! Thanks
You can enable display_errors to On in php.ini. To know the file path use command as below. Set it to On and restart apache/httpd.
To enable 'error reporting', log in to your Plesk control panel for your domain, click the setup icon under 'hosting', then uncheck the 'Custom Error Documents' option from the 'Services' menu and click 'ok'. To fix the error you are getting, you should check the permissions and ownership of your website files and directories, especially the the permissions and ownership of your website's root directory.