I am writing web-services for Android and don't know how to put phpmyadmin online for outside access.
Its help is given on appache friends website.
I also have try this and its working
In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost.
To enable remote access to phpMyAdmin, follow these steps:
Edit the apache\conf\extra\httpd-xampp.conf file in your XAMPP installation directory.
Within this file, find the line below and update it to remove 'phpmyadmin' from the list of locations.
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Restart the Apache server using the XAMPP control panel.
Hope this will help
PhpMyAdmin will, or should come installed on your web-host server if using a reputable hosting provider. In which case, the PhpMyAdmin panel will be accessible via your hosting panel dashboard once setup.
If you are going to be performing your own hosting you should most likely, download the latest (or required) version from the PHP.net site. And then installed to your server via command prompt or direct install.
Just follow the instructions on the website.
http://php.net/downloads.php
Related
I recently bought a VPS to create a VPN app but it looks like there is no tutorial anywhere about it.
I saw the ics-OpenVPN project on Github, but I have no idea how to use it!
All I want is to connect to a Linux server from my phone
First of all, install OpenVPN on your VPS server. Although I do not have experience to install OpenVPN on VPS server but I think you can follow this tutorial it looks easy https://www.skysilk.com/blog/2018/install-openvpn-linux-vps/
After complete your installation you will get the .ovpn configuration file. Now to connect with your VPN server from your android app you need an android client software like the ics-OpenVPN android client.
I have also developed an android VPN app based on OpenVPN library you can use my source code it is open source. The instruction of changing .ovpn file is given on the GitHub repository.
Github: https://github.com/ashraf789/Cake-VPN
Do it has to be VPN? Or does an sshconnection with porttunnel satisfy your needs? That is for example how i connect to services on remote servers. With the tunneled port you are able to map the port on the remote server to your local system and access via localhost:.
I have a multi-tenant web app like
http://xxxxx.constant-domain.com:8080/
in my host file
127.0.0.1 xxxxx.constant-domain.com
The device that has the android app running is connected via ADB which calls my webapp's Rest Apis to get and send data and
It runs fine on dev and prod environments like
http://xxxxx.dev.constant-domain.com/get-data
but the problem is I want to debug it on my local server. I tried adding the given domain as base url but it doesn't work.
I tried adding http://localhost:8080/ as well but it doesn't work.
I tried looking for questions here but didn't find anything that would help.
I'm using retrofit for Api calls.
Any help would be appreciated.
First of all, make sure that your local server and your device are using a same wifi. And then find out the option to put your local server online. There is an option in Wamp Server to put it online. I don't know which software you are using to setup apache or any kind of server on your computer.
And then you will be able to access your local server by ip address. Also there is an option to edit virtual hosts of your server to allocate a specific port that the app can connect.
It doesn't matter whether you use Retrofit or Volley or Okhttp or any other things. You need to setup your local server to be online within your local network.
I figured it out. All I needed to do was to set my private Ip as
http://192.168.8.400:8080/get-data
Hope this helps anyone who is in this situation.
I am having trouble debugging the Xamarin Sports Sample locally on my development machine, so I can debug both the mobile app and the services on the same machine.
I have got the solutions open in Visual Studio 2015. I created my Google API Credentials and updated the settings with that info. I set the Azure domain to my local IP address (also tried localhost and a fake domain name). I added the authorized javascript origins and redirect URI's into the Google interface with the various combinations of IP, localhost and fake domain name.
It looks like the redirect URI cannot be an IP address. I have tried putting the fake domain name into my hosts file. I can run the services solution and it displays in the browser properly. I can hit /login/google in the browser and it looks like it works.
When I run the mobile solution in the emulator and click the login button, I get errors. During my troubleshooting, I have seen various errors, like name not resolved and a few others. I suspected that I could modify the device emulators hosts file to include the fake domain name, but I am not able to get the file system to be read-write, even after trying adb remount. That command says it was successful, but the adb push tells me the file is read-only.
I am using a Nexus 6 API 23 virtual device, if that matters.
Has anyone managed to get this sample to debug both mobile and services locally? Any suggestions on how I can modify the hosts file to see if that works? Any other thoughts on getting this to all run locally?
I have not tried running the iOS project, yet. Will that run into the same challenges?
Your device/emulator probably doesnt´t have access to your server machine.
Check your server local host ip, and run this with PowerShell as administrator:
netsh http add urlacl url=http://192.168.X.X:XXXX/ user=everyone
Replace the ip:port with your host ip and the app port.
Then create a new <Binding> in your applicationhost.config pointing to the above ip:port.
More details (and possible duplicate) here:
How to call your own ASP.NET MVC project preaent on same machine from xamrin webview
I am building an android app using the ionicjs framework. I have done the basic layout using ionic's creator that gives me the code for it when I export it.
Now, I have to authenticate the login and register information against the details in the database, which is MongoDB. My question is, how do I install MongoDB? Do I install via the command prompt like it says in the Mongodb website or do a npm install in the root folder of my project?
After the installation, how do I go about connecting to the DB and doing the authentication? I think I need to use a REST API for that.
It would be very helpful if someone points me in a direction. I am new to developing apps like this.
Thanks!
MongoDb is a server-side database. So you have to install it on a remote machine, You shouldn't connect database directly with the mobile application which runs on clients hand. It's totally insecure, anyone can reveal your database connection information (password, username) by simply decompiling the app.
So, As you figure out, right way is to create a REST API to retrieve and send data back and forth between the server and the application.
Create a backend services with a server-side technology that your are prefer. It could be PHP,Python,Java or whatever. The client side application should not depend on the server-side technology your are using. Server side technology should completely transparent to the client application. You can attain this by designing good REST API.
I'm currently using Android Studio to prototype an Android application. I'm trying to use the Google App Engine Servlet Module to write a prototype backend for my app. I can run the dev server and access the page via localhost:8080. However, I cannot access this address on my physical android phone over the same wifi connection.
I understand that I cannot use the term localhost within the Android's web browser because that does not refer to the computer's instance of localhost. I tried looking up my computer's ipv4 address and using the "ipaddress:8080" to access the page on the phone, but that does not seem to work either for the Servlet Module within Android Studio.
I have an older server application running on Apache Tomcat within Eclipse. When I run that, I am able to utilize the "ipaddress:8080" method to access the page on my android device.
Any ideas as to why this works while the Android Studio Google App Engine Servlet Module dev server fails? Any suggestions as how to resolve this issue would be greatly appreciated!
You can access the localhost in the following way : 10.0.2.2:8080
I realized that the server did not bind to my IP address. I changed configuration settings within Android Studio for my server to use http address "0.0.0.0". It now works.
In my case, I was receiving null for list request after deploying backend (running on Android device). For some reason backend received requests and didn't respond. The fix for me was to re-deploy and create new project, syncing with my android project front-end code. Then as a result my front end was connected to the back-end exactly as described here: https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints step 2.3, and two additional fields were generated in my JSON: "kind" and "etag"