It seems you have some error in your code or there is a PHP extension missing. There are a few ways to check this however, I’ll recommend the following two.
- Enable PHP error logging using php.ini
- Enable the PHP errors via the index.php file.
Let’s start with the first point.
If you have an php.ini file there open it, if you don’t create one
for creating a new php.ini type in
touch php.ini && nano php.ini
In there add the following lines
; log PHP errors to a file
log_errors = on
error_reporting = 32767
error_log = /path/to/you/website/error_log
Please note to change the /path/to/you/website/errorlog with the actual one. Restart your apache and open your website. You should now have an errorlog file in your website’s directory stating what the error is. From there you can act on.
The next solution is a bit easier. Open your index.php file and add to the top right under the
<?php tag the following line
This should show the error you are experiencing directly in the browser. As soon as you’ve added the above line, save the file and open your website via the browser. You’ll see the error there.
Once you have resolved the error, it’s important to remove the above line.