Home Backend Development PHP Tutorial Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Apr 11, 2018 pm 05:43 PM
php rear end Ali Cloud

The content of this article is to explain in detail the method of deploying PHP backend on Alibaba Cloud. It has certain reference value. Friends in need can refer to it.

First of all, you You need to buy an Alibaba Cloud server. You can choose the operating system when buying it (you can also change the operating system on the console after buying it)

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

I use CentOS, after buying it You need to add a multi-language environment to the server. You need to search for "multi-language environment" in the cloud market and purchase it. There are free ones and paid ones. It depends on which one you need. I use the free one.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Then enter the console and find the cloud server ECS

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Enter the cloud server ECS and click on the instance, where you will see Purchased server

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Click more, then reset the password. After resetting the password, you need to restart the server. Click Manage. There is a restart option in the upper right corner. After configuring, return and click Remote connection, then he will give you a management terminal password, remember this password.
Then enter the management terminal password to enter the server.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

#When entering, you need to enter your login account (the default is root) and password (the password you just reset) and then the connection is successful.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Next you need to download Xftp and Xshell. Xftp is used for file transfer, that is, to transfer your local php web page to the Alibaba Cloud server. Cloud Server.
Open Xshell, create a new session and give it a name. My name is test, the protocol is SSH, and the host is the public IP address of the Alibaba Cloud server, which can be seen in the console instance.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Then enter the username (root) and password to use Xshell to operate the Alibaba Cloud server. After that, if your multi-language environment (mentioned above) is configured, then open the browser and enter the public network address, and the following page will appear (if rejected, please close the firewall of the Alibaba Cloud server and enter service iptables stop):

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Click on "CentOS Nginx PHP JAVA Multilingual Mirror User Manual V1.6.pdf". It is recommended to take a look at the manual. There are many operations in it, so I won’t go into them one by one. . Notice that there is phpMyAdmin, which is the database of Alibaba Cloud server. Click to enter and you can operate it with your local browser. The username and password of phpMyAdmin are in the user manual, check it out yourself. After logging in, import your local database. You need to create a new database (same as the local database), and then import the SQL file exported from the local database to the Alibaba Cloud server. The database import will be successful.
Detailed explanation of how to deploy PHP backend on Alibaba Cloud

There is a source code installation directory in the manual

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

#Deploy the website you need to deploy to the root directory of the website, and you can access it website. Specifically, open Xshell, make sure you also download Xftp, and click New File Transfer.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

It will automatically run Xftp. On the left is your local directory and on the right is your Alibaba Cloud directory. Find your php file and drag the php file into the website root directory on the right. , you can access the website. Note that it is the root directory of the website, not root.

Detailed explanation of how to deploy PHP backend on Alibaba Cloud

Website operation results:

Detailed explanation of how to deploy PHP backend on Alibaba Cloud


The above is the detailed content of Detailed explanation of how to deploy PHP backend on Alibaba Cloud. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

See all articles