Home >Topics >Pagoda Panel >How to deploy PHP projects using Pagoda

How to deploy PHP projects using Pagoda

PHPz
PHPzOriginal
2023-04-12 14:44:238195browse

Preface

As a very excellent server management tool, Pagoda Panel is easy to operate, has complete functions, and supports multiple operating systems, so it is deeply loved by the majority of server administrators. Today, let’s talk about how to use Pagoda to deploy PHP projects.

Step One: Install the Pagoda Panel

First, we need to install the Pagoda Panel. There are many ways to install the Pagoda panel. You can choose to use the automatic installation script provided by the Pagoda official website, or you can complete it through manual installation. Here we use the automatic installation script provided by the Pagoda official website.

  1. Open the Pagoda official website https://www.bt.cn/
  2. Click the "Download" button at the head of the website, select the corresponding system version to download the installation package
  3. Execute the installation command: sh install.sh

After the installation is completed, we can access the Pagoda panel by using the browser to access the IP address of the machine plus port 8888.

Step 2: Create a PHP environment

After logging in to the Pagoda panel, we need to create a PHP environment first. The specific steps are as follows:

  1. Click the "Website" menu on the left to enter the website list
  2. Click "Add Site"
  3. Fill in the site-related information, such as site name , website domain name, website root directory, etc.
  4. After the website is successfully created, click "Settings" and enter the site settings menu
  5. Click "PHP Version" and select the PHP version you want to use

At this point, we have successfully created a PHP environment.

Step 3: Upload PHP project

After the PHP environment is created, we need to upload the PHP project to the Pagoda panel. The specific steps are as follows:

  1. Click the "File" menu on the left to enter the file manager
  2. Enter the root directory of the website you just created
  3. Click "Upload" to Upload the compressed package of the PHP project to the server
  4. Decompress the uploaded PHP project

At this point, we have successfully uploaded the PHP project to the Pagoda panel.

Step 4: Configure the PHP project

For the PHP project, you need to perform some configurations on the Pagoda panel, such as modifying the database configuration, modifying domain name resolution, etc. The specific steps are as follows:

  1. Click the "Website" menu on the left to enter the website list
  2. Click on the website to be modified and enter the website settings
  3. Configure the database and set the database Fill in the relevant information correctly
  4. Configure domain name resolution and resolve the domain name to the current server IP

At this point, we have completed all PHP project configurations.

Summary

Through the above four steps, we can easily use the Pagoda panel to deploy PHP projects. The operation of the Pagoda Panel is simple and easy to use. Whether you are a beginner who is new to server management or a technician with some experience, you can easily get started and quickly complete project deployment.

The above is the detailed content of How to deploy PHP projects using Pagoda. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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