特定のIPを以外は、BASIC認証で認証をかける【.htaccess】

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

WordPressで使用しているテーマを最新版に反映しようとテーマのZIPファイルをアップロードすると、「アップロードしたファイルはphp.iniで定義さ ...
Apache 「httpd: Could not reliably determine the server’s fully qualified domain name」のエラー

Apache を再起動すると、ログに下記のように「httpd: Could not reliably determine the server’s fully qualified domain name」のエラーが表示され ...
Zabbix Agentのインストール方法 【zabbix 5.0】

Zabbix Agentをインストールする方法を紹介します。事前にZabbix Server をインストールしておく必要があります。今回インストールするZabbix Ag ...
「[so:warn] module xxx is already loaded, skipping」のエラー【Apache】

Apacheは問題なく起動しているが、「/var/log/messages」を確認すると、「module cgi_module is already loaded, skipping」と表示されています。
$ sudo tail ...zabbix-agentのactive checkが失敗する

Zabbix 5.0 サーバーからログ監視をおこないたいので、アクティブチェックの監視項目を追加しましたが、アクティブチェックが有効にならずに、ログ監視ができません。
同じサーバー間のアクティブチェックは成功しますが、別の ...
監視ツール NetDataアンインストール

リアルタイムでパフォーマンスがモニタリングできる「NetData」ですが、簡単にインストールできて見た目も綺麗なので一時的には使用していましたが、その後、munin , zabbix などの監視ツールに移行したので使用していませんでし ...
Rocky Linux に移行してから、dnf update が失敗

Rocky Linux にバージョンアップしてから、しばらくたって、「dnf update」を実行したら下記のようにエラーになりました
# dnf updateLast metadata expiration check: 0: ...LVMで増設ディスクを追加する

LVMでルートパーティションを構築している環境で、ルートパーティションの空き容量が少なくなったきたので、増設ディスクを追加して、そのディスクもLVMに追加します
下記のよ ...
root権限でrsyncを実行する

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

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

lsコマンドで、「ls -l」 と入力するとファイル・ディレクトリのタイムスタンプが表示されますが、更新された月の表示が英語の略式でわかりにくかったり、昔のファイルの場合は時間が表示されなかったりするので、「2021/10/26 10 ...
CentOS 8 から Rocky Linux に移行作業

CentOS 8 のサポート期間の終了が近付いてきたので、そろそろ「Rocky Linux」 , 「AlmaLinux」に移行を考える時期なので、サーバーを利用している「Vultr」で最小構成でC ...
PostgreSQL(psql)の接続と切断

普段はMySQLを使用しているので、PostgreSQLとはDBへの接続方法やDBの選択や終了などを違うので簡単にまとめてみました
psqlへの接続PostgreSQLへの ...
PostgreSQLで、データベースの一覧を確認する

久しぶりにPostgreSQLを触って、データベース一覧を表示しようと思ったら、以下のようにエラーになりました。
MySQLとコマンドが違うので、「show databases」と叩くと、「ERROR: unrecognize ...