@Spino Inc Apologies for late response! Thanks for reaching here!
The error message
"Central Directory record could not be found"
usually indicates that the ZIP file is corrupted or invalid. You can try to create a new ZIP file and redeploy your web app. Here are the steps to deploy a PHP web app from a ZIP package:
- Create a ZIP file of your PHP web app. Make sure that the ZIP file contains all the necessary files and directories for your app to run.
- Enable running from package by setting the
WEBSITE_RUN_FROM_PACKAGE
app setting. You can set it by running the following command with Azure CLI:`az webapp config appsettings set --resource-group <group- name> --name <app-name> --settings WEBSITE_RUN_FROM_PACKAGE="1"`
- Deploy the ZIP file to your web app using the Azure CLI
az
webapp deployment source config-zip
command. For example:az webapp deployment source config-zip --resource-group <group-name> --name <app-name> --src <filename>.zip
This command uploads the ZIP file to your web app and restarts the app. BecauseWEBSITE_RUN_FROM_PACKAGE
is set, App Service mounts the uploaded package as the read-onlywwwroot
directory and runs the app directly from that mounted directory.
If you still face the same issue, please provide more information about your deployment process and the error message you are seeing.