My website isn't working, how do I fix it?
Usually there is a PHP or configuration error in your website or application. A visitor then sees an empty page or the error message 500 (Internal Server Error). You can read which error it is in the error log of your domain name in DirectAdmin.
Enter a domain name, such as yourdomain.nl.
Viewing the error log
Log in to DirectAdmin
Log in via Single Sign-On from Mijn xYnta, or at
https://yourdomain.nl:2222.Open Site summary & logs
Under System Info & Files, click Site summary & logs.
Open the error log
In the row of
yourdomain.nl, click Error log. DirectAdmin shows the last 100 lines; the newest is at the bottom. Load the page that is not working once more first, so that the error is sure to be included.
What the lines mean
Each line starts with the time and a web server level in brackets, such as [INFO], [NOTICE] or [ERROR]. That level does not tell you how serious a PHP error is: a PHP error appears in the log as [NOTICE], followed by [STDERR] and the type of error. So look at the text after PHP:
| text in the line | what it means |
|---|---|
PHP Fatal error or PHP Parse error | The script stops at that point. This is usually the cause: fix this error first. |
PHP Warning | Something goes wrong, but the script continues. This may cause problems, but is not critical. |
PHP Notice | Harmless; can be ignored. |
After the error come the file and the line number, for example in /home/…/public_html/index.php on line 3. That is where you look further, or you pass that line on to the developer of your website. You can read more about the log files in Viewing the log files of a domain name.
Is the error not in the error log?
Then first check whether log_errors is on: if it is off, PHP does not write errors to the error log. If the error is still not in it after that, temporarily turn on display_errors. The error message then appears on the page itself, with the file and the line number.
Open Select PHP version
In DirectAdmin, under Extra Features, click Select PHP version.
Open the settings
Click the Options tab at the top.
Check log_errors
log_errors is ticked by default. If it is off, tick it; DirectAdmin saves the change straight away. Load the page that is not working again and look in the error log again. If the error is in it now, you are done and can skip the rest.
Turn on display_errors
Tick display_errors. Leave error_reporting at the default value
E_ALL & ~E_DEPRECATED & ~E_STRICT: with it you see fatal errors and warnings. ChooseE_ALLif you also want to see the notices about outdated code.Load your website again
Open the page that is not working again. The error message is now at the top of the page.
Turn display_errors off again
Untick display_errors as soon as you have found the error. If you changed error_reporting, set it back to
E_ALL & ~E_DEPRECATED & ~E_STRICT.
Thank you for your feedback.

