PHP scripts started failing

Pete Tucker 1 Reputation point
2022-05-09T05:56:20.67+00:00

At some point during maintenance YMP2-TS8 all of my php scripts started failing with "The page cannot be displayed because an internal server error has occurred.". I created an HTML file that worked then changed the extension to .php and now I get that internal server error (https://www.textmuse.com/zivoz/demo/test2.html, https://textmuse.com/zivoz/demo/test2.php). There are no errors in php_errors.log.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2022-05-11T00:31:13.81+00:00

    I would try Enable diagnostics logging for apps in Azure App Service to better determine what the issue is. If you a simple HTML file works but your PHP file doesn't, it may be an issue with the script. Just curious if a plain Jane PHP file worked e.g.

       <?php  
         
       echo "This is a test";  
    

    If you're running your PHP app on Linux, try accessing the docker logs via https://<appname>.scm.azurewebsites.net/api/logs/docker to determine if there were any PHP errors during image retrieval and app startup. PHP on Linux plan uses PHP 8 so there may be an incompatibly there; highly unlikely but without additional logging information not outside the realm of possibility.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.