Good day!

There was such a question. There is a site on Azure Websites. And there is a virtual machine on which Ubuntu + MySQL is deployed. By the name of the DNS I go to MySQL without any problems. Port 3306 is open on an Ubuntu machine, endpoints for 3306 are configured.

But when I try to connect from a PHP site on Azure, I get the following error:

Forbidden by its access permissions.

Here is my web.config

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="rule 1h" stopProcessing="true"> <match url="^(.*)\?*$" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/index.php/{R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration> 

thank you in advance!

  • Maybe the socket is already busy with some process? Try to execute netstat -o from ubunt, it can show what is scored Or maybe something is wrong with the code? Post it as you access MySQL. Does the error come out when you start from the local machine or from Azure-Websites? - Walter Nuss
  • The most interesting thing is that I connect without any problems using the same details from the local site and even from Navikat - BlackWidow
  • And yet my question was not answered. Does the error come out when you start from the local machine or from Azure-Websites? - Walter Nuss
  • It is with Azure Websites - BlackWidow
  • Is the connection string in Azure configured? As indicated here: azure.microsoft.com/en-us/documentation/articles/… or here azure.microsoft.com/blog/2013/07/17/… - Walter Nuss

0