業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

FreeBSD14.4 : MySQL8 , WordPress

1. MySQL Install

Currently, MySQL versions 8.0, 8.4, 9.1, and 9.4 are available for installation. In this guide, we will install MySQL 8.4.

Check the version

Enable and start MySQL

MySQL Startup Verification

Running Security Scripts

To log in to the mysql server afterwards
mysql -u root -p
Enter password: Password set above

2.WordPress Install

2.1 Creating a Database

Create a database for WordPress (for this example, we’ll use the database name “wp_db”, the username “wp_user”, and the password “?Y123456y”)

2.2 Downloading and Installing WordPress

①Download and Extract

②WEditing WordPress Configuration Files

Changes made to wp-config.php

③Moving Files

After confirming that the files have been moved, delete the WordPress directory and the downloaded latest.tar.gz file.

④Set the owner of the WordPress directory to Apache

⑤Access via a web browser
Go to http://[FQDN]/wp-admin.
If successful, the following screen for entering WordPress installation information will appear.

「Your PHP installation appears to be missing the MySQL extension which is required by WordPress.」When displayed

Installing the MySQL Module

Edit php.ini to enable extension=mysqli

In rare cases, an error may occur due to the absence of the PHP extension zlib.
In that case, install php84-zlib.

Once the installation is complete, restart Apache and php-fpm.

On the following input screen
Site Title   Any name
Username   Any name
Password  Any password
Your Email  Administrator's email address

Enter the information and click "Install WordPress". Remember to enter your "username" and "password" as they are required to access the WordPress administration screen.

Copied title and URL