server

PHPで実行時間を測定する

簡単なのだけど忘れやすいのでメモ。 [php] < ?php $time1 = microtime(); // なんらかの重い処理 $time2 = microtime(); echo $time2 - $time1; ?> [/php]

macでPPTPを使う

特に使う予定はないのだけど、 mac から PPTP で会社の Win マシンに接続する方法のメモ。 アプリケーション > インターネット接続 で新しい VPN (PPTP) 接続を作成。 参照 ・MacとWindowsを繋ごう (無線LANとかVPNとか) ・VPN on Mac OS X Microsoft Remote…

画面表示の速度改善

Windows Server 2003上で ASP.NET + SQL Server 2005 の構成で Webページを表示する速度が遅い。 考えられる原因 ・プログラムがどこかで遅い処理をしている ・クライアント側のネットワークが遅い ・サーバー側のネットワークが遅い 処置 ・SQL Server 2005…

サーバーの情報を確認する

Apacheのバージョンがあがったので、うちのサーバーもバージョンを上げた。ついでにSさんに教えてもらったことをメモ。 mod_infohttp://ドメイン/server-info/Apacheのサーバー情報を表示する。 mod_statushttp://ドメイン/server-statusApacheのサーバース…

Apache2.2について

Configureオプション。こんなのいれたらどうでしょう。 --enable-suexec Use this option to enable suexec, which allows you to set uid and gid for spawned processes. Do not use this option unless you understand all the security implications of …