Thanks for asking question! Could you please confirm if you have you pushed to Azure from Git?
- From your local terminal window, add an Azure remote to your local Git repository by using below command:
git remote add azure <deploymentLocalGitUrl-from-create-step>
Replace <deploymentLocalGitUrl-from-create-step> with the URL of the Git remote. - Then push to the Azure remote to deploy your app with the following command:
git push azure master
- When Git Credential Manager prompts you for credentials, make sure you enter the credentials you created in Configure a deployment user, not the credentials you use to sign in to the Azure portal.
Check this document link: https://learn.microsoft.com/en-gb/azure/app-service/deploy-local-git?toc=%2Fazure%2Fapp-service%2Ftoc.json&tabs=portal#deploy-the-web-app
Further you could review the Startup script and configuration for the PHP frame as mentioned in below documents.
Configure a Windows PHP app for Azure App Service
Configure a Linux PHP app for Azure App Service
Please note that by default, Azure App Service points the root virtual application path (/) to the root directory of the deployed application files (sites\wwwroot).
On Linux, the container runs Apache, you can rewrite the URL to public/index.php with a single .htaccess file in our root directory.
Also, ensure that the Rewrite rules are appropriate to map URLs to public/index.php file.
The default PHP image for App Service uses Apache, and it doesn't let you customize the site root for your app. To work around this limitation, add an .htaccess file to your repository root.
Additionally Azure provides built-in diagnostics to assist with debugging an App Service app.
Check this article, you learn how to enable diagnostic logging and add instrumentation to your application, as well as how to access the information logged by Azure.
Let us know if there is further query or issue remains.