หน้าเว็บ

วันอังคารที่ 6 มีนาคม พ.ศ. 2555

แม่ซื้อรถมาใหม่เอาไว้ใช้งาน

แม่ถอยรถมาใหม่ กาแลนซ์ ซิกม่า เจ้าของเดิมซื้อมาตั้งแต่ 2527 ตอนนี้ก็ 28 ปีแล้ว แต่สภาพยังโอเคอยู่ ก็นะ ไม่ค่อยได้ใช้ อะไรที่เก่ามันก็เก่าตามสภาพ ก็ค่อยๆลองใช้ไป ดูสภาพไป

วันพฤหัสบดีที่ 1 มีนาคม พ.ศ. 2555

ทำการติดตั้งตาม howtoforce

เนื่องจากว่า CentOS6 ที่ลงไปเนี่ย เป็นแบบ 64bit แล้วลงพื้นที่เอาไว้ถึง 50Gb มันเป็น Graphic เลย งงๆ ปกติชินกับการติดตั้งผ่าน textmode ก็เลยต้องวิ่งมาใช้บริการ การ config ผ่านเวปเทพ ก็ทำตามเค้าไป อะไรที่ไม่น่าสนใจ ไม่ได้ใช้ก็ไม่ต้องติดตั้งนะครับ

http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-2-p2

Disable SELinux CentOS6

# vi /etc/sysconfig/selinux# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#enforcing - SELinux security policy is enforced.
#permissive - SELinux prints warnings instead of enforcing.
#disabled - SELinux is fully disabled.
SELINUX=disabled                             # change
# SELINUXTYPE= type of policy in use. Possible values are:
#targeted - Only targeted network daemons are protected.
#strict - Full SELinux protection.
SELINUXTYPE=targeted

ติดตั้ง webmin ใน Centos 6


จะต้องมี wget ถ้าไม่มี ให้ติดตั้งก่อน
yum install wget

ต่อไปสร้างไฟล์ webmin.repo
 nano /etc/yum.repo.d/webmin.repo

copy คำสั่งต่อไปนี้ใส่ลงไปในไฟล์ webmin.repo


[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
เสร็จแล้วก็ save โดย Ctrl+x+y


cd /root
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
yum install webmin

เป็นอันเสร็จ

เปิด webmin ใช้งานก็ http://หมายเลขไอพีของคุณ:10000

Centos 6 Install/Configure httpd


1] Install httpd สำหรับ CentOS6


[root@www ~]#
yum -y install httpd
# remove welcome page
[root@www ~]#
rm -f /etc/httpd/conf.d/welcome.conf

# remove default error page
[root@www ~]#
rm -f /var/www/error/noindex.html

# create a link for Perl
[root@www ~]#
ln -s /usr/bin/perl /usr/local/bin/perl


[2] Configure httpd.


[root@www ~]#
vi /etc/httpd/conf/httpd.conf
# line 44: change
ServerTokens Prod
# line 76: change to ON
KeepAlive On
# line 262: Admin's address
ServerAdmin
root@server.world
# line 276: change to your server's name
ServerName
www.server.world:80
# line 331: change (enable CGI and disable Indexes)
Options FollowSymLinks ExecCGI
# line 338: change
AllowOverride All
# line 402: add file name that it can access only with directory's name
DirectoryIndex index.html index.cgi index.php
# line 536: change
ServerSignature Off
# line 759: make it comment

#AddDefaultCharset UTF-8
# line 796: uncomment and add file-type that apache looks them CGI
AddHandler cgi-script .cgi .pl
[root@www ~]#
/etc/rc.d/init.d/httpd start
Starting httpd:
[ OK ]
[root@www ~]#
chkconfig httpd on