hybrid connection using azure hybrid cloud service - php

Installed with hybrid connection manager in my azure account. tried to connect local LAN server from azure web app.
https://azure.microsoft.com/en-in/documentation/articles/integration-hybrid-connection-create-manage/
Followed all steps above but no use. credentials of my local host are correct as i have connected SQL server from xampp PHP server.
All I want to know where might be the mistake.
Thanks,

Related

How to start a PHP Websocket server on Microsoft Azure?

I was able to setup WebSocket on Azure.WebSockets enabled on Azure
But my issue is : how to start the PHP ws server?
I have used this sample implementation https://github.com/ghedipunk/PHP-Websockets successfuy on my computer but I am not able to start the server in MS Azure.
All Azure Web Apps run in a secure environment called a sandbox. In the sandbox, each app is processed by Microsoft IIS. An app runs through PHP's Command Line Interface (CLI) is not allowed. For more details, please refer to Azure Web App sandbox.
In order to be able to run PHP-WebSockets in Azure, you need to host in something like a Virtual Machines, Cloud Services, or Containers, rather than Web Apps.

How can I install ssh2 in Windows_NT (Azure web service) to connect VM from web service?

To make my question more clear, I'm breaking them into parts.
I have created webpage in Microsoft azure using app service {http://####.azurewebsites.net}
I have created virtual machine linux (Ubuntu) platform
Both the service (web and vm) are in the same account (#####outlook.com).
Now, I want to connect web service with vm. I have seen solutions connecting using ssh2 in php codes as shown here.
I tried this in my local system (ubuntu). It was working fine.
Now I want to connect to vm from web service. For this purpose how can I install ssh2 in webservice provided by azure.
I have logged into azure web service via ftp using terminal. It shows remote system is Windows_NT.
How can I install ssh2 into webservice so that I can access vm from webservice.
Any help appreciated. Thank You

Can oracle instant client be installed in an Azure Web App

We've installed oracle instant client into an Azure virtual machine and all is running ok. Our Oracle database is external to Azure.
However running a VM seems to be an overkill for our application and we are wondering whether we can connect from our PHP based web application to our oracle instance from an Azure Web App instead.
Is this possible and if so how?
thanks
Currently, we cannot install oracle instant client on Azure Web Apps. So we can leverage Azure VM to install oracle instant client.
You can connect Azure Web Apps- PHP with Oracle using OCI8 drivers, take a look at this reference: https://blogs.msdn.microsoft.com/azureossds/2016/02/23/access-oracle-databases-from-azure-web-apps-using-oci8-drivers-with-php/

How to connect my mysql VM and my Azure web Site

I would like to connect my Unix Virtual Machine (who hosted mariaDB and phpmyadmin) at my php web site hosted on Azure Web Site.
My virtual machine doesn't use virtual networks. I opened endpoint and I added one rule on iptables, but my php web site doesn't manage to connect on the VM.
If someone can help me.
Thanks in advance.
If you have opened 3306 port at your VM, please check your mysql db settings for example remote connection allowed or your connection user previlleges.

Android Connection to php web services

I am new to android development. I have a module where I need to connect to a webservice via an android application. I have the web services in my localhost.
My question is: How to access them from my android application?
Tutorials on web says how to access the live web services.
First, both your computer and android device need to be in the same network,
If you use windows, go to cmd and type ipconfig /all
Find your computer's ip address
Then you will be able to access your server's from its ip address.
You can also check your firewall configuration if steps above don't work
i have did this before ,first of all , if you need to connect your android application with php service at localhost.following thing need following thing
Android Emulator on which application install
For SERVER -- WAMP or XAMP Server install on Local machine on which you are testing .
now host your php service in the www folder (in case of WAMP) or in the htdocs folder( in case of XAMP).
Now how to communicate between web service and android : as describe below
Now you have Envoirnment set now all you have to do is to follow this tutorial it will definatly resolve your issue .
http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/

Categories