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 がインストールされていないか、無効化されています。」という表示がされている ...
特定のIPを以外は、BASIC認証で認証をかける【.htaccess】

Apache 2.2 で利用している「.htaccess」を参考にして、Apache2.4 系でIP制限をかけていました。
制限は、内容は以下の通りです。
特定のIPアドレス以外は ...
php.ini を変更したのに、Apacheを再起動しても反映されない

WordPressで使用しているテーマを最新版に反映しようとテーマのZIPファイルをアップロードすると、「アップロードしたファイルはphp.iniで定義さ ...
Rocky Linux に移行してから、dnf update が失敗

Rocky Linux にバージョンアップしてから、しばらくたって、「dnf update」を実行したら下記のようにエラーになりました
# dnf updateLast metadata expiration check: 0: ...root権限でrsyncを実行する

webディレクトリがあるディレクトリ等でrysncコマンドを実行すると所有者権限でコピーできないディレクトリやファイルがあったりします。同一サーバー内だとroot でrsyn ...
mysqld_multiで複数のインスタンスを起動する【MariaDB】

MariaDBで複数のMySQLのインスタンスを起動するには「mysqld_multi」を利用するとできます。
検証したサーバーは、少し古くCentOS 7系で、Ma ...