2020-01-01から1年間の記事一覧

Crucial ct1000mx500ssd1 Failed with Perc h710p (M3CR032)

https://www.reddit.com/r/homelab/comments/jhb6jj/crucial_ct1000mx500ssd1_failed_with_perc_h710p/https://serverfault.com/questions/1011182/crucial-mx500-new-firmware-rev-m3cr032-causes-raid-controller-failureshttps://www.crucial.jp/support/…

mod_fcgid: ap_pass_brigade failed FcgidOutputBufferSize

https://www.tablix.org/~avian/blog/archives/2016/05/on_ap_pass_brigade_failed/FcgidOutputBufferSize FcgidOutputBufferSize 1073741824 https://stackoverflow.com/questions/42030908/configuration-mod-fcgid-for-large-process-large-site 1GB Synt…

wordpress 静的ファイル

https://wordpress.stackexchange.com/questions/24587/how-do-i-skip-wordpresss-404-handling-and-redirect-all-404-errors-for-static-fi

GeoLite GeoLite2

ダウンロードできるのはMaxMind DB形式かcsv形式となっている。古い形式であるdatはもういない。 GeoLiteのLegacy版datがダウンロードできなくなったのでなんとかする話 - Qiita GeoLite2 https://dev.maxmind.com/geoip/geoip2/geolite2/アカウント登録が必…

rundeck freebsd

インストール System Requirements | Rundeck Docs pkg install rundeck3 /usr/local/share/rundeck/rundeck.war がインストールされる /etc/rc.conf rundeck_enable="YES" 書き込みで問題がでるため chown -R rundeck:rundeck /usr/local/rundeck/ /usr/loc…

php-fpm チューニング

https://www.php.net/manual/en/install.fpm.configuration.php#pm 高めの負荷をかけたのでギリギリな感じですが、ウチの環境では設定値が大決定したので発表します。 pm.max_children = 24 pm.start_servers = 3 pm.min_spare_servers = 3 pm.max_spare_ser…

find mtime newermt

古いファイルを処理するシェルを mtime +1 と書いて実行した場合、「1日と数時間は経っているファイルが処理されていないのはなぜ?」と無駄に考え込んでしまったので、1日を過ぎたファイルを対象にする場合は、mmin +1440と書くようにしている。 findで時間…

PHP OPcache APCu

上記の「コンパイル」の部分がキャッシュ利用により省略されることで単純に高速化する仕組みで、「OPcache」はソースコード全般を担当し、「APCu」はオブジェクトや変数を担当します。 PHP 7をOPcacheとAPCuで高速化する(PHPアクセラレータ) | 己で解決!泣…

ALB証明書変更

デフォルト証明書を変更するhttps://docs.aws.amazon.com/ja_jp/elasticloadbalancing/latest/application/listener-update-certificates.html

AWS Wordpress

EC2 【AWS初心者向け】EC2のインスタンスタイプの選び方|ソニー EBSボリューム追加 Linux で Amazon EBS ボリュームを使用できるようにする - Amazon Elastic Compute Cloud EBSボリュームのマウント xfs xfsについて調べた - takapiのブログ EC2(AmazonLin…

Apache SuEXEC

https://httpd.apache.org/docs/2.4/ja/suexec.html http://www.kotobuki-p.co.jp/manual/suexec.htmlhttpd CGI SuEXECで、[Internal Server Error] (CentOS7) | サーバーレシピ [Apache] CGI 使うなら suEXEC 設定しとこ | バシャログ。特定の VirtualHost …

FileVault OSX mac

FileVault を設定する場合、解除可能なユーザに追加したユーザを入れておかないと再起動のたびに管理者アカウントでしかログインできなくなるよというお話 Mac で追加したユーザでログインできなかった話 #MacOSX - Qiita Intel 搭載の Mac で所属団体の復旧…

php-fpm core dump freebsd

# vi /usr/local/etc/php-fpm.d/www.conf process.dumpable = yes rlimit_core = unlimited # sysctl kern.sugid_coredump=1 kern.sugid_coredump: 0 -> 1 # sysctl kern.corefile=/var/tmp/%N.core kern.corefile: %N.core -> /var/tmp/%N.core Nov 16 20:4…

ハードディスク HDD 管理情報の削除

管理情報の削除 ディスクの先頭、末尾には管理情報が格納されていて、 ディスク再利用の際に問題なることがあるので削除する方法です。・先頭 MBR,GPT ・末尾 GPT,gmirror,ソフトRAID,RAIDの管理情報など以下、OSXでの手順(1) 確認する # diskutil list /dev…

nginx timeout

fastcgi_○○は、nginxとphpでのやりとりの時間。はじめにconnectしてからリクエストをsend、応答を待つ時間がreadなので、php側で重い処理をする場合などはfastcgi_read_timeoutのみ設定すればいける。 proxy_○○は、nginxをプロキシサーバとして使っている場…

nginx メンテナンス画面表示

nginxで特定ホスト以外からのアクセスをメンテナンス画面にする方法 (2) - (ひ)メモ 2011nginxでメンテナンスモード時の503と通常時の503でhtmlを分ける方法 - 眠すぎて明日が見えない[Nginx] メンテナンス状態に設定する | ハックノートCorrect way to se…

bhyve FreeBSD 8.4

> The bhyve virtio-block backend doesn't report c/h/s geometry, which is > required by the 8.4 installer. You can work around this by using the 'G' > command to enter a fake geometry that will give the size of the device.https://www.mail-a…

SSL証明書 連結

cat ではなく awk 1 で連結すれば OK です。 awk 1 server.pem chain.pem複数のファイルを終端に改行がなければ改行を追加して結合する - Qiita

FreeBSD 11 php 5.2

https://shami.blog/2018/02/running-older-php-versions-on-freebsd-11/so freebsd1*の問題 https://bugs.php.net/bug.php?id=66007https://blog.skylarking.me/2016/11/05/php_5_2/https://blog.youyo.info/post/2016/02/10/php52-centos7/

FreeBSD 11 apache 2.0.65

https://kb.vmware.com/s/article/2015546 openssl-unsafeを使うのではなくSSLv2をコメントアウトする。以下は書き直す予定 pkg install expat pkg install openssl-unsafe /usr/local/openssl-unsafe/bin/openssl version OpenSSL 1.0.2-chacha (1.0.2k-dev…

macportsユーザ削除

https://apple.stackexchange.com/questions/317576/how-to-delete-macports-user-after-using-the-migration-assistant

varnish 6

Unix Domain Socket(UDS) Unix Domain Socket(UDS)対応LISTEN側でUDSを使う場合 起動パラメータの-aで以下のような指定をします -a /var/run/varnish-uds.sock,user=vcache,group=varnish,mode=666今回はproxyプロトコルを指定していませんが指定できます。(…

nginx リクエスト数制限 limit_req

http://nginx.org/en/docs/http/ngx_http_limit_req_module.html http://nginx.org/en/docs/http/ngx_http_limit_req_module.html#limit_req_zone Requests with an empty key value are not accounted. マニュアルに上記のような記述があり、 の値が空の場…

bash tips

bash デフォルト値 #!/bin/bash foo=${1:-hoge} echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する https://gist.github.com/doi-t/7853853 bash ループ items[0]="altair" items[1]="betelgeuse" items[2]="canopus" for item in "${items[@…

bash デフォルト値

#!/bin/bash foo=${1:-hoge} echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する https://gist.github.com/doi-t/7853853

nrpe と check_by_ssh

http://www.aspect-sys.co.jp/index.php?option=com_content&view=article&id=66:checkbyssh-ssh-&catid=59:2009-11-27-23-07-15&Itemid=89

route53 ヘルスチェック

Route 53 は、レコードが正常であるかどうかを判断します。関連付けられたヘルスチェックを持つ非エイリアスレコード – ヘルスチェックを非エイリアスレコードに関連付けた場合、Route 53 はヘルスチェックの現在のステータスをチェックします。Route 53 は…

ipfw kernel NAT

This sets up stupid-simple NAT to allow a bhyve instance to talk to the internet. This is especially useful when your connection is wireless so you can't just bridge it. Assumes IPFW is already loaded note that it loads with a default deny…

php-fpm error_log error_reporting

https://serverfault.com/questions/218056/with-nginx-with-php-fpm-how-do-i-turn-off-php-warnings-in-the-error-log-of-ngin

freebsd lsyncd

Install Lsyncd Freebsd 12 – WWW.TRIJULIAN.WEB.IDhttps://axkibe.github.io/lsyncdlibinotify-20180201_2 Kevent based inotify compatible libraryfreebsd lsyncd fails | The FreeBSD ForumsInotify watching N directoriesが増えると起動失敗する問題が…