This blog is running fast compared with other blogs I saw, but I rebuild the server and make it even faster.
The Load time of home is decreased from 1.858 second to 1.219 second, or 34%.
The technology used on the new installation listed below:
- Centos 6.5 64bit
- Apache as backend server
- php 5.4
- Varnish as front cache server
- MariaDB database server
- Proftp Ftp server.
Continue reading “Rebuild server and make it even faster”
I installed a Zend Server on one developing server. It is v6.
- Zend Server Version: 6.0.1
- Build: branch_zend_server_release_6.0.1:69400
The original license information is trial for one week, full features.
After one week, I need a Free License to use it.
Now I got a Free License and it works perfectly with certain limitation.
How to get your Zend Server Free License?
1) Sign in Zend Account
If you do not have it, just sign up.
2) Click the link below to get one
You will see you Free Zend Server License information, including Order number and Serial code.
3) Sign in your Zend Server to apply the new license
Administration > License
Click change license button and enter the order into order number field, and Serial into License Key field. Save it and it will restart.
What is the limitation of the Free Edition?
While free Zend Server is a great solution for a development project, it has limitations compared to paid Zend Server subscriptions. Paid subscriptions include longer data retention (months or years rather than an hour of metrics), technical support and security patches , more performance features, and multi-server support and management.
Look at the Zend Server Editions comparison.
Refurbished technology such as refurbished servers from PerfData.com can save a small budget. Refurbished equipment works just as well as used equipment. Most of the servers will come with a short warranty in case something happens.
Servers cost a lot of money. They are not single computers that are used in a family home. They are used to store millions of files and information. Many companies have dozens of servers running at the same time. They stack on top of each other inside of a glass case most of the time. There are wires running everywhere. Most of them are filled with lots of memory to keep up with the demands they need to meet.
Continue reading “Alternative Choice of Refurbished Server”
It is a very popular service on web application and mobile apps. I like its server service.
The servers New Relic supported includes Linux, Windows.:
- Centos / Red Hat
- Ubuntu / Debian
- Other Linux
- Windows 2003, 2008
I followed the instruction of Centos to install the service on my ServerMania VPS.
Step 1: SSH to VPS as Root
Step 2: Add the New Relic yum repository
rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
step 3: Install the Server Monitor package
yum install newrelic-sysmond
Step 4: Configure & start the Server Monitor daemon
Add license key to config file: (See /etc/newrelic/nrsysmond.cfg for other config options)
nrsysmond-config --set license_key=your_own_key
Start the daemon:
Step 5: Done!
The data is update just in minutes.
Continue reading “Implement New Relic server service on Centos 6.4 64bit”
To fine tuning mysql server, run Mysql tuning primer script on server.
But I got error which said bc is not found. So just enter following yum install bc to install it.
[root@vps test]# ./tuning-primer.sh
which: no bc in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Error: Command line calculator 'bc' not found!
[root@vps test]# yum install bc
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.
Change the last line of option as below to restrict access from 127.0.0.1 only. and CACHSIZE to 128M.
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”
I have a test before to compare the performance of PHP 5.5 and PHP 5.3. The result is PHP 5.5 is 20% faster.
Now, I replaced PHP 5.3.3 by PHP 5.5.3 at this server, which my blog is on.
The php -v information shown as below:
PHP 5.5.3 (cli) (built: Aug 24 2013 10:14:23)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
Continue reading “Replace PHP 5.3.3 by PHP 5.5.3”
There are certain PHP configuration tat affect security features. The following recommended security configuration options is for production servers.
- register_globals set to off
- safe_mode set to off
- error_reporting set to off
- disable these functions: system(), exec(), passthru(), shell_exec(), proc_open(), and popen()
- open_basedir set for both the /tmp directory and the web root so that scripts cannot access files outside a selected area
- expose_php set to off
- allow_url_fopen set to off
Continue reading “How to config PHP to secure Web Server”
Ordered a new VPS from ServerMania. I did a test two days ago through ServerBear.
The basic information about this VPS.
- RAM 4 GB
- Burstable 8GB
- HDD 150 GB
- CPU Model Intel(R) Xeon(R) CPU E3-1270 V2 @ 3.50GHz
- CPU Cores 4
- CPU Speed 3500 MHz
- CPU Cache 8192 KB
- 4 TB Bandwidth
- 4 IP address
The testing results:
UnixBench (w/ all processors) 3817.1
UnixBench (w/ one processor) 1900.7
Continue reading “4GB OpenVZ VPS”
I have three routers in house. One is provided by ISP, Telus. It is 2 in 1, including modem and router. The second router is Buffalo WZR-HP-G300NH. It is placed beside Telus device. There two are connected with lan cable. Both are in the living room ground floor. The third router is located at basement. It is Buffalo WZR0HP-G300NH2. It is connected to the second router with wireless connection as client bridged.
I drew a reference layout.
Now, let me describe the network problem. It bothered me for two months.
I have a PC, Windows 7, in the basement, connect the router 3 with wire connection.
Normally I have no problem to working on this PC. Web browsing, online gaming, streaming video.
Until last month, I tried to install a Centos server. The server can not do update, can not wget remote files.
In the server terminal window, I can ping domain and get the IP address of Google.com, but I can not traceroute path to Google.com. It said network is unreachable, something like that.
When I tracert my host from Windows, the error looks like below:
Continue reading “Fixed a strange network problem”