买了一套rhce书籍

嗯,没错,最近几天买了一套完整的rhce书籍,准备去考一下那个证。看了下,里面的内容90%我都已经掌握了。再复习2个月,准备就去考证了。考了再去拿下rhca,希望一切顺利。以后将在博客中分享更多的rhce学习过程

vr 设置da流程

1.升级

cd /usr/local/directadmin
wget –no-check-certificate -O update.tar.gz ‘https://www.directadmin.com/cgi-bin/daupdate?uid=123&lid=1234
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
/etc/init.d/directadmin restart

注意这个:

Where 123 and 1234 are your Client ID and License ID

2.升级后:

设置为suphp:

cd /usr/local/directadmin/custombuild

./build set php5_cgi yes
./build set php5_cli no
./build all d
./build rewrite_confs

./build roundcube
./build squirrelmail
./build phpmyadmin

3.禁用函数(选择)

./build secure_php

4.禁止cgi

chgrp apache /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/bin/curl
chmod 705 /usr/bin/perl /usr/bin/wget /usr/local/bin/wget /usr/local/bin/curl /usr/binl/curl

5.设置合适的mysql参数

usr share

6.安装zend

cd /usr/local/directadmin/custombuild
./build set zend yes
./build zend

7.安装awstats.有可能会出错,安装后检查directadmin.conf中的 awstats=1 webalizer=0

cd /usr/local/directadmin/scripts
./awstats.sh

8.安装分区权限
/tmp nosuid,noexec
/home nosuid

9.php加装exif
vi /usr/local/directadmin/custombuild/configure/suphp/configure.php5
“–enable-exif”
cd /usr/local/directadmin/custombuild/
./build php all

10.output_buffering
vi /usr/local/etc/php5/cgi/php.ini
output_buffering = On

11私房cron

12csf
wget http://configserver.com/free/csf.tgz

13关闭ip检查
echo “disable_ip_check=1″>> /usr/local/directadmin/conf/directadmin.conf

14 var/tmp处理
rm -rf /var/tmp
ln -s /tmp /var/tmp