1. ߰
adduser -g users -d /home/
2.йȣ
passwd йȣ
3. 丮 ۹̼ public_html 丮
chmod 701 /home/
ls -d ./home// Ȯ
cd ./home/
mkdir public_html
chmod 701 public_html
4. mysql
mysql -u root -p
5. ο
grant all privileges on .* to
@localhost identified by 'йȣ';
6.
create database ;
7. virtualhosts.conf Ͽ ߾ Ѵ. [http.conf ƲǷ Ȯ Ѵ.]
cd /etc/httpd/conf/
vi virtualhosts.conf
[1]
ServerAdmin root@abc.co.kr
DocumentRoot /home/abc/public_html
ServerName abc.co.kr
ServerAlias www.abc.co.kr
8. ġ ŸƮ
/usr/local/apache/bin/httpd -t
/usr/local/apache/bin/apachectl restart
9. Ӽ [̺κ ]
vi /etc/named.conf Ʒ ߰
[]
zone "θ" IN {
type master;
file "zone.θ";
allow-update { none; };
};
cd /var/named/
vi zone.θ Ʒ ۼ
[]
$TTL 3600
@ IN SOA ns.abc.com. root.ns.abc.com. (
1997022701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS ns.abc.com.
@ IN A
www IN A
ftp IN A
ns IN A
mail IN A
@ IN MX 5 mail
10.Ӽ ŸƮ rndc reload
11. ߳ α Ȯ tail -f /var/log/messages