Currently Viewing Posts in WordPress Notes

Do you still need Xcache when you have PHP Opcache

This VPS is running with PHP 5.4.25.  Zend OPcache is a built-in module in PHP 5.4.25.

I have Xcache installed before. Today, I removed it and just use OPcache.

When I use Xcache and Opcache at the same time. And config Database cache and object cache to use opcode:Xcache. I found the Xcache doesn’t help me a lot. See screenshot below.

xcache

PHP scripts are not cached in Xcache entirely.  I thought Zend OPcache is working on php scripts.

Continue reading “Do you still need Xcache when you have PHP Opcache”

How to make your blog faster than 95% of all websites

My blog is rebuild a few days ago. I did a web site speed test through Pingdom. My home page is so fast.

pingdom-blog

The result looks so good.

Your website is faster than 95% of all tested websites

Even the performance grade is only 85 of 100, the load time is 647ms. Load time is more important than others.

Continue reading “How to make your blog faster than 95% of all websites”

Rebuild server and make it even faster

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.

webpage-result-varnish

 

Continue reading “Rebuild server and make it even faster”

Which Social Plugins is the best for WordPress?

There are some plugins or services on market for WordPress. I checked them and compared them. Tried some and found the best choice of Social Media Plugin for WordPress 3.7.

The top two are AddThis and shareThis

From 2012, AddThis is the superior content sharing plug-in. It has more features and more control on the fly. Look at the following chart from Google Trending.

Continue reading “Which Social Plugins is the best for WordPress?”

How to move blog from MovableType 5.27 to WordPress 3.7

There are very few guide on web about migrate blog from MovableType 5.27 to WordPress 3.7.
Here is my own experience to do it.

Step 1: Prepare the data on MovableType 5.27

Using MovableType export function is not enough, because the exported file has entries, tags and comments, but no keywords.
When WordPress import plugin working on this type of export file, it will not import tags. It only import MovableType keywords as WordPress tags.
So that, I found an solution to export MovableType with keywords, which are actually tags in MovableType.
Add a new template file. Add following into it and publish it.


AUTHOR: <$MTEntryAuthor strip_linefeeds="1"$>
TITLE: <$MTEntryTitle strip_linefeeds="1"$>
BASENAME: <$MTEntryBasename$>
STATUS: <$MTEntryStatus strip_linefeeds="1"$>
ALLOW COMMENTS: <$MTEntryFlag flag="allow_comments"$>
CONVERT BREAKS: <$MTEntryFlag flag="convert_breaks"$>
ALLOW PINGS: <$MTEntryFlag flag="allow_pings"$>
PRIMARY CATEGORY: <$MTEntryCategory$>
CATEGORY: <$MTCategoryLabel$>
DATE: <$MTEntryDate format="%m/%d/%Y %I:%M:%S %p"$>
TAGS: <$MTTagName quote="1"$>
-----
BODY:
<$MTEntryBody convert_breaks="0"$>
-----
EXTENDED BODY:
<$MTEntryMore convert_breaks="0"$>
-----
EXCERPT:
<$MTEntryExcerpt no_generate="1" convert_breaks="0"$>
-----
KEYWORDS:
<$MTTagName quote="1"$>
-----

COMMENT:
AUTHOR: <$MTCommentAuthor strip_linefeeds="1"$>
EMAIL: <$MTCommentEmail strip_linefeeds="1"$>
IP: <$MTCommentIP strip_linefeeds="1"$>
URL: <$MTCommentURL strip_linefeeds="1"$>
DATE: <$MTCommentDate format="%m/%d/%Y %I:%M:%S %p"$>
<$MTCommentBody convert_breaks="0"$>
-----

PING:
TITLE: <$MTPingTitle strip_linefeeds="1"$>
URL: <$MTPingURL strip_linefeeds="1"$>
IP: <$MTPingIP strip_linefeeds="1"$>
BLOG NAME: <$MTPingBlogName strip_linefeeds="1"$>
DATE: <$MTPingDate format="%m/%d/%Y %I:%M:%S %p"$>
<$MTPingExcerpt$>
-----

--------

Continue reading “How to move blog from MovableType 5.27 to WordPress 3.7”

Replace PHP 5.3.3 by PHP 5.5.3

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”

Upgrade to WordPress 3.7

It is time to upgrade to latest WordPress 3.7.

New features here:

  • Background Updates
    • Automatic updates for maintenance and security updates.
    • Daily updates for developers using nightly builds.
  • Stronger Password Meter
    • New password meter to encourage users to choose stronger passwords.
  • Improved Search
    • More relevant search results.
  • Better Global Support
    • Localized versions will receive faster and more complete translations.
    • Background updates will include translations

     

Continue reading “Upgrade to WordPress 3.7”

Upgrade to WordPress 3.4.2

WordPress 3.4.2 released today. I did a quick upgrade on my WordPress installations.
It is a security update, so, do not wait.
Fix some issues with older browsers in the administration area.
Fix an issue where a theme may not preview correctly, or its screenshot may not be displayed.
Improve plugin compatibility with the visual editor.
Address pagination problems with some category permalink structures.
Avoid errors with both oEmbed providers and trackbacks.
Prevent improperly sized header images from being uploaded.

Continue reading “Upgrade to WordPress 3.4.2”

WordPress 3.3.1 release

I upgraded almost eight blogs powered by WordPress yesterday when I got the release news of WordPress 3.3.1.

WordPress 3.3.1 is now available. This maintenance release fixes 15 issues with WordPress 3.3, as well as a fix for a cross-site scripting vulnerability that affected version 3.3. Thanks to Joshua H., Hoang T., Stefan Zimmerman, Chris K., and the Go Daddy security team for responsibly disclosing the bug to our security team.

The good part is that update procedures are pretty simple.
visit Dashboard → Updates in your site admin.
Actually, I update themes and plugins first. Then update WordPress.

A type of Hacker on WordPress

During past week, I saw two shell accounts are hacked. Both are on Dreamhost.
One of it is reported by Google Webmaster Tools. It said there are some malicious code found.
The other one is found, because that the memory usage is increased too fast, but no increase on PV.
I checked the account and be noticed some wired issues.
One of the important files, .htaccess is changed by a hacker.
It send web spiders, such as Google bots, Bing, ASK, to a third party site, which has a malicious code. The code may affect the user computers.
When user enter a wrong URL, user should see a 404 error page from the site. The hacker also send these users to the remote site, which has malicious codes.
SO, if you land the website on the right page URL, you will not see it.
It looks normal and no problems.
The hacker steal the traffic from the sites. And also has potential risk to the users of the site.
How to fix hacked WordPress blog?
The way I did to clean it is that simply.
1) Export the data
2) Make a new shell account on Dreamhost
3) Point the site to new account
4) Install the fresh, updated version software
5) Import the data
Done.
Then last step to delete the old shell account.

Continue reading “A type of Hacker on WordPress”

  • Archives