「mod_rewrite」で、「.htaccess」と「httpd.conf」の違い

「mod_rewrite」を利用して、 のようなURLで、test.doへのアクセスでパラメータにuid=xxxxが含む場合は、uidのパラメータを削除したURLを渡すようにしたいので、下記のような「.htaccess」を作成してテス ...
Cronで優先度を下げて実行する[niceコマンド]

niceコマンドで、優先度を下げてcronを実行する
cronで30分おきに実行しているプログラムがあって、そのプログラムを実行すると負荷が上がってCPUが高くなります。
niceコマンドでは、実行するプログラムの優先度を上げた ...
マウントエラー「mount: /dev/sdx1 already mounted or /mnt/ busy」

mountコマンドでマウント時に下記のエラーがあがり、マウントできませんでした。
mount:/dev/sdc1 already mounted or/mnt/busy
FDISKしてもエラーになるし、DISK ...
サーバーの型番・メーカー・シリアル番号を調べる

「dmidecode」でサーバーの型番・メーカー・シリアル番号を調べる
データーセンターに設定しているサーバーでラック図などの資料が古かったり、不足していて、設置しているサーバーのメーカー、型番、シリアル番号がわからなかったりする場合に ...
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 ...