資源描述:
《RHEL5下源碼搭建LAMP+Discuz+PhpMyAdmin+Awsta....pdf》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在學術論文-天天文庫。
1、RHEL5下源碼搭建LAMP+Discuz+PhpMyAdmin+Awstats+Ab2010/3/25第一版Bycrazylinux實驗目的:完成Linux下面的LAMP環(huán)境的搭建,實現(xiàn)Discuz論壇實驗軟件包:awstats-6.9.tar.gzDiscuz_7.2_FULL_SC_UTF8.ziphttpd-2.2.13.tar.bz2mysql-5.0.75.tar.gzphp-5.2.10.tar.bz2UC1.5_UCH2.0_DZ7.2_SC_UTF8.zipUCenter1.5.0_install.zip實驗環(huán)境:RHE
2、L5.4Webserver:192.168.0.10/24Dnsserver:192.168.0.20/24Clinet:192.168.0.100/24前提條件:在所有l(wèi)inux主機上配置yum倉庫,把DVD光盤掛在到本地/media下,紅色字體代表修改后結(jié)果[root@localhost~]#cat/etc/yum.repos.d/rhel-debuginfo.repo[rhel-debuginfo]name=RedHatEnterpriseLinux$releasever-$basearch-Debugbaseurl=file://
3、/media/Server//指定本地/mediaenabled=1//開啟倉庫gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release關閉所有l(wèi)inux防火墻與SELINUX[root@localhostbin]#iptables-F[root@localhostbin]#iptables-X[root@localhostbin]#iptables-Z[root@localhostbin]#setenforce0[root@localhostbin]#serv
4、iceiptablessave一、DNS環(huán)境的搭建1、安裝DNS相關軟件包[root@localhost~]#yum-yinstallbindbind-develbind-chrootcaching-nameserver2、配置DNS主配置文件[root@localhost~]#cd/var/named/chroot/etc/[root@localhostetc]#cp-pnamed.caching-nameserver.confnamed.conf[root@localhostetc]#catnamed.conf////named.ca
5、ching-nameserver.conf////ProvidedbyRedHatcaching-nameserverpackagetoconfigurethe//ISCBINDnamed(8)DNSserverasacachingonlynameserver//(asalocalhostDNSresolveronly).////See/usr/share/doc/bind*/sample/forexamplenamedconfigurationfiles.////DONOTEDITTHISFILE-usesystem-config-bi
6、ndoraneditor//tocreatenamed.conf-editstothisfilewillbeloston//caching-nameserverpackageupgrade.//options{listen-onport53{any;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstati
7、stics-file"/var/named/data/named_mem_stats.txt";//Thoseoptionsshouldbeusedcarefullybecausetheydisableport//randomization//query-sourceport53;//query-source-v6port53;allow-query{any;};allow-query-cache{any;};};logging{channeldefault_debug{file"data/named.run";severitydynam
8、ic;};};viewlocalhost_resolver{match-clients{any;};match-destinations{any;};recursionyes;include"