You are on page 1of 3

Cho cc bn, Chng ta cn 1 bui thc hnh c sp xp vo th 6 ngy 07/05 v tun ny li ngh l.

Ti gi cc bn tp lnh c bn ca Linux m ba gi chng ta thc hnh:

1. i port SSH: a. vi /etc/ssh/sshd_config b. insert, sau sa port theo mnh c. save: esc + :wq don't save: esc + :q!

2. Setup firewall allow port SSH mi: a. setup b. chon Firewall configuration c. chon port: 1234:tcp (bt k port no) d. /etc/init.d/sshd restart

3. init 0: shutdown init 6: restart

4. Add user: a. useradd ____ b. passwd ____

5. Ci FTP service:

a. yum install vsftpd (nu khng c internet th : mount /dev/cdrom /media/CentOS, yum --disablerepo=\* --enablerepo=c5-media install vsftpd) b. cu hnh li file config cho php chroot_list c. to file chroot_list: vi chroot_list (hoc dng WinSCP, lu : in tn cc user vo file ny)

6. Ci Apache webservice: a. Cch 1: ging ci FTP, thay vsftpd bng httpd b. Cch 2: ln website ca apache ly link version mi nht, sau : wget link ( down v), ri gii nn: tar -zxvf file_name, sau cu hnh ci t apache: ./configure --prefix=/build/httpd --with-mpm=worker --with-mods-shared=most -with-ssl --enable-ssl --with-program-name=httpd_main, tip theo: make v make install, cui cng: copy file httpd.init trong th mc buid/rpm/ vo /etc/init.d/ : cp httpd.init /etc/init.d/httpd

7. Ci PHP: a. Stop apache: service httpd stop b. Ci ging nh trn

8. Ci MySQL: a. Ci nh trn b. Lu : phi i password admin cho mySQL: mysqladmin password _______

Ring phn 6, 7, 8 cc bn cha thc hnh trn lp nn bui sau s tranh th lm cho xong cc phn ny. Sau khi xong ht cc bc trn ta c c mt web server nh ngoi th trng (ch khc l khng c Cpanel hay Plesk, y ch l cng c gip thao tc trc quan hn, v bn cht th cng ging nh chng ta ci trn, lu : bn no c nh mua key Cpanel th nn mua cc reseller ti Vietnam s r hn mua online, tuyt i khng dng Co Co mua v n s check IP tht ca server mnh)

thanhtrung_ptit@yahoo.com Ti liu thy Cu nh nh my dm n. Tao nh xong ti liu my a hm trc. Sau khi tp hp ri check li coi vy c c cha. Thanks for sharing!!!! c link file attach km theo na (v dung lng vt gii hn cho php). B tay????? Nu khng c th cng dng forward li em mt qu ri anh i, tm my hnh ny chc cht qu.

You might also like