Troubleshooting PHP Applications
- 1
Check that you are using the correct application type by locating your application in the Application list. PHP applications should appear with "Apache/PHP-FPM" as the application type.
If your application is not a "Apache/PHP-FPM" application, then create a new application of the correct type, copy your files into the new application directory, and then edit your site configuration to have it serve the new application.
- 2
If you are already using the correct "Apache/PHP-FPM" application type then you might be overriding the system PHP handler in your application's
.htaccess
file.To check this, inspect the
.htaccess
file in your application's top-level directory and look for lines mentioningAddHandler
orSetHandler
, then comment them out by adding a#
at the beginning of the line.For example, if you see this:
SetHandler php72-cgi
... then change it to this:
#SetHandler php72-cgi
Be sure to save the file after making these changes.
- 1
View the source of the blank page as it may contain partially-rendered code and/or error messages related to the problem.
- 2
Check your application's error logs in
~/logs/appname
as it may contain error messages related to the problem.- 3
If your application has a debug mode of operation then activate it and reload the page. This may allow the application to display diagnostic information and/or error messages related to the problem.