In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to deploy php to the cloud". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to deploy php to the cloud".
This article operating environment: centOS6.8 system, PHP5.6 version, Dell G3 computer.
How to deploy php on the cloud?
First of all, you need to buy an Ali cloud server. When you buy it, you can choose the operating system (you can also change the operating system in the console after you buy it).
I use CentOS, after buying the server, I need to add a multilingual environment, which needs to go to the cloud market to search for "multilingual environment" and buy it, free of charge, depending on which one you need, and I use it for free.
Then go to the console and find the CVM ECS
Enter the CVM ECS and click on the instance, which contains the server you purchased.
Click more, then reset the password, you need to restart the server after resetting the password, click manage, there is a restart option in the upper right corner, return after configuration, click remote connection, then he will give you an administrative terminal password and remember this password.
Then enter the management terminal password to enter the server.
When you enter, you need to enter your login account (default is root) and password (the password you just reset) and then connect successfully.
Next, you need to download Xftp and Xshell,Xftp for file transfer, that is, transfer your local php web page to the Ali cloud server, and Xshell log in to the Ali cloud server.
Open Xshell and choose the name of the new session. My name is test, and the protocol is SSH. The host is the public network ip address of Ali CVM, which can be seen in the console instance.
Then enter the user name (root) and password to operate the Ali CVM with Xshell. After that, if your multilingual environment (mentioned above) is configured, the following page will appear when you open the browser and enter the public network address (if rejected, please turn off the firewall of Ali CVM and enter service iptables stop):
Click "CentOS Nginx PHP JAVA multilingual image user manual V1.6.pdf", it is recommended to take a look at the manual, there are a lot of operations I will not say one by one. Notice that there is a phpMyAdmin, which is the database of Ali CVM. Click to enter and you can use the local browser to operate. The user name and password of phpMyAdmin are in the user manual. Go and see for yourself. After logging in, import your local database, you need to create a new database (the same as the local database), and then import the SQL file exported from the local database into the Ali cloud server, and the database import is successful.
There is a source installation directory in the manual
Deploy the site you need to deploy to the root of the site, and you can visit your site. Open Xshell specifically, make sure you also download Xftp, and click New File transfer.
It will automatically run Xftp, on the left is your local directory, on the right is your Ali cloud directory, find your php file, drag the php file into the right site root directory, you can visit the site, note that the site root directory is not root.
Results of running the website:
Thank you for reading, the above is the content of "how to deploy php to the cloud". After the study of this article, I believe you have a deeper understanding of how to deploy php to the cloud, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.