Pages 2 Command | tags

Command | How to Install mod_ruid2 on Debian 64bit DirectAdmin installed

Debian PHP DirectAdmin Command

mod_ruid จัดการให้ php-cli ไม่ต้องมา chmod 777 เองให้วุ่นวายเหมือนใช้โฮส cPanel install mod_ruid2 cd /tmp apt-get update aptitude install libcap2-dev bzip2 wget http://jaist.dl.sourceforge.net/project/mod-ruid/mod_ruid2/mod_ruid2-0.9.8.tar.bz2 tar xj.. อ่านต่อ ( read more» )

Command | How to install Squid for IP Proxy Server

Squid Command Linux Proxy

ติดตั้ง squid รุ่นล่าสุดhttp://www.squid-cache.org/Versions/ cd /tmp wget http://www.squid-cache.org/Versions/v3/3.4/squid-3.4.9.tar.gz tar xvfz squid-3.4.9.tar.gz cd squid-3.4.9 ./configure --prefix=/usr/local/squid make && make install (more&hellip.. อ่านต่อ ( read more» )

Command | Manage Harddisk Linux (view, create, format)

Command Linux

ในเครื่องของเรามี mount point อะไรอยู่บ้าง df -h | grep /dev ดูว่าเรามี Harddisk ที่อยู่ในระบบและยังไม่ได้กำหนดการ mount ไว้ ls /dev/disk/by-uuid/ -alh ตรวจสอบ file system type parted /dev/sda1 p ขนาดของ HDD fdisk -l /dev/sdb สร้าง partition fdisk /d.. อ่านต่อ ( read more» )

Command | How to install MRTG without SNMP

MRTG Command Debian

aptitude -y install mrtg mkdir /usr/local/bin/mrtgx/ vim /usr/local/bin/mrtgx/mem.sh#!/bin/sh USED=`free -b|grep cache:|cut -d : -f2|cut -c1-11` #FREE=`free -b|grep cache:|cut -d : -f2|cut -c12-22` echo $USED echo $USED (more…).. อ่านต่อ ( read more» )

Command | How to upgrade PHP5.2|5.3|5.4|5.5 with DirectAdmin

DirectAdmin Command PHP

วิธีการติดตั้ง php 5.3.x ให้ใช้งานได้บน server ที่ลง 5.2.x เดิมอยู่แล้ว โดยใช้ทริคที่ว่าให้ระบบมอง php5.3 เป็น php6 โดยมีขั้นตอนตามนี้ *This trick will work with CustomBuild 1.2 (PHP5.2 as CLI and 5.3 as CGI (suPHP)): cd /usr/local/directadmin/custom.. อ่านต่อ ( read more» )

Command | How to install mod_evasive (block DDoS Apache)

DirectAdmin Debian Command Security

Mod_evasive คือ module เสริม ชนิดหนึ่งของ apache ซึ่งทำหน้าที่ ตรวจจับ การ request ผ่าน service apache โดย มีขั้นตอนการทำงาน คือ ถ้า IP ใด มีการ request เข้ามาขอบริการ เป็นจำนวนมาก ผิดปรกติ แล้ว mod ตัวนี้ จะทำการ ban IP ดังกล่าว ซึ่งจะเป็นการช่วยป้อ.. อ่านต่อ ( read more» )

Command | Extract filename UNIX all in one

Command Linux

Add this to your ~/.bashrc extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 && cd $(basename $1 .tar.bz2);; *.tar.gz) tar xvzf $1 && cd $(basename $1 .tar.gz);; *.tar.xz) tar Jxvf $1 && cd $(basename $1 .tar.xz);; *.bz2) bunzi.. อ่านต่อ ( read more» )

Command | How to Install wine in CentOS 5 (4|6)

CentOS Command

Problem: no package wine in Yum install yum install wine Loading “fastestmirror” plugin Loading mirror speeds from cached hostfile * base: centose.centos.org * updates: centosj.centos.org * addons: centosh3.centos.org * extras: centose-msync-dvd.cent.. อ่านต่อ ( read more» )

Command | How to Install Memcached & PHP-Memcache on Debian 5.0.x 64bit DirectAdmin installed

DirectAdmin Debian Command PHP

#1. Install library libevent cd /tmp #wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz #tar xzvf libevent-1.4.13-stable.tar.gz #cd libevent-1.4.13-stable curl -O -L https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.t.. อ่านต่อ ( read more» )

Command | How to Install ionCube Loader on Debian 5.0.x 64bit DirectAdmin installed

Debian Command DirectAdmin PHP

#1. Install file module cd /tmp/ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvfz ioncube_loaders_lin_x86-64.tar.gz mv ioncube /usr/local/lib/ (more…).. อ่านต่อ ( read more» )