How to install WordPress in CyberPanel and configure pseudo-static
CyberPanel It is a foreign host panel, and the previouslinuxserverThe management panel is different. CyberPanel's function is biased towards the virtual host function. User permissions can be customized to allow users to log in to CyberPanel to manage virtual hosts. It belongs to the virtual host control panel, and you can install WordPress with one click, which is very convenient. Here's how to install WordPress CyberPanel Install WordPress
CyberPanel official website:https://cyberpanel.net/
Virtual host panelInstall:CyberPanel Linux Hosting Panel – OpenLiteSpeed Support Simple, Fast and Open Source Control Panel
Next, quickly configure and install WordPress in CyberPanel!
CyberPanel offers a variety ofWeb UISkin, you can choose your favorite WEBUI skin in Design.
CyberPanel Install WordPress
After installing the CyberPanel virtual hosting panel, you need to install the website first. CyberPanel provides a one-click WordPress installation function, which is very convenient. Start building a WordPress website step by step below.
Step 1: Modify package configuration
On the menu bar on the left side of the CyberPanelThe main functionmiddle clickcombo,existcomboYou can customize the size and other options of each virtual host in .
Click Modify Package. The system defaults to a Default initialization package. Select the package Default on the Modify Package page and modify the domain name, disk space, and traffic to 0. 0 means unlimited use.
Note: The following FTP user numbers,databaseFor these three items, 1000 is fine by default. Do not change it to 0 here. After modification, there will be a 404 page error.
Two of the extra features
- Allows creation of fully qualified domains as subdomains
- Enforce disk limits
You can select it according to your needs. last clickmodify package, when finished start creating wordpress website.
Step 2: Install a WordPress Site
After modifying the package, clickThe main functionin the menuwebsite, don't click on the WordPress above, that needs to be paidplug-in, you can ignore this option.
existwebsiteClick Create Website to enter the Create Website page.
choose package, select the default Default here, or you can also create other types of package options,
select owner, here select admin, the default management user, if you want to assign it to other users, you need to create a new user.
Test Domain This switch needs to be turned off, and then enter your domain name, which needs to be resolved to the server IP address in advance. Do not enter the WWW domain name, just enter the main name directly, and CyberPanel will set the WWW domain name by default.
MailEnter a valid email address, which will be used to install wordpress
select php version, CyberPanel installs all PHP versions by default. Here, select your commonly used PHP version. The default version is 7.4, which is relatively low. It is recommended to choose php8.0
extra featuresCheckssl, It is more convenient to directly apply for an SSL certificate for the domain name when creating a website.
After selecting, click theCreate website, congratulations, your website has been created successfully.
After the website is successfully created, it is equivalent to opening a virtual host, and then you need to install wordpress on the virtual host
existwebsiteUnder the menu, clickwebsite list, at this time you can see that the website created above already exists in the website list, clickIssue an SSL certificate, will automatically apply for an SSL certificate for the domain name. Then click on the listupper right cornerofmanage, start configuring the virtual host
In the management page, pull the page to the bottom, you can see the wordoress+LSCache icon in the application installer, click the wordpress icon to install.
Enter the WordPress installation page. In the installation details, after entering your installation information, click Install Now. In about a minute, your WordPress will be installed.
It is very convenient to install wordpress with CyberPanel, you can install multiple wordpress websites. Different PHP versions can be selected to drive wordpress.
After wordpress is installed, enter the domain name you just set in the browser to access the wordpress website.
WordPress installed using CyberPanel is somewhat different from normal installation. CyberPanel installs the LiteSpeed Cache plug-in by default.
Step 3: CyberPanel configuration pseudo-static
Next you need to set wordpress toPseudo-staticAccess, that is, access with the end of .html.
CyberPanel usesOpenLiteSpeedFor web servers, OLS is compatible withAPACHE.htaccess file, but slightly different.
The main difference is that OpenLiteSpeed needs to add a slash/
Openwebsite listmiddlemanage,existConfigurationoptions, clickVirtual host configuration,turn up rewrite piece. Modify the block content to:
rewrite { enable 1 rules << <END_rules RewriteEngine On RewriteBase / RewriteRule ^/index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END_rules }
Then click Save, and the wordpress pseudo-static rules are configured.
Then configure the domain name access rules and clickVirtual host configurationnearbyrewrite rules.
Click Select Template and select the following rules to add.
- Force HTTP -> HTTPS
- Force WWW -> NON WWW
- Close the xmlrpc and trackback services
After returning to the wordpress background, after installing some wordpress plug-ins, the website can run normally.