PHPエラー : Fatal error: ‘break’ not in the ‘loop’ or ‘switch’ context

PHPExcelを使用しているPHPでPHP 5.x から PHP 7.xに移行すると、「Fatal error: ‘break’ not in the ‘loop’ or ‘switch’ context」のエラーが上がりました。P ...
PHPエラー : Warning: Use of undefined constant NONEXISTENT – assumed ‘NONEXISTENT’

php 5系からphp 7.3に移行する作業あって移行後以下のようなエラーが上がりました
Warning: Use of undefined constant NONEXISTENT - assumed 'xxxxxxxx' ( ...qmailでsubmission(587)を利用する

今は使用してる人は少ないかと思いますが、「qmail」を利用しているメールサーバーで25番ポートのアクセスが多くなり、「SYN flooding on port 25. Sending cookies」のエラーが多発するようになりまし ...
バッチファイルで日付/時間をファイル名につけて、ファイルをコピーする

Windowsのバッチファイルでファイルをコピーする時に、日付と時刻をファイル名につけてコピーするには、「date」や「time」などの変数して、その中の値を ...
バッチファイルでコメントアウトを利用する

PHPや他のプログラムのようにコメントアウトで処理の説明を書いてたりしたい場合、バッチファイルでどの記号で使えるかわからなかったので調べてみました。
バッチファイルでのコメントアウト「rem」コマンドを使用します。remコマン ...
WordPressを、memcachedで高速化する

以前の記事「CentOS 7 MemcachedをPHPと連携して使用する」でWEBサーバーにMemcachedをインストールしたので、Wordperss ...
CentOS 7 MemcachedをPHPと連携して使用する

PHPでMemcachedを利用して高速化します。Memcachedはメモリを使ったキャッシュシステムでサーバーのメインメモリ上にファイルやデータベースの内容を一時保管して高速に読み出せます。特にデ ...
Let’s Encrypt証明書発行を「acme.sh」で発行する (ワイルドカード)

CentOS 6系のサーバーでPythonのバージョンが古く、最新のcertbot を使えなかったのでシェルスクリプトで動作する「acme.sh」でワイルドカード形式の無償SSL証明書を発行し ...
CentOS xfsでフォーマットしてディスクを追加する

使用しているクラウドサーバーでディスクを増設する機会があり、その際にCentOS7のデフォルトのファイルシステムとなっているxfsのファイルシステムで追加しました
ディスクを追加したサーバーですが、GMOクラウドで運用して ...
Let’s Encrypt証明書発行から削除する方法

発行したLet’s Encrypt証明書を削除するには、以下のディレクトリにあるファイルを削除すれば、証明書が削除することができます
/etc/letsencrypt/arch ...Let’s Encryptで、SAN(Subject Alternative Name)証明書を作成する

Let’s Encryptで、複数のドメインを対応した証明書はワイルドカード証明書で対応できますが、SAN(Subject Alter ...
openssl コマンドで SSL証明書の有効期限を確認する

ブラウザでSSL証明書を確認するのはブラウザのURL付近の鍵マークをクリックすれば確認できますが、LinuxのCUI環境だとブラウザも使えないのでSSL証明書の有効期限を確認するには「op ...
CentOS 6 のサーバーでCurl「curl: (35) SSL connect error」のエラーの場合

古めのCentOS 6.xのサーバーで、curlでSSLサイトに接続すると「curl: (35) SSL connect error」のエラーが表示され接続できない場合があります
$ curl (35) SSL connect ...Windows 10 DNSキャッシュのクリア・確認

DNS変更をしてLinuxサーバーでは新しいDNSに切り替わっているに、Windows10で「nslookup」で確認すると古いままDNSだったり新しいDNSだったり不安定な事がありました。CentOSのサーバ ...
Let’s Encrypt でワイルドカード証明書を発行する

Certbot Version 0.22.0よりワイルドカード証明書が取得可能になりまたので、お名前COMで運用しているドメインで「 ...