Currently Viewing Posts in Notes of MovableType

Stop mt-comments.cgi to save memory

I can not publish new post in this blog. So many 500 error when I click publish, some times when I click signin.
The 500 internal error is because my blog, MovableType ate a lot of memory when it running. The Dreamhost is monitoring the resource user is using. It will kill the thread when it over the limit. Actually they don’t tell you the limit of it. They just tell you, it is time to upgrade to their VPS.
I connected the server through ssh. Run top command to see which one is more popular.
Yes, I found it. More than one mt-comments.cgi stay on the list.
To temporary solve the problem, I rename the mt-comments.cgi to other name. Then sign in the backend of MoableType.
Click Settings, Feedback, Uncheck the check box after Accept Comments.
Then, republish the whole site.

Continue reading “Stop mt-comments.cgi to save memory”

Some changes of blog

During past few days, I did some modification on my blog here to accomodate the social media changes.
First, I removed Digg button code from templates. Not just because of the traffic from Digg is very limited, but the Digg API was not working any more. Digg has a big change on their own side. I will wait and see the future of it.
Second, I replace the Facebook like button code from the MovableType plugins code to Facebook native code.
I put it just under the post title, before the content of post. It looks good.
Third, add Twitter button, just add it in the place which Digg used before.
I use the code from Twitter Developer site.

Continue reading “Some changes of blog”

What is New of MovableType 5.2

As a MovableType user for 7 years, I am keep my eyes on the development of it. SixApart just released Movable Type 5.2 Beta 4. So I think the new version of MT5.2 is coming soon.
I would like to know the what is new of MovableType 5.2. I am useing MovableType5.14 now.

New features of Movable Type 5.2

Support for nginx+PSGI system environments
Nginx is a light web server which has recently come into the spotlight for its fast performance. PSGI (Perl Web Server Gateway Interface) is an interface that connects web applications and web servers. When used in combination with nginx, Movable Type can become lighter and run faster.
New rich text editor
Fully refined and easy to use; enables more efficient website management.
Site path restriction
To meet high-degree security policies, site paths can now be restricted when creating blogs or websites.
SMTP Authentication
Support is now available for sending email notifications using SMTP over SSL.
Improved performance of custom fields.

Continue reading “What is New of MovableType 5.2”

Upgrade MovableType 5.13

It is a mandatory security updates. As 6A said:

Movable Type 5.13, 5.07, and 4.38 were released as mandatory security updates. These updates resolve multiple vulnerabilities discovered in Movable Type 5.x and Movable Type 4.x. The vulnerabilities were found as a result of our internal security audit, except the one reported from Trustwave (TWSL2012-002). All users must upgrade to this latest release immediately.

Upgrade process is very simple. Download the tar file, decompress it, copy all files to overwrite the old files.
When log in, it will automatically go to mt-upgrade script.
It also has some new features.
Account and IP Lockout
Account lockout is a feature to protect your Movable Type account from a password-guessing attack known as a brute force attack or a dictionary attack. Movable Type locks out accounts after defined number of incorrect password attempts.
Changing Password Validation Rules
A system administrator can set password validation policies to let users to use stronger passwords.
Stronger Password Encryption

Continue reading “Upgrade MovableType 5.13”

Add Disqus without remove the existing comments

As I mentioned before, I installed Disqus commenting system on this MovableType 5.
But the way I posted is to replacing all old comments template. So, after publishing, existing comments are not showing on the page.
Now, I change the comments template.
1) Just add the Disqus code in the very beginning of the comments template. Keep the old code of it.
2) Change the comment setting, at Settings > Feedback, un-check the check box at Accept Comment. (It stop future comments with MovableType 5 own commenting system.)
3) Republish and done.

Continue reading “Add Disqus without remove the existing comments”

Install Disqus commenting system on MovableType 5

MovableType has commenting system, but it is not good. Most of time, thousand spam is sitting in the blog await the owner to delete them. If there are many thousands spams, it is hard to delete them in a short command. My experience is to use phpMyadmin to delete them. The sql script I use is: delete from mt_comment where comment_visible = 0. I used it to delete 63962 spams.
OK. I give up. I find Disqus. It is beautiful and easy to install.
First of all, I have to disable the internal commenting system of MovableType 5
Click Settings >> Feedback >> Comment Settings, uncheck the check mark box of Accept Comments.

2011-12-05_123113

Second, Go to disqus.com to sign up and add your site. When choose the code, please be noticed that MovableType plugins is only for MovableType 4, not 5. So, choose universal code.
Then copy the code in the first box and put in the very beginning of comments template. Save the template.
Keep the code already there, which will keep the old comments.
The last step is republish all entry archives.

Upgrade to Movabletype 5.1

Just upgrade my MovableType installation from 5.04 to 5.1.
Here is the list of new features of MovableType 5.1
New features
Managing categories and folders
Drag & drop sorting
New attributes (sort_by and sort_order) for , , and tags.
tag
Managing contents by a new listing screen
Detailed display options
Custom filters
Bulk actions by selecting all from multiple pages
The listing framework for developers
MultiBlog tags
include_blogs
exclude_blogs
include_websites
exclude_websites
tag with the parent=”1″ attribute to include the module in the parent website.
trim_to modifier with ellipsis
Use blog_id param to specify the template when searching multi blogs with IncludeBlogs param. Use the first blog in includeblogs if blog_id is not specified.
Configuration Directives
LocalLib was added
Support Imager as an ImageDriver
Usability enhancements
Drag and drop input fields on Edit Entries/Pages
Selecting publish status from pulldown and saving from the preview
Better “included templates” widget
Template editor’s syntax highlight On/Of
The process of upgrade is simple and easy.

mt51

Continue reading “Upgrade to Movabletype 5.1”

How to Add Meta keywords description tags into Movabletype 5.04 Templates

When doing on page optimization of blog, you need to beautify the html code and try to make it easy for Search Engine indexing.
The basic concept is to add meta keywords and description tags in every web page.
Now I show you how to add it into MovableType 5.04 Templates
Sign in the backend of your MovableType blog.
click Design > Templates
Find Entry template under Archive Templates set.
click it to get into the editor mode.
Find following code in it.

<title><$mt:EntryTitle encode_html="1"$> - <$mt:BlogName encode_html="1"$></title>

Add the following code after it

<meta name="keywords" content="<MTEntryTags glue=", "><$MTTagName$></MTEntryTags>" /><br /> <meta name="description" content="<MTEntryExcerpt>" />

Rebuild the individual pages after above changes.

Continue reading “How to Add Meta keywords description tags into Movabletype 5.04 Templates”

  • Archives