Apache2
$ ./configure \
–prefix=/usr/local/apache2 \
–enable-status –enable-include –with-mpm=worker \
–enable-cgi –enable-ssl –enable-so \
–enable-rewrite \
–enable-mime-magic \
–enable-suexec \
–enable-static-rotatelogs \
–enable-speling
PHP4
$ ./configure –prefix=/usr/local \
–enable-module=so\
–with-calendar=shared –enable-magic-quotes \
–enable-wddx –enable-ftp –enable-sockets \
–enable-inline-optimization –enable-memory-limit \
–with-gd=/usr/local –with-freetype-dir=/usr/local \
–with-zlib –enable-gd-native-tt –with-ttf –with-gettext \
–with-jpeg-dir=shared,/usr –with-png-dir=shared,/usr –with-zlib-dir=shared,/usr \
–with-mysql=/usr/local/mysql –with-apxs2=/usr/local/apache2/bin/apxs
$ ln -s /usr/local/apache2/bin/apachectl /etc/init.d/apache2
วันนี้เช่า Dedicate server ตัวใหม่ที่เมืองนอก
ผมเช่าที่ Zipservers.com สเป๊กเครื่องธรรมดาๆน่ะคับ เอามารันโปรแกรม SImplifiedSEC
ประมาณนี้ครับ
- CPU AMD64 Athlon 3.2 GHz
- Ram 2 GB
- Harddisk SATA 80 G
ราคา $114/month (ราคานี้ต้องมาลงโปรแกรมเอง เค้าลงให้แต่ OS ซึ่งผมใช้ Debian Stable)
เอาล่ะคับ ทีนี้มาค่อยๆดูไปทีละขั้นตอน (จริงๆตั้งใจจะเขียนไว้อ่านเอง ใครจะเอาไปลองเล่นดูก็ไม่ว่านะ จริงๆมันก็ Basic แหละ แต่ผมมันประเภทขี้ลืม คราวหลังถ้าลงใหม่ จะได้ทำได้เลย ไม่ต้องคลำๆมาก)
## แก้ชื่อ Hostname
shell> pico /etc/hostname
server2.myplugblog.com
## ตั้ง Static IP (อันนี้เป็น IP ในวงแลนนะ)
#EDIT
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.1.1
shell> ifup eth0
shell> pico /etc/hosts
#ADD
192.168.1.15 server2.myplugblog.com


























