4. ต่อไปเป็นการย้ายไฟล์ที่ใช้เรียก openwebmail ทำงาน จาก /usr/local/www/apache22/data-dist/ openwebmail ให้ไปอยู่ที่ /home/mail/public_html
gw# cd /usr/local/www/apache22/data-dist/openwebmail
gw# ls
applet images openwebmail.html
doc index.html redirect.html
help javascript sounds
gw# cp redirect.html /home/mail/public_html/index.html


gw# /usr/local/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
5. ให้กลับไปปรับแต่งไฟล์ /usr/local/etc/apache22/extra/ httpd-vhosts.conf
# cd /usr/local/etc/apache22/extra
# vi httpd-vhosts.conf
เพิ่มในส่วนของ VirtualHost

ServerAdmin webmaster@atomy.com
DocumentRoot /home/mail/public_html
ServerName mail.atomy.com
ErrorLog /var/log/mail.atomy.com.error_log.log
CustomLog /var/log/mail.atomy.com.custom_log.log

ต่อไปก็สร้าง path ที่เราระบุ
gw# cd /home
gw# mkdir mail
gw# cd mail
gw# mkdir public_html
เสร็จแล้วให้ apache22 ทำงานใหม่โดย
gw# killall httpd
gw# /usr/local/etc/rc.d/apache22 start

6. เปิด Browser ตัวโปรด แล้วระบุ http://mail.yoursite.com



ส่วนที่เหลือ

0 comments



Recommended Money Makers