●情報を隠す
Apacheの情報を隠す
ServerTokens Prod
ServerSignature Off
PHPの情報を隠す
php.iniの設定
expose_php = On
↓
expose_php = Off
« 2009年02月 | メイン | 2009年04月 »
Apacheの情報を隠す
ServerTokens Prod
ServerSignature Off
PHPの情報を隠す
php.iniの設定
expose_php = On
↓
expose_php = Off
cpan> o conf urllist
urllist
ftp://ftp.jaist.ac.jp/pub/CPAN/
Type 'o conf' to view configuration edit options
cpan> o conf
cpan> o conf urllist pop ftp://ftp.jaist.ac.jp/pub/CPAN/
cpan> o conf commit
cpan> o conf
cpan> o conf urllist push ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
cpan> o conf commit
install Jcode
AddHandler php5-script .php .html .htm
AddType text/html .php .html .htm
AddType application/x-httpd-php .htm .html
AliasMatch ^/home/([^/]+)/(.*) /home/$1/public_html/$2
# pear channel-update pear.php.net
# pear upgrade PEAR
cat > /etc/postfix/mysql_virtual_alias_maps.cf << "EOF"
user = postfix
password = postfix
hosts = localhost
dbname = postfix
table = alias
select_field = goto
where_field = address
EOF
cat > /etc/postfix/mysql_virtual_domains_maps.cf << "EOF"
user = postfix
password = postfix
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and active = '1'
EOF
cat > /etc/postfix/mysql_virtual_mailbox_maps.cf << "EOF"
user = postfix
password = postfix
hosts = localhost
dbname = postfix
table = mailbox
select_field = maildir
where_field = username
EOF
cat > /etc/postfix/mysql_virtual_mailbox_limit_maps.cf << "EOF"
user = postfix
password = postfix
hosts = localhost
dbname = postfix
table = mailbox
select_field = quota
where_field = username
#additional_conditions = and active = '1' << "EOF"
EOF
cat > /etc/dovecot-mysql.conf << "EOF"
driver = mysql
default_pass_scheme = PLAIN
connect = dbname=postfix user=postfix host=/var/lib/mysql/mysql.sock password=postfix
password_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1'
user_query = SELECT concat('/mail/', maildir) as home, 10000 as uid, 10000 as gid FROM mailbox WHERE username = '%u' AND active = '1'
EOF
postfixadmin
wget http://ftp.riken.jp/Linux/centos/5.2/os/SRPMS/postfix-2.3.3-2.src.rpm
mkdir -p /usr/src/redhat/SOURCES
rpm -ihv postfix-2.3.3-2.src.rpm
cd /usr/src/redhat/SOURCES
wget http://vda.sourceforge.net/VDA/postfix-2.3.3-vda.patch.gz
gunzip postfix-2.3.3-vda.patch.gz
cd /usr/src/redhat/SPECS/
cp postfix.spec postfix.spec.org
vi postfix.spec
【変更】
-%define MYSQL 0
+%define MYSQL 1
【追加】
Patch9: postfix-2.2.5-cyrus.patch
+Patch10: postfix-2.3.3-vda.patch
%patch9 -p1 -b .cyrus
+%patch10 -p1 -b .vda