Joomla is an open-source content management system that allows you to build personal websites, enterprise websites, or powerful online applications on ECS instances that support PHP and MySQL databases.
Software versions
- Operating system: In the example provided in this topic, CentOS 7.8 is used.
- Apache: A web server with stable performance. In the example provided in this topic, Apache 2.4.6 is used.
- MySQL/MariaDB: A database management system. In the example provided in this topic, MySQL 14.14 is used.
- PHP: A server-side scripting language embedded in HTML documents. In the example provided in this topic, PHP 7.0.33 is used.
- Joomla: In the example provided in this topic, Joomla 3.6.0 is used.
Prerequisites
Step 1: Create a Joomla database
- Execute the following command to access the MySQL database as the root user. The password of the root user is the one you specified during MySQL configuration.
- Execute the following command to create a database for Joomla.
- Create a user for the database created for Joomla.
- Grant all permissions to the user.
- Execute the following command to make the preceding commands take effect.
- Execute the following command to exit the MySQL database.
Step 2: Download and configure Joomla
- Execute the following command to download the Joomla installation package. In the example provided in this topic, Joomla 3.6.0 is downloaded.
- Execute the following command to move the installation package to the website root directory.
- Execute the following command to enter the website root directory.
- Execute the following command to decompress the installation package.
- Execute the following command to change directory permissions.
- Execute the following command to restart the httpd service.
Step 3: Install Joomla
- Enter http://<ECS instance EIP>/ in your local browser to access the Joomla website.
- If the following output is displayed, the Joomla website is set up successfully.
- Select a language, enter the configuration information, and click the "Next" button.
- Confirm the configuration information and click the "Install" button.
- After the installation is complete, click "Delete installation directory" to delete the installation directory.
- At this point, the Joomla basic management platform is set up.
- Click the "Website" button or visit http://<ECS instance EIP>/ to access the Joomla homepage.
-
- Click "Backend management" or visit http://<ECS instance EIP>/administrator to access the Joomla backend management page.
-
Step 4 (Optional): Resolve the domain name
You can configure a domain name for your website, eliminating the need to use a complex, less secure EIP to access it. You can perform the following steps to specify a domain name for the website.
- Apply for an ICP filing for your domain name.
- If your domain name points to a server located in the Chinese mainland, you need to apply for an ICP filing for your domain name. Otherwise, the website is not accessible.
- Configure domain name resolution.
- You need to resolve your domain name to the EIP to access your website.
- After you complete the preceding steps, you can enter http://<domain name> in your local browser to access the WordPress website.
Step 5 (Optional): Enable HTTPS for the website
When a user accesses your website over the HTTP protocol, the browser warns the user that the connection is not secure. We recommend that you enable HTTPS secure communication for your website. This ensures encrypted data transmission between users and your website, effectively defending against network hijacking, information leakage, and other threats.