Apache httpd : Blog System : WordPress2025/03/04 |
Install the Blog System, WordPress. |
|
[1] | |
[2] | |
[3] | Install other required PHP modules. |
root@www:~ #
pkg install -y php83-mysqli php83-pear php83-mbstring php83-xml php83-fileinfo php83-session php83-curl php83-zip php83-zlib php83-gd php83-dom php83-enchant php83-ftp php83-exif php83-tokenizer php83-pecl-imagick hunspell
root@www:~ #
vi /usr/local/etc/php-fpm.d/www.conf
;; add to last line
;; maybe you need to configure parameters below for your usage
php_value[max_execution_time] = 600
php_value[memory_limit] = 2G
php_value[post_max_size] = 2G
php_value[upload_max_filesize] = 2G
php_value[max_input_time] = 600
php_value[max_input_vars] = 2000
php_value[date.timezone] = Asia/Tokyo
service php_fpm reload |
[4] | Create User and Database on MariaDB for WordPress. |
root@www:~ # mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 9 Server version: 10.11.11-MariaDB FreeBSD Ports Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. root@localhost [(none)]> create database wordpress; Query OK, 1 row affected (0.00 sec) root@localhost [(none)]> grant all privileges on wordpress.* to wordpress@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec) root@localhost [(none)]> exit Bye |
[5] | Configure Apache httpd for WordPress. |
root@www:~ # fetch https://wordpress.org/latest.tar.gz root@www:~ # tar zxvf latest.tar.gz -C /usr/local/www/apache24/ root@www:~ # chown -R www:www /usr/local/www/apache24/wordpress
root@www:~ #
vi /usr/local/etc/apache24/Includes/wordpress.conf # create new Timeout 600 ProxyTimeout 600 Alias /wordpress "/usr/local/www/apache24/wordpress/" DirectoryIndex index.php index.html index.htm <Directory "/usr/local/www/apache24/wordpress"> Options FollowSymLinks AllowOverride All Require all granted <FilesMatch \.(php|phar)$> SetHandler "proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/" </FilesMatch> </Directory> service apache24 reload |
[6] | Access to the URL [https://(Server's Hostname or IP address)/wordpress/] with Web browser on any Client, then following screen is displayed. Click [Let's go!] button. |
![]() |
[7] | Configure Database connection information. Specify MariaDB user and database you added on [4]. |
![]() |
[8] | Click the [Run the installation] button. |
![]() |
[9] | Set Blog site title and Administrative user account for WordPress. After clicking the [Install WordPress] button at the bottom, if no error is shown, setup is complete. |
![]() |
[10] | Login with the administrative user you added in [9]. |
![]() |
[11] | This is the WordPress management site. You can add daily posts and other many tasks on here. |
![]() |
[12] | For Blog's top page, it's [(your server's hostname or IP address)/wordpress/]. Try to add a post to verify working normally. |
![]() |
Sponsored Link |
|