寶塔面板安裝WordPress網站教程

Install the website environment

After successfully accessing the tower panel, you will be prompted to install the LNMP runtime environment

LNMP stands for Nginx, MySQL, and PHP, which are essential components for running WordPress programs. We recommend using PHP version 7 or higher, leaving the rest at default settings. We recommend using a compiled installation, and be patient while waiting for the process to complete. You can check the progress in the upper left corner of the screen.

Necessary security settings

為了提高安全性,建議修改面板的別名、默認端口、安全入口、面板用戶和密碼。

It is not recommended to modify the number of threads launched, nor to add domain names and authorized IPs, so as to avoid situations where the panel cannot be accessed. Otherwise, keep the defaults.

Create a WordPress website

寶塔面板有一鍵部署WordPress網站插件,但是版本較老,後期進入WordPress後台得升級。手動部署需要到WordPress官網下載最新的安裝程序,還可以保證安全性。下面介紹的也會是手動建立站點,其實並沒有很複雜。

添加站點

在寶塔界面找到網站,點擊添加站點,會出現以下界面,然後點擊一鍵部署

域名根據實際情況填寫,如果是國內空間,則域名必須備案,國外空間則不需要,一般寫一個頂級域名和一個www二級域名即可,比如www.jiami.dog,jiami.dog,搭建階段可以也用雲伺服器的公網IP代替。

點擊提交,會提示站點創建成功,並顯示數據庫用戶名和密碼,這裏不用刻意去記錄,可以在寶塔的數據庫管理界面再次查看。

FTP can be selected not to create, and then use the file manager in the Tower Panel. However, if you need to upload a large number of images, it is recommended to set up FTP. You can set up FTP after building the site. Simply click Add FTP, fill in the username and password, and the root directory is as follows: www/wwwroot/.

Database selection MySQL, will prompt to enter username name and password, automatically create a database with the same name as the username

PHP版本選擇你安裝的PHP版本,我安裝的是PHP7.4,建議安裝版本不低於7.4。

點擊提交,會提示站點創建成功,並顯示數據庫用戶名和密碼,這裏不用刻意去記錄,可以在寶塔的數據庫管理界面再次查看。

After the site is created, you can test it via the public IP address or your bound domain name. Enter the public IP address or domain name in your browser, and if successful, you will see the following page:

With the basic website structure already in place, the next step is to install the WordPress website program.

Leave a Reply

3
AI Assistant
WhatsApp
Email
AI Assistant
WhatsApp
Email
AI Assistant
Important notice: AI responses may be slower than expected. AI provides information for reference only, and we are not responsible for its accuracy or completeness. AI responses do not represent the position of this company.

Hello! Welcome to . How can I help you?

03:00