Docker Community Forums

Share and learn in the Docker community.

500 internal server error on running container


I am trying to run my PHP application in docker but getting 500 INTERNAL SERVER ERROR on running it on the browser. On checking my container logs getting this
Any suggestion on how can I resolve this?

Thanks in advance

You need to find out from the application pool for the website what is the identity it is running under (by default this is Application Pool Identity) and grant that the correct permissions. normally, it is IIS_IUSRS, you can try the following steps to solve the problem:

Right Click Folder-> go to Security Tab-> Click on Edit-> Click on Add-> Click on Addvance → Find Now-> Give Permission to IIS_IUSRS (Full Control)-> Click On OK-> Click On OK-> Click On Full Control in allow-> Click On OK.

Note: If Above things are not working then try to give same permission to NETWORK,NETWORK SERVICE Users