How to Deploy WordPress on Zenifra
Complete tutorial to deploy WordPress on Zenifra.
First Step
Log in to the console, select the Create Project tab on the left menu.
After selecting Create Project, we'll start gathering the necessary information!
Second Step
Field Details
Project Name
The project name is important for organizing projects and for the domain!
Here, you can choose any name you want, but a tip: For projects on the "basic" plan, the domain name to be used will be the project name.
Image
The project image is an OCI-standard image!
For WordPress, we'll use the 6.9.0-php8.2-apache available WordPress image with PHP and Apache:
docker.io/library/wordpress:6.9.0-php8.2-apacheFor more information about WordPress and its different images, visit the external link: WordPress
Registry
For WordPress, we'll use the official public image, which doesn't require authentication to download!
Plan
To run WordPress, we recommend the "Premium Plus" plan, which provides 2vCPU and 2GB of RAM, ideal for ensuring good site performance.
For high-traffic sites, consider larger plans.
Persistent Storage
For WordPress, it is highly recommended to use persistent storage, as you will have media uploads, plugins, and themes saved. Without persistent storage, you will lose all data when restarting the instance.
Storage Size
For testing purposes, we'll proceed with a size of 10GB, which is suitable for a basic WordPress site.
For production environments, consider larger sizes as needed for media storage.
Port Number
By default, WordPress runs on port 80 (HTTP) inside the container!
Payment Plan Model
Here, since we'll be running this for testing purposes, we'll select the "hourly" model, which will charge a minimum of 1 hour of project usage.
For production environments, the monthly model may be more advantageous.
Number of Instances
For WordPress, we'll proceed with just 1 instance initially. WordPress doesn't have native load balancing, so multiple instances require additional shared storage configuration.
Environment Variables
WordPress needs some basic environment variables to connect to the database:
WORDPRESS_DB_HOST = <database-address>
WORDPRESS_DB_USER = <database-user>
WORDPRESS_DB_PASSWORD = <database-password>
WORDPRESS_DB_NAME = <database-name>Note: WordPress needs a MySQL or MariaDB database. You can create a database separately or use a managed database service.
Total Cost
In this section, you can view the total cost of the project!
Remember that Zenifra offers discounts for properly enrolled students and free access for partnered schools and universities!
In addition, new users get R$30 monthly for 3 months to use as they like, on any plan!
Third Step
After filling in all the information above, click the "Create Project" button, which may take a few seconds to complete the project creation!
Once created, a new tab will automatically open showing the URL of the project to access.
Click on this link, which will open a new tab in your browser, redirecting you directly to the created WordPress! You will be directed to the WordPress initial setup wizard.
Finalizing
If you want to stop/terminate the instance, go to the Projects tab, search for the created project, and click on the project name, which will open a new page containing the project's information.
When accessing the screen, click on "Settings" and "Delete," which will properly delete the project.
For more information on this screen and how to gain insights from your business, proceed to the next documentation!