How to install WordPress with Apache on FreeBSD

How to install WordPress with Apache and Let's Encrypt SSL on FreeBSD

In this FreeBSD tutorial, we will learn how to install WordPress using an Apache web server with SSL from Let’s Encrypt for HTTPS.

Free credit $100 for new account at Vultr. Register now

Install Apache

Install Apache web server.

Enable apache24 service.

Run the apache24 service.

Browse http://serverIP to test if the Apache web server is running properly.

Configure VirtualHost

Next, configure the virtual host for the domain musaamin.my.id.

Create a folder for the document root.

Create a folder to store virtual host configuration files.

Create a folder for Apache logs.

Create a virtual host configuration file.

Fill in the virtual hosts configuration file.

Open the Apache configuration file.

Enable the ServerName option and enter the server IP address.

Add include vhosts at the bottom of the line.

Check for configuration errors.

If there is no mistake.

Restart the Apache service.

Browse http://musaamin.my.id.

Install PHP

Install PHP 7.4 and its extensions.

Create a configuration file to connect Apache with PHP.

Fill in the php.conf file.

https://www.youtube.com/watch?v=qZkNDpylDoE

Create a php.ini file

Restart the Apache service.

Create the info.php file.

Browse http://musaamin.my.id/info.php

Install SSL Let’s Encrypt

Open the Apache configuration file.

Enable SSL module and rewrite.

Restart the Apache service.

Install certbot Let’s Encrypt.

Request SSL for the musaamin.my.id domain.

If successful, certbot changes the virtual host configuration file musaamin.my.id.conf.

The contents of the virtual hosts file.

Certbot also creates new file.

The contents of the virtual hosts file.

Browse https://musaamin.my.id.

Install MariaDB

Install MariaDB database.

Activate and run the MariaDB service.

Secure MariaDB installation.

Answer the question.

Login MariaDB

Create a database for WordPress.

Install WordPress

Download the latest WordPress.

Extract wordpress.tar.gz

Copy the contents of the wordpress folder to the document root.

Change ownership.

Delete the index.html and info.php files created earlier.

Browse https://musaamin.my.id to install WordPress.

  • Continue
  • Let’s go!
  • Enter the database name, username, and password that was created in MariaDB. For Database Host = 127.0.0.1. Submit
  • Run the installation
  • Enter the site title, username, password and email. Install WordPress.

WordPress has finished installing.

Browse https://musaamin.my.id and login to the dashboard.

If you found this article helpful and would like to support my work, consider making a donation through PayPal. Your support helps me continue creating useful content and tutorials. Thank you!

Donate via PayPal: https://paypal.me/musaamin

Leave a Reply

Your email address will not be published. Required fields are marked *