หากเกิดข้อความเตือนเมื่อเรียกคำสั่ง php แบบ cli (Command line) เช่น
$ /usr/bin/php –help PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 …
สามารถแก้ปัญหาโดยการใช้ option -n ซึ่งหมายถึง php จะไม่ไปอ่านค่าต่างๆ ในไฟล์ php.ini ตัวอย่างการใช้งานเช่น
$ /usr/bin/php [...]
เมื่อมีการเปลี่ยนเน็ตเวิร์คการ์ด แล้วไม่สามารถ start network service ได้จะต้องแก้ไขไฟล์ /etc/network/interfaces ด้วยคำสั่ง
# sudo vi /etc/network/interfaces
และให้เพิ่ม MAC address ของการ์ดเข้าไปดังตัวอย่างด้านล่างนี้
auto eth0 iface eth0 inet dhcp hwaddress ether 01:02:03:04:05:06
จากนั้นให้ restart network service
sudo /etc/init.d/networking restart
Google เปิดให้บริการ URL Shortener ที่ http://goo.gl
เราสามารถสร้างลิ้งก์ได้ทันที่โดยพิมพ์ลิ้งก์ที่ต้องการย่อผ่านเว็บ ถ้าหากใช้งาน Chrome อยู่แล้ว ก็สามารถติดตั้ง goo.gl URL Shortener ได้จาก http://goo.gl/41Jvi (ดู source ของ extension นี้ได้ที่นี่ http://goo.gl/4pkr3)
หากเราต้องการให้มีการเก็บประวัติลิ้งก์่ย่อไว้ด้วย ก็สามารถได้โดยการล็อกอินโดยใช้ Gmail account โดยนอกจากประวัติลิ้งก็แล้ว เราสามารถดูสถิติการคลิกของลิ้งก์ย่อแต่ละอันได้ด้วย
นอกจากนี้หากใช้บริการ Google Apps อยู่แล้ว ก็สามารถสร้าง URL Shortener ภายใต้ชื่อโดเมนของเราได้ด้วย เช่น http://link.engr.tu.ac.th/history โดยสามารถติดตั้งได้จาก Google Apps Margetplace [...]
# mkdir /mnt/iso
# mount -o loop disk1.iso /mnt/iso
เราสามารถทำการบันทึก Client IP ทีเครื่อง backend แทนที่จะให้ปรากฎเป็น IP ของ varnish เช่น 127.0.0.1 สามารถทำได้โดยการ แก้ไขไฟล์ /etc/varnish/default.vcl
sub vcl_recv { # Add a unique header containing the client address remove req.http.X-Forwarded-For; set req.http.X-Forwarded-For = client.ip; # [...] }
และเพิ่มบรรทัดต่อไปนี้ในไฟล์ /etc/httpd/conf/httpd.conf
LogFormat “%{X-Forwarded-For}i %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”" varnishcombined
และใน VirtualHost directive ให้ใช้ CustomLog ดังตัวอย่างต่อไปนี้
<VirtualHost [...]
Tags
.htaccess Apache blogspot CentOS codeigniter CSS domain name driver Drupal Flickr Hotmail HTML internet law linux mailing list mailman MICT mod_rewrite monitor MSL MySQL name server Network open source PHP Postfix Security Smarty sony Spammail SPF theme TLS traffic log Universiade UTF-8 UTF8 vbulletin Wordpress การเมือง จตุคาม รูปภาพ สถิติ เรารักในหลวง
