これまでFreeBSD,Fedora,CentOSによるサーバ構築を経験した筆者の書き置き.

[サーバ構築Tips] php5-filter

PHP 5.2から5.3に変わるとき,いくつかのextensionsがCoreにincludeされるようになったため,他のアプリケーションのインストールの際にトラブル発生.

以下で対処.

See: http://forums.freebsd.org/showthread.php?t=13191

ほか,/usr/local/etc/php/extensions.iniから以下を削除

1 extension=pcre.so
2 extension=spl.so

[サーバ構築Tips] FreeBSD 7.2 to 8.1

http://www.freebsd.org/releases/8.1R/announce.html を参考にUpgradeしました.

# freebsd-update upgrade -r 8.1-RELEASE
# freebsd-update install
# shutdown -r now
# freebsd-update install
# portupgrade -arRy
# freebsd-update install
# shutdown -r now

[サーバ構築Tips] Webサーバのドメイン名を変更する

301エラーを返すと,検索エンジン側も対処してくれる模様.

結局,NameVirtualHostを設定し,RedirectMatch permanent /(.*) http://新ドメイン/$1で終了.

[サーバ構築Tips] WordPressのドメイン変更

update wp_posts set post_content=replace(post_content,'古いURL','新しいURL')

update wp_posts set guid=replace(guid,'古いURL','新しいURL')

update wp_options set option_value=replace(option_value,'古いURL','新しいURL')

を実行.ただし,wp_optionsは一部不具合が発生した(ウィジェットのRSSが消える)ので,手動で変更.

See: http://ilovechibi.net/200909/267.html

[サーバ構築Tips] Microsoft Office IME 2010にバージョンアップ

Office 2010, Office 2007, Office 2003, Office XPの正規ライセンスがあれば,Windows 7, Windows Vista, Windows XP Service Pack 3, Windows Server 2008, Windows Server 2003上に最新のIMEがインストールできるのでやってみた

http://www.microsoft.com/japan/office/2010/ime/default.mspx

[サーバ構築Tips] Skypeを複数起動

コマンドラインパラメータとして /secondary を与える

See: http://wp.graphact.com/2009/06/18/skype4-multi-account-login

[サーバ構築Tips] WordPressの検索ウィジェットがValidateされない

投稿者: Jun INABA, 2010年6月5日(土曜日) 10:21. コメントは受け付けていません。.

role属性はW3C Validatorを通らないため修正.

対策はこちらから

[サーバ構築Tips] MyDefragでデフラグ

投稿者: Jun INABA, 2010年5月28日(金曜日) 18:38. コメントは受け付けていません。.

動作が遅かったのでMyDefragでデフラグを実行した.

» 続きを読む

[サーバ構築Tips] Mailman on FreeBSD

投稿者: Jun INABA, 2010年5月19日(水曜日) 15:31. コメントは受け付けていません。.
  1. portinstall japanese/mailman

ただし,メールサーバ(Postfix)とMailmanのGIDが異なると正しく動作しない.

Command output: Group mismatch error. Mailman expected the mail wrapper script to be executed as group "mailman", but the system's mail server executed the mail script as group "nobody". Try tweaking the mail server to run the script as group "mailman", or re-run configure, providing the command line option `--with-mail-gid=nobody'.

そのため,configure時に’MAIL_GID=nobody’を指定する必要がある.portinstallを利用するため,/usr/local/etc/pkgtools.confのMAKE_ARGS={}に以下の項目を追加

'japanese/mailman' => 'MAIL_GID=nobody',

再インストールはportupgrade -f japanese/mailman

[サーバ構築Tips] Apache独自証明書の発行

投稿者: Jun INABA, 2010年5月19日(水曜日) 0:39. コメントは受け付けていません。.
  1. openssl genrsa -des3 -out server.key 1024
  2. openssl req -new -key server.key -out server.csr
    CN: サーバのFQDN
  3. openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
  4. mv server.key server.key.orig
  5. openssl rsa -in server.key.orig -out server.key