[Webmin]-[Webmin Configuration]-[Webmin Module] の Third party module from からvsFtp を選んでモジュールをインストールと行きたいところだったのだが、
Failed to install module from This module configures the vsftpd.conf file from your VSFTPD FTP-Server. You can also have nice graphical stats from your ftp visitors. New in v.1.4: SSL CERT Creation and SSL support for your vsftpd-server : Invalid URL
上のようなエラーがでてモジュールのインストールが失敗。
webmin.com から vsftpd.tar.gz をダウンロード。
場所はwwebmin.com の Community タブをクリック、サイドメニューの Third party modules をクリックFind modules or themes matching: にvsftp と入力 Search を押下するとダウンロードページのリンクが出てくるのでそれを押下してダウンロードのページを開きます。LADENボタンをクリックしてダウンロードします。
再び [Webmin]-[Webmin Configuration]-[Webmin Module]に戻りfrom uploaded file から先ほどダウンロードしたファイルを入力して [install Module] ボタンをクリックします。
vsFtpd がインストールされていなかったらインストールする。
[vsftp] の画面を開き [Module Configuration] をクリックして2箇所を修正
[The path and filename to vsftpd.conf]
* 変更前:[/etc/vsftpd.conf]→変更後:[/etc/vsftpd/vsftpd.conf]。
[Path where the virtual user will be stored]
* 変更前:[/etc/vsftpd/vsftpd_user_conf]→変更後:[/etc/vsftpd/user_list]
[Start Vsftpd Server] をクリックしてFTPサーバーを起動させます。
利用し終わったら [Stop Vsftpd Server] クリックしてしてFTPサーバーを停止させます。
常時起動する場合は chroot や SSL を設定する。
2012年3月21日水曜日
[webmin] mysqlのバックアップ
Backup destination の Backup to directory に
Create destination directory? を Yes にする。
Other backup options の Command to run after backup に
を入力する。
こうすると毎日、日付のフォルダーにバックアップを格納するようにできる。
"/任意の場所/mysql_bkup/xxxx"を設定
Create destination directory? を Yes にする。
Other backup options の Command to run after backup に
date +%m%d | xargs --replace mv -f /任意の場所/mysql_bkup/xxxx /任意の場所/mysql_bkup/{}
を入力する。
こうすると毎日、日付のフォルダーにバックアップを格納するようにできる。
2012年3月15日木曜日
[webmin][centos] webminのインストール。
yum -y install perl-Net-SSLeay
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
rpm -ivh webmin-1.580-1.noarch.rpm
vi /etc/webmin/miniserv.conf
allow=127.0.0.1 10.0.0.0/24
/etc/rc.d/init.d/webmin restart
allow=127.0.0.1 10.0.0.0/24
/etc/rc.d/init.d/webmin restart
2012年2月14日火曜日
[centos] iptables 簡単設定
system-config-securitylevel
を使う。
プロトコルとして定義されていない任意のポートを開放する場合は、[その他のポート] にポート番号とプロトコル(tcp or udp)を "PortNumber:Protocol" の書式で設定する。
複数のポートを開放する場合の例は以下の通り。スペースをデリミタとする。
webminは10000:tcp tcpの時は無くてもOK
samba SWAT は 901:tcp
"system-config-securitylevel" ユーティリティーを利用すれば、"iptables" を手動で再起動する必要はない。
centos 6.xからはsystem-config-firewall-tuiに変わったので注意。
を使う。
プロトコルとして定義されていない任意のポートを開放する場合は、[その他のポート] にポート番号とプロトコル(tcp or udp)を "PortNumber:Protocol" の書式で設定する。
複数のポートを開放する場合の例は以下の通り。スペースをデリミタとする。
webminは10000:tcp tcpの時は無くてもOK
samba SWAT は 901:tcp
"system-config-securitylevel" ユーティリティーを利用すれば、"iptables" を手動で再起動する必要はない。
centos 6.xからはsystem-config-firewall-tuiに変わったので注意。