Currently Viewing Posts Tagged cache

Change directives of Nginx

My new server uses Nginx as a web server. When I check the error log of it, I saw a lot of warnings.

2016/08/27 07:30:03 [warn] 11951#11951: *590544 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/28/0000008283 while reading upstream, client: 107.174.247.88, server: www.phpbbchinese.com, request: “GET /download/file.php?id=109 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “www.phpbbchinese.com”

I did the search and found some posts about this kind of warnings. OK, let record it and see what happened later.

Increase buffers.

Edit /etc/nginx/nginx.conf

fastcgi_buffers 32 8k;

Continue reading “Change directives of Nginx”

Benchmark Report of 4GB Servermania VPS with SSD Cached

The VPS with SSD cached is much faster than normal HDD.  Servermania had a email to me last week. It said there is a upgrade of the hardware on the host of my VPS. From normal HDD storage to SSD Cached HDD.

Here is a benchmark report for the new one.

UnixBench score: 2456.6

I/O rate: 139.0 MB/second

Bandwidth rate: 37.5 MB/second

 

servermania-unixbench

It is 4 core CPU.

Continue reading “Benchmark Report of 4GB Servermania VPS with SSD Cached”

Install Memcached with Admin Panel on Centos 6.4 64bit

Since I installed PHP 5.5.3 and Zend OPcache v7.0.3, it is good for WordPress opcode already. For other cache optimization, I need a cache system. I choose Memcached server.

Part 1. Install Memcached Server

I install Memcached with following command:

yum install memcached

Then change the setting of it.

 vi /etc/sysconfig/memcached

Change the last line of option as below to restrict access from 127.0.0.1 only. and CACHSIZE to 128M.

PORT="11211";
USER="memcached";
MAXCONN="1024";
CACHESIZE="128";
OPTIONS="-l 127.0.0.1";

Start Memcached

/etc/init.d/memcached start

Memcached doesn’t start by default upon boot, we want it to start upon boot.

chkconfig --levels 235 memcached on

Continue reading “Install Memcached with Admin Panel on Centos 6.4 64bit”

Enable Memcache on phpBB 3

First of all, I need Memcache to be installed in the server.
I don’t want say too much about installation of Memcache. The topic is MAKE MEMCACHE WORK ON PHPBB3.
First get acm_memcache.php from code center of phpbb.
Put this file under /root/includes/acm/
There is acm_file.php already.
Then modify config.php
Replace $acm_type = ‘file’
by
$acm_type = ‘memcache’
That’s all.
Of course, if you do not use the default memcache installation, you need to config acm_memcache.php to let it know your IP and port.

  • Archives