mailコマンドでメールが読めない

ディスクの容量が圧迫したので容量削減が多いファイルを探していたのですが、「Mailbox」の容量が大きいので受診したメールを削除しようと思い、メールコマンドを入力しても下記のように「No mail for 」が表示されメールが読めませ ...
特定のIPアドレスのみWordPress管理画面にアクセスを許可する方法

WordPressのセキュリティ対策で管理画面へアクセスは、特定のIPアドレスのみアクセスできるように設定していますが、WordPressの ...
ソースからコンパイルしたPHPで、php.iniを編集しても設定が反映しない

ソースからコンパイルしたphpで、/etc/php.ini で設定を変更しても変更内容が反映しません。もちろんApacheの再起動も行っています。
php.ini の場所を確認する

通常は、phpの設定ファイルの「php.ini」は「/etc/php.ini」にありますが、ソースからコンパイルしたサーバーのphpの「php.ini」を変更しても設定内容が反映されません。
php.ini の場所がソース ...
rsyncコマンドで特定のディレクトリを除外してコピーする

scpコマンドで特定のディレクトリを除外してコピーしたい場合、scpコマンドでは直接そのような機能がないようです。
scpコマンドの代わりにrsyncコマンドを使用して特定のディレクトリを除外してディレクトリをコピーします。r ...
無料SSL証明書(Let’s Encrypt)の自動更新でエラーログ

Zabbixで「/var/log/messages」のログ監視をしていますが、以下のエラーが出ていました
Jun 13 00:56:37 WEB01 systemd: Failed to start This service a ...Nextcloudでログのパラメータ変更(occコマンド)

Nextcloudでログ関係のパラメータを変更します。Nextcloudをアップデートして管理画面にログインするとログファイルにWARNINGが上がっていたりして警告が表示されるケースが多くなってきたのでロ ...
vsftpdでFTPS接続をできるように設定する

vsftpdでFTPS接続が必要になりFTPS接続できるように設定を追加しました。
FTP接続では制御用コネクションと ...
Nextcloudのログの場所

Nextcloudの管理画面にログインするとログファイルに過去のエラーがあるとの警告がでるケースが多くなってきました。過去の分で修正しているので気にしなくてもいいですが、Nextcloudのログファイルはどこにあるのか気になったの調べ ...
synsyncで同期しているレポジトリのURL変更

以前の記事(チェックアウトしたSubversionのレポジトリのURL変更)でチェックアウトしたSubversionのレポジトリのURL変更は記載しましたが、今回は夜間にCronでsynsyncを利用してミラーリングしているレポジトリ ...
チェックアウトしたSubversionのレポジトリのURL変更

サーバーの整理等でSubversionのURLが変更になりました。チェックアウトしたCentOS内の作業用のレポジトリがあります。一度作業用の領域を削除して再度チェックアウトすればいいですが、ファイルの数も多く時間がかかりますのでUR ...
phpMyAdminで複数のサーバーを管理する

同一サーバーで、ポートを変更して複数のMariaDB(MySQL)が稼働しているサーバーがあります。以前はポートごとにphpMyAdminを設定して管理していましたが、「config.inc.php」に各ポートの設定をすれば1個のph ...
Linuxで「*.gz」ファイルを解凍する

ファイルのバックアップで容量節約のために圧縮していましたが、いつもは「tar.gz」で圧縮していますが、「gz」形式で圧縮したファイルがあって解凍する時に、コマンドがわからないので調べました
Curlでブログ内でアフィリエイト広告・Googleアドセンス広告が表示されているか確認する

Wordpressで運営しているブログでテーマを更新すると、たまにアフィリエイト広告・Googleアドセンス広告を設定しているウィジェットが外れている事があります。以前は一ヶ月広告が外れている状態に気付かなかった事がありました。
メモリ使用率が多いプロセスの上位10個を調べる

RHEL系でメモリ使用量が多いプロセスを調べるときに「ps」コマンドを利用しますが、このコマンドを利用していてメモリ使用量が多い順に表示するには「–sort=-%mem」のオプションでメモリの使用量でソートします。そのごh ...