2009-04-01から1ヶ月間の記事一覧

apache バーチャルホスト+サブドメインの設定

# vi /etc/httpd/conf/httpd.confNameVirtualHost *:80 ServerName www.mydomain.com ServerAlias mydomain.com DocumentRoot /var/www/html/mydomain ServerName sub.mydomain.com DocumentRoot /var/www/html/sub 設定した後、httpd再起動するのを忘れずに…

vftpdでユーザごとに上の階層に移動できないように制限する

下記のコメントアウトをはずす # vi /etc/vsftpd/vsftpd.confchroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list生成 # vi /etc/vsftpd/chroot_list中身 user1 user2このままでは記述したユーザが上位階層禁止になるので vsftpd.confに以下を…

eccube

eccubeでいちいち属性を変えないでいい方法人の引用 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=1709&forum=4 SSHでログインなら、私の場合 $ wget http://downloads.ec-cube.net/src/eccube-2.0.1.tar.gzでダウンロードして、 $ chmod…

フォルダごと削除する

Linuxコマンド フォルダごと一括で削除する方法# rm -r -f myfolder全部消えるので注意が必要

apache バーチャルホストの設定

# vi /etc/httpd/conf/httpd.confNameVirtualHost *:80 ServerName www.mydomain.com ServerAlias mydomain.com *.mydomain.com DocumentRoot /var/www/html/mydomain# /etc/rc.d/init.d/httpd restart

centos 変更箇所

http://www.aconus.com/~oyaji/centos/dovecot-mysql-centos.htm/usr/local/etc/dovecot-mysql.conf 追加

postfixが自動起動設定になっているか調べる

# ./sbin/chkconfig --listサービスの一覧が表示されるので、postfixの行に「3:on」という記述があるかどうか調べる。もしoffになっていたら、「chkconfig postfix on」でサービスを追加する。

postfixエラーについて

postdrop: warning: unable to look up public/pickup: No such file or directorypostfixが開始されていないと上のようなエラーがでる# ./sbin/service postfix restart Shutting down postfix: [FAILED] Starting postfix: [ OK ]

通常使用するMTAを選択する

# ./usr/sbin/alternatives --config mta There are 2 programs which provide 'mta'. Selection Command ----------------------------------------------- * 1 /usr/sbin/sendmail.sendmail + 2 /usr/sbin/sendmail.postfix Enter to keep the current sel…

postfixが起動しているかどうか確認する

# mail root Subject: test This is test mail . Cc:# mail -n

メールログの見方

cat /var/log/maillog

不正中継テスト

不正中継テスト参考 http://hnw.dip.jp/server/postfix.html メールサーバの不正中継テストを行ってくれるサイトがあるので利用させてもらいます。 Abuse.net: Home Page の Mail relay testing を利用させてもらいます。 http://www.abuse.net/relay.html英…

php5-imap のインストール

アプリをいれたところ php5-imapがないと怒られたインストール # yum -y install php-imap再起動 # /etc/init.d/httpd reloadOK!

chkconfigコマンドとは

chkconfigコマンドとは 起動スクリプトを管理する。「/etc/rc[0-6].d」ディレクトリの配下にあるシンボリック・リンク・ファイル(実体は「/etc/init.d」ディレクトリ配下)の生成や変更・削除,各サービスの起動に関する設定をする。 要するに再起動したとき…

sendmailを停止して自動起動しないようにする

sendmailのサービスをストップ # /etc/rc.d/init.d/sendmail stop Shutting down sm-client: [ OK ] Shutting down sendmail: [ OK ] sendmailの自動起動を解除 # ./sbin/chkconfig --del sendmailsendmailを使わないなら以下のコマンドでアンインストールし…

postfixのパッケージ確認

rpm -q postfix

postfixをインストールする

postfixをインストールする# yum install postfixpostfixを確認する# rpm -q postfix postfix-2.3.3-2.1.el5_2 # cd /etc/postfixバックアップのためコピーする#cp main.cf main.cf.090408.backup