mailx コマンドで添付ファイルをつけてメールを送る

mailxコマンドで添付ファイルを送る場合ですが「-a <添付ファイル>」とすれば添付ファイルをつけてメールを送信することができます
「mailx」コマンドがインストールされていない場合は、yum, dnfコマ ...
diff で改行・空白を無視して比較する

diffコマンドは、ファイルを比較する時によく使うコマンドですが、空白や改行も比較対象として比較されます。
その場合は、「-w」、「-B」のオプションを利用すると、空白を無視したり、空行の ...
tinydnsでSPFレコードを設定する

tinydnsは、小さく、信頼性の高いDNS権威サーバ/キャッシュサーバですは、開発がとまっているようで使っている人は少ないと思いますが、古いサーバーでこのDNSサーバーを利用している環境があって、そのサーバーに送信ドメイン認証のひと ...
Nextcloud の警告「メモリキャッシュが設定されていません。」

Nextcloud で「概要」→「セキュリティ&セットアップ警告」を確認すると、警告メッセージが表示されてました。
メモリキャッシュが有効になっていない場合や ...
Nextcloud の警告「データベースにいくつかのインデックスがありません。」

Nextcloud で「概要」→「セキュリティ&セットアップ警告」を確認すると、下記のような警告メッセージが表示されてました。
データベースにいくつかのインデックスがありません。 大きなテーブルにインデックスを追加すると、自動的 ...mod_rewrite クエリー文字列でパーセントがあるエンコードされるのを避ける

「example.com/test.php?id=ID%2id1234」のようなクエリー付きのパラメータでmod_rewrite でリダイレクトをするときに「%」を含む場合に、「%2」が「%253」のように変更される場合があります
Nextcloudでアップデートに失敗して再度アップデートできなくなった場合の対処方法

NextcloudのWEB画面にログインしたらバージョンをみると古くなっていたので、「概要」ページ内で最新版にアップデートすると「Verify integrity」の所で失敗になりました。
再度、アップデートすると「Ste ...
DNFの自動アップデートを設定する(dnf-automatic)

CentOS 7 では、yum-cron で、パッケージのアップデートを自動実行できていましたが、CentOS 8 では「dnf-automatic」で、パッケージのダウ ...
Cockpit で、SSL証明書導入してSSL化

Web UI 上で Linux サーバの管理ができる「Cockpit」ですが、通常だと or のような、URLにアクセスすると利用できます。
IPアドレスのサーバーを登録SSL証明書を発行する【ZeroSSL】

使用しているサーバーはほとんどが名前ベースのWEBサーバーですが、一部のサーバーでIPアドレスベースで使用しているコンテンツがあります。WEBベースでサーバーを ...
オプションのモジュール intl がインストールされていないか、無効化されています【WordPress】

WordPressのサイトヘルスステータスで、「警告 オプションのモジュール intl がインストールさ ...
Apache 2.4 でBASIC認証とIP制限を併用する【.htaccess】

Apache 2.4の「.htaccess」で、BASIC認証で認証されたユーザーで、かつ、許可されたIPアドレスのみアクセス可能のように、BASIC認証とIPアドレスのアクセス制限をAND条件のように制限したいとの要望がありました。 ...
CentOS で「whois」コマンドを利用する

管理しているドメインで、有効期限を近付いてくると管理しているレジストラからメールが来るのですが、自動更新しなかったりして更新忘れ怖いので、有効期限を定期的にチェックする方法が無いか調べていたら「whois」コマンドがありました。これを ...
WordPressに必要なPHPモジュール「imagick」をインストールする

サイトヘルスに「オプションのモジュール imagick がインストールされていないか、無効化されています。」という表示がされている ...
グラフの文字化け・空白対策で、日本語化【Zabbix 5.0】

Zabbixで、グラフを表示すると下記の画像のように文字が表示されない状況でした
サーバー側で日本語フォントが入っていないのが原因と思い確認すると、下記のフォントしかありません。IPAゴシックをインストールして、Zabbi ...