Apache | No pain,No gain. https://ufirst.jp/memo Mon, 27 Jun 2022 10:58:16 +0000 ja hourly 1 https://wordpress.org/?v=6.9.4 https://i0.wp.com/ufirst.jp/memo/wp-content/uploads/2022/08/apple-touch-icon-76x76-precomposed.png?fit=32%2C32&ssl=1 Apache | No pain,No gain. https://ufirst.jp/memo 32 32 126496119 CentOS Stream9へApache HTTPD SERVERとPHP 8.1をインストール https://ufirst.jp/memo/2022/06/centos-stream9%e3%81%b8apache-httpd-server%e3%81%a8php-8-1%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/ https://ufirst.jp/memo/2022/06/centos-stream9%e3%81%b8apache-httpd-server%e3%81%a8php-8-1%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#respond Mon, 27 Jun 2022 10:58:16 +0000 https://ufirst.jp/memo/?p=3564 dnf update
reboot
firewall-cmd –add-port=80/tcp –permanent
firewall-cmd –add-port=443/tcp –permanent
firewall-cmd –remove-service=cockpit –permanent
firewall-cmd –remove-service=dhcpv6-client –permanent
firewall-cmd –reload
timedatectl set-timezone Asia/Tokyo

dnf -y install httpd-devel
dnf -y install mod_ssl

dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
dnf module install php:remi-8.1

systemctl restart httpd

]]>
https://ufirst.jp/memo/2022/06/centos-stream9%e3%81%b8apache-httpd-server%e3%81%a8php-8-1%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/ 0 3564
Let's Encryptの自動更新を設定していたのに、うまく更新されていなかった件 https://ufirst.jp/memo/2020/06/post-2602/ https://ufirst.jp/memo/2020/06/post-2602/#respond Sun, 28 Jun 2020 16:33:52 +0000 https://ufirst.jp/memo/?p=2602 2020/06/28 のSSL証明書の有効期限が切れてました。
SSL証明書はLet’s Encryptを使わせてもらっておりまして、自動更新されるようにcronにcertbotコマンドもしかけておりましたが有効期限が切れてしまっておりました。

原因は単純です。crontab で設定していたコマンドが以下でした。

certbot renew --dry-run
--dry-run
のオプションがあるとSSL証明書は実際には更新されません。このオプションを外し、次のコマンドを実行しました。
certbot renew
このあとApache再起動で無事SSL証明書が更新されました。
systemctl restart httpd

無知により起こったミスでした。

]]>
https://ufirst.jp/memo/2020/06/post-2602/feed/ 0 2602
ApacheのソフトウェアLBでエラーハンドリング https://ufirst.jp/memo/2015/02/apache%e3%81%ae%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2lb%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%8f%e3%83%b3%e3%83%89%e3%83%aa%e3%83%b3%e3%82%b0/ https://ufirst.jp/memo/2015/02/apache%e3%81%ae%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2lb%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%8f%e3%83%b3%e3%83%89%e3%83%aa%e3%83%b3%e3%82%b0/#respond Wed, 04 Feb 2015 08:13:34 +0000 http://home.uchida.asia/memo/?p=561 以下を参考に設定可能
http://d.hatena.ne.jp/rougeref/20131031#1383181296

]]>
https://ufirst.jp/memo/2015/02/apache%e3%81%ae%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2lb%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%8f%e3%83%b3%e3%83%89%e3%83%aa%e3%83%b3%e3%82%b0/feed/ 0 561
OPENSTREETMAPで地図タイルサーバーを構築する https://ufirst.jp/memo/2013/06/openstreetmap%e3%81%a7%e5%9c%b0%e5%9b%b3%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b/ https://ufirst.jp/memo/2013/06/openstreetmap%e3%81%a7%e5%9c%b0%e5%9b%b3%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b/#respond Wed, 26 Jun 2013 14:11:44 +0000 http://home.uchida.asia/memo/?p=247 OSMのデータを使ってWEB配信する手順が記載されている。
じつに勉強になる。
http://lab.space-i.com/?p=880

]]>
https://ufirst.jp/memo/2013/06/openstreetmap%e3%81%a7%e5%9c%b0%e5%9b%b3%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b/feed/ 0 247
Apahceでバーチャルホストの設定 https://ufirst.jp/memo/2013/06/apahce%e3%81%a7%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a/ https://ufirst.jp/memo/2013/06/apahce%e3%81%a7%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a/#respond Sat, 15 Jun 2013 16:26:10 +0000 http://home.uchida.asia/memo/?p=195 /etc/httpd/conf/httpd.conf
以下のコメントを外す

#NameVirtualHost *:80
↓ 
NameVirtualHost *:80

httpd.confへ以下を追加
<VirtualHost MYDOMAIN:80>
DocumentRoot /var/www/vhosts/
ServerName MYDOMAIN
ErrorLog logs/MYDOMAIN/error_log
CustomLog logs/MYDOMAIN/access_log common
</VirtualHost>

]]>
https://ufirst.jp/memo/2013/06/apahce%e3%81%a7%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a/feed/ 0 195
apache httpd.confの構文チェック https://ufirst.jp/memo/2012/09/apache-httpd-conf%e3%81%ae%e6%a7%8b%e6%96%87%e3%83%81%e3%82%a7%e3%83%83%e3%82%af/ https://ufirst.jp/memo/2012/09/apache-httpd-conf%e3%81%ae%e6%a7%8b%e6%96%87%e3%83%81%e3%82%a7%e3%83%83%e3%82%af/#respond Sat, 22 Sep 2012 16:48:20 +0000 http://home.uchida.asia/memo/?p=121 Apacheを停止する前にこのコマンドでチェック

apachectl -t
]]>
https://ufirst.jp/memo/2012/09/apache-httpd-conf%e3%81%ae%e6%a7%8b%e6%96%87%e3%83%81%e3%82%a7%e3%83%83%e3%82%af/feed/ 0 121