8月 25

DebianのApache2.2でLoadしたモジュールの確認方法

どうも物忘れが激しいのでメモです。

apache2ctlのスクリプトに -M の引数です。

# apache2ctl -M
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)
Syntax OK

因みに help を参照すると

# apache2ctl -h
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
                         [-C "directive"] [-c "directive"]
                         [-k start|restart|graceful|graceful-stop|stop]
                         [-v] [-V] [-h] [-l] [-L] [-t] [-S] [-X]
Options:
  -D name            : define a name for use in  directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  -X                 : debug mode (only one worker, do not detach)
Action '-h' failed.
The Apache error log may have more information.
#

てな感じ。調べるのに30分も費やしてしまった・・・。

Tagged with:
8月 21

技術メモっす。

Debian環境のMySQLのインストールレイアウト。

MySQLのドキュメントはここを参照しています。

Tech_20110821_004-MySQL

/usr/binのMySQL関係ファイル
hyamazak@svr-paris:/usr/bin$ ls -l my*
-rwxr-xr-x 1 root root 1375892 2010-12-01 04:09 my_print_defaults
-rwxr-xr-x 1 root root 1665236 2010-12-01 04:09 myisam_ftdump
-rwxr-xr-x 1 root root 1799348 2010-12-01 04:09 myisamchk
-rwxr-xr-x 1 root root 1664660 2010-12-01 04:09 myisamlog
-rwxr-xr-x 1 root root 1706580 2010-12-01 04:09 myisampack
-rwxr-xr-x 1 root root 132068 2010-12-01 04:09 mysql
-rwxr-xr-x 1 root root 1978812 2010-06-01 07:44 mysql-admin
-rwxr-xr-x 1 root root 1947016 2010-06-01 07:44 mysql-query-browser
-rwxr-xr-x 1 root root 438684 2010-12-01 04:09 mysql_client_test
-rwxr-xr-x 1 root root 7332692 2010-12-01 04:09 mysql_client_test_embedded
-rwxr-xr-x 1 root root 4169 2010-12-01 04:08 mysql_convert_table_format
-rwxr-xr-x 1 root root 3245 2010-12-01 04:08 mysql_find_rows
-rwxr-xr-x 1 root root 483 2010-12-01 04:08 mysql_fix_extensions
-rwxr-xr-x 1 root root 5834 2010-12-01 04:08 mysql_fix_privilege_tables
-rwxr-xr-x 1 root root 14268 2010-12-01 04:08 mysql_install_db
-rwxr-xr-x 1 root root 7694 2010-12-01 04:08 mysql_secure_installation
-rwxr-xr-x 1 root root 16689 2010-12-01 04:08 mysql_setpermission
-rwxr-xr-x 1 root root 1346304 2010-12-01 04:09 mysql_tzinfo_to_sql
-rwxr-xr-x 1 root root 65224 2010-12-01 04:09 mysql_upgrade
-rwxr-xr-x 1 root root 153972 2010-12-01 04:09 mysql_waitpid
-rwxr-xr-x 1 root root 3818 2010-12-01 04:08 mysql_zap
-rwxr-xr-x 1 root root 110788 2010-12-01 04:08 mysqlaccess
-rwxr-xr-x 1 root root 32452 2010-12-01 04:09 mysqladmin
lrwxrwxrwx 1 root root 10 2011-08-19 21:53 mysqlanalyze -> mysqlcheck
-rwxr-xr-x 1 root root 159512 2010-12-01 04:09 mysqlbinlog
-rwxr-xr-x 1 root root 11699 2010-12-01 04:08 mysqlbug
-rwxr-xr-x 1 root root 29020 2010-12-01 04:09 mysqlcheck
-rwxr-xr-x 1 root root 23181 2010-12-01 04:08 mysqld_multi
-rwxr-xr-x 1 root root 16894 2010-12-01 04:09 mysqld_safe
-rwxr-xr-x 1 root root 93452 2010-12-01 04:09 mysqldump
-rwxr-xr-x 1 root root 6602 2010-12-01 04:08 mysqldumpslow
-rwxr-xr-x 1 root root 31715 2010-12-01 04:08 mysqlhotcopy
-rwxr-xr-x 1 root root 24568 2010-12-01 04:09 mysqlimport
lrwxrwxrwx 1 root root 10 2011-08-19 21:53 mysqloptimize -> mysqlcheck
lrwxrwxrwx 1 root root 10 2011-08-19 21:53 mysqlrepair -> mysqlcheck
-rwxr-xr-x 1 root root 39016 2010-12-01 04:09 mysqlreport
-rwxr-xr-x 1 root root 23700 2010-12-01 04:09 mysqlshow
-rwxr-xr-x 1 root root 45904 2010-12-01 04:09 mysqlslap
-rwxr-xr-x 1 root root 195668 2010-12-01 04:09 mysqltest
-rwxr-xr-x 1 root root 7047028 2010-12-01 04:09 mysqltest_embedded
hyamazak@svr-paris:/usr/bin$
/usr/sbin
root@svr-paris:/usr/sbin# ls -l my*
-rwxr-xr-x 1 root root 8514920 2010-12-01 04:09 mysqld
-rwxr-xr-x 1 root root 2084552 2010-12-01 04:09 mysqlmanager
root@svr-paris:/usr/sbin#
/var/lib/mysql
root@svr-paris:/var/lib/mysql# ls -l
合計 20536
drwx------ 2 mysql mysql     4096 2011-08-19 22:27 HisashiToday
-rw-r--r-- 1 root  root         0 2011-08-19 21:53 debian-5.1.flag
-rw-rw---- 1 mysql mysql  5242880 2011-08-21 19:43 ib_logfile0
-rw-rw---- 1 mysql mysql  5242880 2011-08-19 21:53 ib_logfile1
-rw-rw---- 1 mysql mysql 10485760 2011-08-21 19:43 ibdata1
drwx------ 2 mysql root      4096 2011-08-19 22:30 mysql
-rw------- 1 root  root         6 2011-08-19 21:53 mysql_upgrade_info
drwx------ 2 mysql mysql     4096 2011-08-19 22:26 phpmyadmin
root@svr-paris:/var/lib/mysql#
/etc/mysql
root@svr-paris:/etc/mysql# ls -l
合計 16
drwxr-xr-x 2 root root 4096 2011-08-19 21:53 conf.d
-rwxr-xr-x 1 root root 1198 2010-12-01 04:09 debian-start
-rw------- 1 root root  333 2011-08-19 21:53 debian.cnf
-rw-r--r-- 1 root root 3637 2011-08-21 19:43 my.cnf
root@svr-paris:/etc/mysql#
/etc/init.d
root@svr-paris:/etc/init.d# ls -l my*
-rwxr-xr-x 1 root root 5437 2010-12-01 02:55 mysql
root@svr-paris:/etc/init.d#
8月 20

技術系の話題。個人のメモを兼ねているので、興味の無い人はスルーってことで。

DebianのDistributioのUpgrade手順

Source.list に追加

/etc/apt/sources.listに新しいdistributionを追記する。

hyamazak@svr-dev:/etc/apt$ more sources.list
#
# deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ – Official i386 NETINST Binary-1 201
00905-11:24]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ – Official i386 NETINST Binary-1 2010
0905-11:24]/ lenny main

deb http://ftp.riken.jp/Linux/debian/debian/ lenny main
deb-src http://ftp.riken.jp/Linux/debian/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

hyamazak@svr-dev:/etc/apt$

の内容に

deb http://ftp.riken.jp/Linux/debian/debian/ squeeze main
deb-src http://ftp.riken.jp/Linux/debian/debian/ squeeze main

を追加します。

sources.listの内容をアップデート

# apt-get update

distributionをアップグレード

# apt-get dist-upgrade

それなりに時間がかかるので、少々(?)待つ。

各種入力事項を聞かれるので、入力する。

以上。

preload preload preload