การติดตั้ง xcache สำหรับ php 5.3 ขึ้นไป

การติดตั้ง xcache สำหรับ php 5.3 ขึ้นไป

# cd /usr/local/directadmin/custombuild

# wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz
# tar -xzvf xcache-3.0.1.tar.gz
# cd xcache-3.0.1/
# phpize --clean
# phpize
# ./configure --enable-xcache -enable-xcache-optimizer
# make install clean
# cat xcache.ini >> /usr/local/lib/php.ini 

ทำการแก้ไขไฟล์ nano /usr/local/lib/php.ini

xcache.size = 512M (depend on memory 128M or 256M for 2G server )
xcache.count = 8 (= no. of cpu)
xcache.optimizer = On

  • ทำการ Restart Web Service  /etc/ini.d/httpd restart
  • ตรวจสอบการติดตั้ง xcache จาก php -v

Was this answer helpful?

 Print this Article

Also Read

รวบรวมคำสั่งที่จำเป็นสำหรับ Admin ใน CentOS

รวบรวมคำสั่งที่จำเป็นสำหรับ Admin ใน CentOSคำสั่ง ls : : : แสดงรายชื่อแฟ้มในห้องปัจจุบัน...

วิธีตรวจสอบว่า Server โดนโจมตีหรือไม่ ?

การตรวจสอบว่าเราถูกยิงหรือไม่ผ่านคำสั่ง netstat   หลายๆ คนคงรู้วิธีใช้งาน netstat...

ป้องกันการโดนโจมตีเครื่องเซิร์ฟเวอร์ด้วย iptables

ป้องกันการโดนโจมตีเครื่องเซิร์ฟเวอร์ด้วย iptables PTABLES เป็น Firewall พื้นฐานของ Linux...

การตังค่าวันเวลา Date/Time สำหรับ CentOS

การตั้งค่าวันเวลา Date/Time สำหรับ CentOS ได้ด้วยคำสั่งต่อไปนี้ rm /etc/localtimeln -s...

การ Update DirectAdmin แบบ Manual

ใน กรณีที่ท่านไม่สามารถอัพเดต DirectAdmin ผ่านหน้า Control Panel ได้...

Powered by WHMCompleteSolution