Archive for the ‘Serverの構築と運用覚書き’ Category



LetsEncrypt SSL 証明書の更新(2025/8/13 実施)

Wednesday, August 13th, 2025

LetsEncrypt SSLの有効期限が2日後に迫ってきたので、いつもどおり更新作業をした。

以下、更新時のLog を転記:

[root@Server01 ~]# certbot certonly --manual
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): *.yamasnet.com
Renewing an existing certificate for *.yamasnet.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:

_acme-challenge.yamasnet.com.

with the following value:

t7WukSNQiZLhdtNk368IJLkVzrwcFE_juhlZlo3clHE

Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.yamasnet.com.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/yamasnet.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/yamasnet.com/privkey.pem
This certificate expires on 2025-11-10.
These files will be updated when the certificate renews.

NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[root@Server01 ~]# systemctl restart httpd
[root@Server01 ~]# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: yamasnet.com
    Serial Number: 5d93eeebba884f79aa4000ceffc9e0e13a6
    Key Type: ECDSA
    Domains: *.yamasnet.com
    Expiry Date: 2025-11-10 23:17:16+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/yamasnet.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/yamasnet.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

httpd を更新し、証明書を反映:

[root@Server01 ~]# systemctl restart httpd

更新後の証明書の確認:

[root@Server01 ~]# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: yamasnet.com
    Serial Number: 5d93eeebba884f79aa4000ceffc9e0e13a6
    Key Type: ECDSA
    Domains: *.yamasnet.com
    Expiry Date: 2025-11-10 23:17:16+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/yamasnet.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/yamasnet.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 



AlmaLinux10.0のクリーンインストールと Systemの作り直し

Friday, August 8th, 2025

ひと月前、AlmaLinux9.6にUpgradeし、その際、MajorUpdate版のAlmaLinx10への更新を検討するとしていた。

多少逡巡していたが、ここらでOSを更新し、このうえで我が家のサーバYamasNet.comシステムを整理しなおすことにし、AlmaLinux10.0のクリーンインストール、そのうえでシステムの作り直し作業を進めることにした。

これまでに、YamasNet.com上で実現していた諸機能のうち、Mailserver機能以外の、その他すべての機能の移植を終了したので、ここまでの一連の作業記録を記録しておいた。
(続きを読む)



28年前敷設の屋内LAN配線の見直し(1Gbps通信の実現)

Thursday, July 17th, 2025

28年前に我が家を新築するときに屋内LANを敷設している。現在もこのLAN設備を活用しているものの、その通信速度は100Mbpsであり、我が家で取り込んでいる光回線の1Gbpsに比べ、屋内LAN上では低速のままになっている。

屋内LANを1Gbpsの通信に耐えるものにするため、LANケーブルを新規格のCAT6、CAT6aのものに交換したいが、これには壁面を開口するなど大規模な工事になる。できれば、現在敷設しているLANケーブルで、なんらかの工夫で1Gbpsの速度を出す方策があればと考えた。

結論として、現在使用している屋内のケーブルを使用することでも、ギガイーサの速度がでるとの感触を得た。
(続きを読む)



AlamaLinux 9.6 に upgrade しておいた

Saturday, June 28th, 2025

AlmaLinux について 20 May 2025 に version 9.6 が Release。
27 May 2025 には、Major update version:AlmaLinux OS 10.0 が Releaseされた。

とりあえず、version 9.6へのupgradeをしておいた。
(続きを読む)



Apacheの動作に php.iniの変更反映には php-fpmを再起動必要

Monday, June 16th, 2025

WordPressで Media fileのupload可能sizeを大きくしようとし、php.ini上で関連部分の設定値を変更したのち、Apacheを再起動したが変更部分が反映できなかった。

これは、最近の構成ではWeb内でのPHPの処理をする際にPHP-FPMを介することが標準になっており、PHP.ini上で設定の変更したのち、PHP-FPMの再起動を行うことが必要になっていることによる。
(続きを読む)