This week there are users in the Aliyun forum post to ask, civil and military double personal website is how to optimize, and even some people plus civil and military QQ ran specifically to consult. Many people reflect the civil and military double personal website visit very fast, today dedicated to share based on Alibaba host and WordPress established civil and military personal website optimization experience.
First of all, to say the following Wu double personal site configuration: 1 core CPU, 1G memory, 20GB system disk + 20GB data disk, 3M bandwidth, centos 6.3 64-bit system;
Second, the following Wu Shuang personal server environment: installed the latest version of the WDCP control panel, using the lnamp environment; site based on the latest version of wordpress build, upgrade the server environment to php5.3.27 and mysql 5.5. Before running centpress on nginx centos, 502 errors occur frequently. So later to upgrade the system to 64 when the way to change the environment lnamp, run apache than nginx ran more stable.
Then, to talk about the full use of those words and website optimization strategies WordPress and website:
First: civil and military use Aliyun public DNS
June 6, 2014, Ali cloud launched its own public DNS, both military and civilian put N long telecom DNS into Aliyun public DNS. Due to the use of the WDCP panel, modifying the server DNS in the wdcp background is also a breeze.
Second: civil and military use Aliyun's cloud shield to protect the site
Alibaba now host new purchase, the default are opened cloud shield. However, the site into the cloud shield site security (that is, WAF), but also need to manually modify the domain name resolution. Civil and military personal website, long ago put all the domain name under WAF protection.
Third: Choose the right Wordpress theme
Wenwu dual personal website using the WeiWeiWeiWeiWeiSi theme template, prestige since the template was introduced within a few years has been insisting on constant optimization theme. Making the theme of the code more and more standardized, using the theme of the Web site speed naturally benefit a lot.
From the Weisay Simple theme itself, there is not much of a homepage, article page template, and list page template. Topic is more text content and text list, but also to ensure the use of the theme itself is very fast.
Fourth: set the correct picture thumbnail size
Weisay Simple theme of each article in front of a thumbnail image, civil and military use NextGEN Gallery plug-in management website pictures. In the NextGEN Gallery you can set the size of the shrink map, the correct size of the shrink map should be 140 * 100.
However, both civil and military found a large number of articles of the article shrink rate picture is actually the default size of the picture, a lot of friends using wordpress station are ignored this problem. As a result, the homepage of the website becomes unusually large and affects the opening speed of the website due to the large number of default size contraction maps.
Fifth: use wordpress cache plug-in static station
Friends using dedecms website are all impressed with the creation of a key to weaving dreams, in fact, wordpress can also achieve a similar full-stop static. Civil and military personal website is using the official wp_super_cache plug-in, it is recommended that you try this plug-in.
Home only some special small shrink map, and then the page static, such a wordpress site not happy not work ah. Recommended wp_super_cache plugin recommended configuration can be, the effect is very obvious.
Sixth: shield Google fonts
This is a commonplace question, and many of the theme authors are aware of the problem, updating the theme directly to block Google fonts. You can also install the plug-in method, shielding Google fonts, we can check Baidu.
Seventh: uninstall unnecessary plug-ins
Before the civil and military also installed a bunch of plug-ins, and later those who are not commonly used plug-ins are unloaded. For example, Baidu to share, what Baidu recommend. Reduce the call from other sites, but also on the speed of the site have some help.
Eighth: Install PHP Accelerator
If you can appeal seven people can do it, your wordpress site speed has been very good. As php acceleration method, we can try. Civil and military recommended to upgrade php to 5.5 and above, has integrated Zend Opcache, php acceleration is also very good. Civil War double personal website php version is 5.3, so I installed Zend Guard Loader and Zend Opcache.
These are just some ways to optimize WordPress and your personal website. In fact, some opinions have been talked about countless times. Hope that the combined experience of both civil and military can contribute to everyone's wordpress website speed. If you have questions, you can also go to Ali Forum official discussion with us oh.