Our website coded in php language was designed by some third party. Our whole project code with its database is in Azure. We now want to make changes to it and update it but we do not know how to retrieve php code of website from Azure. Any help will be highly appreciated.
Thank you in advance!
If you have access to the Azure Subscription where you app is hosted, you have several options.
Download the publishing profile and use FTP/S. This file will have FTP username and password.
Use the Kudu Environment (https://.scm.azurewebsites.net)
Use the App Editor (https://.scm.azurewebsites.net/dev)
If Continuous Deployment was configured you could grab the code from the repo (assuming you have access to the repo).
Related
I have previously developed 1 website using php and mysql now I want to deploy it on Google cloud platform.
It will be great if someone only point out steps for below points
1.install PHP 7.x
2.creating .YAML files
3.creating mysql databse
4.upload my PHP file
5.FTP setup
Thank you
You can start setting up you environment like the documentation describes.
For creating ".YAML" files there is also documentation by google.
To create your MySQL database you should check this documentation about creating Cloud SQL.
To upload PHP file you can use follow the documentation and learn more about Cloud Storage and how to upload objects.
About ftp setup, can you specify why you trying to achieve using it? If you want to transfer files you can you see again the documentation of 4.
You can find a large set of example applications for deploying to App Engine here, or on cloud.google.com.
Try to use Google App Engine - this is the easiest way to deploy app withount install LAMP and FTP. Withount MySQL its free! See the quickstart: https://cloud.google.com/appengine/docs/standard/php7/quickstart
Answering your question in the comment;
I've created .YAML file and also created MySQL databse and uploaded
all PHP files to bucket as shown in step 4. now how can I create URL
that call the Index.php ?
If you deploy your app in App Engine you don't necessarily need to upload all your application files to Cloud Storage because App Engine will put your static files in a managed static files server. You only need to set this in the app.yaml file.
I suggest you to take a look at the this sample application's files , so you can have a good idea on how to set all configuration files in order to deploy your app to App Engine standard environment and connect to Cloud SQL.
App Engine will create a default URL for you app under appspot.com domain, check for details here.
For more information on how you can connect to Cloud SQL from GAE standard take a look here.
Just follow steps
here
it will help you setup LAMP server and upload files to server using FTP
(which you can connect using SMTP-keyfile method) and also this document help you to setup mySQL database
We use a Flexible Environment with Google App Engine for our PHP Website (Laravel) and cannot figure out how to download current website image from Google App Engine with flexible environment setup. As I now have a new developer, we need this latest version for a backup purpose and for future improvement. The idea is to get the latest code from there and also the database, which is even more important, as website already has data and users on it (it is live now, in beta).
We also have a GitHub account setup. If we could load an image from the cloud to GitHub, that could work as well.
You may be able to find the source code here:
https://console.cloud.google.com/debug
Alternatively, since you are using GAE Flex, you could ssh into your instance to try to find it:
https://cloud.google.com/appengine/docs/flexible/php/debugging-an-instance#connecting_to_the_instance
As for the Database, the answer depends on 1) which database you are using (google datastore vs google cloud sql, etc) and 2) what you intend to do with it.
For example, Google datastore has datastore admin which can retrieve a snapshot of the database (https://console.cloud.google.com/datastore/settings), but the output is not something standard like csv. It's primarily used for backups & restores. But you can use this to clone your database into another app engine project
In order to copy anything from a VM on google Cloud platform, you first need to access the docker via SSH (command: sudo docker exec -it gaeapp /bin/bash). When inside of docker, you need to archive everything you need into TAR.GZ format (or try rar or zip, my server only supported TAR.GZ), once archived, you need to copy that outside of docker, which i already forgot how I have done that (oops). But google will help. Once done there will be a very non obvious gear icon on your SSH window top right where you can simply click download file and enter a file name. Choose your archive and vuala.
I want to know if is possible to use Google App Maker with PHP to obtain a file from an specific folder of my PC and know if the file change.
Thanks for your help.
No.
Google App Maker creates web applications which run on the Google Cloud Platform, and which are accessed in a web browser. These applications cannot view files which are stored on your computer.
Hi i have recently deploy my PHP(5.4) application to windows azure i.e.Web Apps.For that purpose I have used FTP to transfer my local files to azure.
Is there is any wayout so that I can just click and publish my PHP application to Azure like what we do in .net VS application (Right click publish) ?
As others have mentioned in comments, there are several continuous-integration sources for deployment. Assuming you're using the new portal (portal.azure.com), just pull up your web app and scroll down below Essentials. Near the bottom, you'll see the area about continuous deployments. If you haven't set it up yet, you'll see something asking you to set it up. Click, and then choose your source:
Once you set this up, you should be able to manage your deployments by simply pushing code to your repository.
I have the below requirement to be executed in PHP.
I have a web page which should open the android mobile app if it's installed in the mobile.
If the app is not installed in the mobile, then it should open the app store page of the same app.
I have both the links.
Example
appURL: myapp://myhost?param=1
StoreURL: https://play.google.com/
I would be thankful if someone can help me in matching this requirement by using PHP.
There's no way to achieve what you want, php cannot check if the app is installed or not. The best way is to send users to the Play Store Link and, if the app is installed, they can can simply tap open , otherwise they'll have the option to install it.