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

Rocky Linux10.0 : MySQL8 , WordPress Install

MySQL8 Install

charset.cnf   Create a new one with the following contents
Set default character encoding utf8mb4 for 4-byte characters such as pictographs

Use the "mysql_secure_installation" command to set the root user password and set some basic policies

WordPress

1.MySQL 8.4 Configuration Changes

In MySQL 8.4, the “mysql_native_password” authentication plugin is disabled by default in favor of “caching_sha2_password”.
To use the “mysql_native_password” authentication plugin, add the following configuration to the [mysqld] section of the configuration file

2.Create database for WordPress

As an example, assume database [wp_db] database user [wp_user] password [?Ww123456]

3.Wordpress Install

4.Edit WordPress configuration file

Add the following to the last line
If you do not do this, you will be asked for FTP connection information when you add the plugin.
define('FS_METHOD', 'direct');

5.Moving Files

Move the expanded contents under /var/www/html/[domain name for wordpress]

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

Make apache the owner of the wordpress directory.

6.Starting wordpress installation

You can use your browser to go to http://[FQDN]/wp-admin/install.php
If successful, the following WordPress installation information input screen will be output.

「Your PHP installation appears to be missing the MySQL extension which is required by WordPress.」When displayed
Install php library-related software if not already installed.

Again go to http://[FQDN]/wp-admin/install.php

Click on "Login"

User Name : The user name you have just set
Password : User's password you have just set
and click "Login".

After successfully logging in, you will be able to access the following WordPress admin page

Copied title and URL