I have a Azure WebApp + Services written in Yii and Yii 2 respectively. The database is MySQL db from ClearDB. i am hosting it on using the empty Php app.
The webapp is working fine. In services when trying to connect to the ClearDB MySQL its working fine in XAMPP.
When use the same code in IIS 7 in my local (to simulate azurewebsites) i am receiving: i am getting error 500 (Internal server error) with message: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. When i placed the same code on azurewebsites: i am getting error 500 (Internal server error) with no message,
Here is my project structure:
Local: Xampp server
htdocs/
myapp/
dashboard/ ---> this the website folder (Yii)
modules/
v1/ -----> here are my yii2 services and controllers.