Memcache Install the memecached system; large scale this is a dedicated server with 90% of the resources (*cough* RAM) is dedicated to memcached. For many smaller installations however (<10,000 nodes) you may be able to get away with memcached running on the web-server. Once memcached is running it can cached data content for D7; if..
Read morePHP’s Zend Opcache Config In your php.ini or /etc/phpversion…/fpm/conf.d/05-opcache.ini opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=50000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
Read moreW3 Total Cache là một plugin hỗ trợ tăng tốc (tạo bộ nhớ đệm) rất tốt và chuyên nghiệp nhất hiện nay mà lại hoàn toàn miễn phí, tuy cách sử dụng và cài đặt có thể hơi khó. Sở dĩ lại có chuyện này là vì W3 Total Cache hỗ trợ tới kỹ thuật..
Read moreWhy install PHP + FastCGI? Mod-PHP comes installed with XAMPP, and it is slow. You also cannot utilise the Zend opcode cache, which is included with PHP itself since PHP 5.5. Steps to install PHP + FastCGI
Read moreNginx bản thân nó đã là một web server có hiệu suất hoạt động rất tốt. Tuy nhiên vẫn có nhiều cách để tối ưu thêm và một trong số đó là sử dụng module được phát triển bởi Google có tên PageSpeed (ngx_pagespeed) ngx_pagespeed tăng tốc website của bạn và giảm thời gian load đáng kể bằng..
Read moreMemcached là một hệ thống cache hoạt động bằng cách lưu tạm thông tin những dữ liệu bạn hay sử dụng vào bộ nhớ RAM. Do tốc độ đọc ghi của bộ nhớ bao giờ cũng cao hơn so với lưu trữ file nên việc sử dụng memcached giúp cho hệ thống của bạn tăng tốc..
Read moreSử dụng APC hoặc APCu từ lâu đã là một phương pháp opcode cache được sử dụng rộng rãi để tối ưu hoạt động của VPS. Tuy nhiên APC không được cập nhật, nâng cấp thường xuyên (phiên bản stable mới nhất 3.1.9 ra ngày 2011-05-14) và thỉnh thoảng vẫn xuất hiện một số lỗi..
Read moreDatabase and table First create a database in mysql and create a table called members in it. CREATE DATABASE books; CREATE TABLE members (id INT(20) NOT NULL AUTO_INCREMENT, username VARCHAR(100)); Insert some dummy values. INSERT INTO members (username) VALUES(“anand.roshan”); …
Read moreTo resolve it open app/code/core/Mage/ImportExport/Model/Export/Adapter/Abstract.php around line no. 60 replace $destination = tempnam(sys_get_temp_dir(), ‘importexport_’); to $destination = tempnam(Mage::getBaseDir() . ‘/tmp/’ , ‘importexport_’);
Read moreTìm < ?php $i=0; foreach ($_productCollection as $_product): ?> Thêm vào sau < ?php if($this->getIsHomepage() && $i==10) break; ?>
Read moreĐôi lời về Openshift: OpenShift is Red Hat’s Cloud Computing Platform as a Service (PaaS) offering. OpenShift is an application platform in the cloud where application developers and teams can build, test, deploy, and run their applications. OpenShift takes care of all the infrastructure, middleware, and management and allows the developer to focus on what..
Read moreHạn chế sự tò mò của các bác function anti_sql($sql) { $sql = preg_replace(sql_regcase(“/(from|select|insert|delete|where|drop table|show tables|#|*|–|\)/”),””,$sql); return trim(strip_tags(addslashes($sql))); #strtolower() } một cách khác
Read moreCHƯƠNG 1: GIỚI THIỆU MỘT SỐ THẾ HỆ MẠNG 1.1 MẠNG IP a. Chuyển tiếp IP và những hạn chế của nó Như ta đã biết, Internet là một tập hợp các mạng kết nối với nhau dùng để chuyển tiếp gói tin giữa các host sử dụng IP. IP cung cấp dịch vụ đóng..
Read moreNhững Website lớn khi có lượng truy cập và lượng dữ liệu lớn thường hay có hiện tượng treo Server, chêt Process PHP, SQL bị locktable, Copying to tmp table…những hiện tượng này đều do lượng dữ liệu khổng lồ, SQL và code chưa được tối ưu hóa, chưa xử lý cache(cache file, cache SQL,..
Read more
Hướng dẫn config VPS chịu tải lớn
Hiện tại có rất nhiều hướng dẫn cấu hình để có thể tạo được VPS chịu tải lớn trên mạng thông qua load balancing, optimize các services… Hôm nay, mình sẽ hướng dẫn các bạn một cách khác sử dụng kết hợp Zend Opcache, Memcache để có thể xây dựng được VPS có thể chịu..
Read more