Create the .cspkg and the .cscfg files to upload into Azure - php

I opened more topic here to solve my uploading problem but still nothing (not the answers, these were helpful) so I think the problem is at me!
So I wrote a little php program but after I create and upload the .cspkg and .cscfg files into Azure I get error. On localhost everything is good. I decided to reinstall all of my computer and sdk's but it takes so long time therefor I ask you a bit favour!
I send you my php files then you create the the .cspkg and .cscfg files and I upload it to my azure account and if it's OK, I can make sure of that the error is guaranteed to me...
Thank you in advance!

I am not sure how you are doing however I would like to provide your the correct way to use PHP with Azure:
Step 1: please have some time to study how Azure Interoperability team provided PHP SDK for Azure here:
http://azurephp.interoperabilitybridges.com/articles/setup-the-windows-azure-sdk-for-php
Step 2: Please download the PHP SDK for Windows Azure:
http://phpazure.codeplex.com/releases/view/78020
Step 3: Visit the SDK related documentation:
http://phpazure.codeplex.com/documentation
Above info will guide you through how to get it working. If you still need help for PHP issue, open an incident with Windows Azure Support Team using link below to get expert 1:1 assistance:
https://support.microsoft.com/oas/default.aspx?gprid=14928&st=1&wfxredirect=1&sd=gn
[Addition]
If you follow the link below, in the step 4 you were given the script to create ServiceDefinition.csdef using your paplication project folder details:
http://azurephp.interoperabilitybridges.com/articles/packaging-applications
Once you have your project folder set as described in above link and have ServiceDefinition.csdef you can full step 5 to generate the ServiceConfiguration.cscfg also.

Related

404 Not Found nginx/1.22.0 after upgrading my website to PHP 8 in Azure

I am trying to upgrade my website from PHP 7.4 to 8.0 in Azure. What I did was to create a blank website on PHP 8 and then used a site migrating tool like "All-in-One WP Migration Unlimited Extension" to download the site from source and upload it to the destination. Once the upload is complete, it gives a "404 Not Found nginx/1.22.0" error and the site won't come up.
I understand the problem lies in the docker container while moving from Linux (source) to Nginx (target). Since I'm a Windows guy, I don't know what I need to be doing to make my application work on the target environment.
If someone can give me step by step instructions on what file to be edited and what needs to be added, please post it here. I know how to use Vi editor by the way. If you are going to point me to an article, please make sure that the article is an up-to-date one because I followed this article - https://azureossd.github.io/2021/09/02/php-8-rewrite-rule/index.html and it didn't work.

Upload my php project files to use with google cloud AppEngine

I've spent 10+ hours yesterday reading up about / testing tutorials with google cloud and how I can use them as a host for my dynamic website.
With all of the new information in my head, I'm scrambled on what to do.
I already have my Virtual Machine Instance built with an IP that links to my domain, this works fine. However, I cannot for the life of me figure out how to put my project files on there. I figured it would have been something like "upload project files", "link with appengine", "link with cloud sql", but it seems like I was wrong?
In the tutorials, I uploaded googles sample projects (tutorials) by cloning a github link in the shell.
git clone https://github.com/GoogleCloudPlatform/getting-started-php.git
They also said a zip file could be extracted as an alternative.
Are those the only way of doing this? Should I create my own github and cone it in the shell?
Is it possible to link an AppEngine with a bucket that has my project files on there? (just throwing the question out there)
bonus question: once the files are uploaded, am I able to edit/develop through google cloud or do I need to edit changes in my files, then re-upload it to the cloud as an update?
This is my first time trying to have google (or any company) host my website, and this is completely foreign territory for me so any direction is much appreciated.
there are couple things mixed up in your question. Let me try to untangle them.
You don't need to create virtual machine if you want to run your PHP powered website on App Engine. There's a great overview in this article https://cloud.google.com/appengine/docs/standard/php/an-overview-of-app-engine
The way you run your PHP website on App Engine is by deploying your code to the version, you can do it using gcloud app deploy tool from your sources on your local machine. I recommend you to start by going through tutorial on here: https://cloud.google.com/appengine/docs/standard/php/quickstart
There's currently no way to link Google Cloud Storage bucket with App Engine version, you have to deploy your code yourself using either gloud app deploy or using App Engine Admin API that gcloud is using internally.
There's no way to edit your App Engine application code in the cloud.

(Laravel) SSH install VS upload folder in server

Are there any differences between using ssh to install laravel
and
just upload my laravel project folder which works on localhost
Since I just upload my laravel project to server but appear Error500
So I want to follow the below tutorial to install a new laravel project with ssh and upload my project to replace it.
https://www.youtube.com/watch?v=DsgWKuGk3yM
You must give write permissions to the storage and bootstrap/cache folder. If the problem still occurs, check error logs and post the error here.
Regarding your initial question which isn't very clear at all, wether there is a difference between uploading your project files and ssh-ing into your VPS or your VM: what is your working environment, and I assume you are uploading these files somewhere else?
There are 2 situations: you are just getting started, and in this case I recommend you follow the official docs, not a YouTube video, and have a local instance where you can work and synchronise files easily between the guest and the host. I would recommend having a look over Homestead or Valet if you are on OS X or macOS. The documentation is very clear and concise.
The second one: you want to deploy your app, in this case a hosting management tool would help you out with this process (of course there is a much more to do with the configuration), as it's pretty much a chore to setup every requirement and dependency for your server, but that's an alternative too if you wish.

Deploy PHP website on Heroku

I have got heroku up and running just now. Not sure how to use the PostgreSQL and how to deploy my website though. It is a few php files. But they php files don't open they are just blank so I guess it is never leaving the index.php
Do i need to include or list all my php files in the default index.php file?
Also with the database i created one and it is in the dashboard listed under apps so now can I connect to it normally or is there more stuff to configure?
Would love some video tutorials showing how to deploy small database driven websites written in PHP to heroku.
Any help is great! Cheers guys :)
If you want to use postgresql database with your website on Heroku, you need this add-on. To set it up read this https://devcenter.heroku.com/articles/heroku-postgresql post.
As for PHP, you seem new to it. To include a file you need to use either require or include.
You can look at this video, for basic deployment of PHP on Heroku.

Facebook Developer Tabs Heroku and Other

i was wondering if you could help me.
I am Currently Running Windows 8. Vs2012 with .php plugin. I have followed all the steps on the developer app page of facebook and then heroku using the git command line interface. and i seem to keep getting all kinds of errors. Does anybody know of an up to date decent tutorial of how to create, edit and upload a facebook application?
you can see the video on this link
https://www.youtube.com/watch?feature=player_embedded&v=HgiONvm5JB0
it will teach you how to pull and edit a facebook application
the video may get outdated so here is another link
https://devcenter.heroku.com/articles/facebook#create-an-app

Categories