Recovering from WordPress permalinks hack

We have seen quite a few blogs hacked because WordPress was NOT updated on a timely manner. If you are seeing strange links in URL with eval… functions your blog was 0000wned…sorry 🙁

Use phpmyadmin or shell mysql command to replace some bad stuff:

update wp_options set option_value=” where option_name=’_transient_rewrite_rules’;

select * from wp_options where option_name=’permalink_structure’;

Check the above SQL select and see if you have any strange functions or code in wp_options field. Replace as required, for example:

update wp_options set option_value=’/%year%/%monthnum%/%postname%/‘ where option_name=’permalink_structure‘;
I like cheap generic cialis online.

WordPress architecture for high load blogs

At LinuxAdmin we have worked hard to develop and use high-performance open source software for reliable WordPress blog hosting. We have spent years managing Linux boxes and have seen small blogs reach millions of unique monthly visitors that we host.

Budget is one of the major factors for every business or even a private person. This is why we use low cost servers and set-up in load balancing environment for high-availability and horizontal scalability.

For WordPress blogs we suggest starting with a dedicated server that will host web content and MySQL database as well. When load increases you can start using more advanced techniques and tuning like local caching, using content delivery networks, super fast web servers for serving static content and other methods.

However, the biggest performance gains are to split MySQL server from Web server, thus, you will have a dedicated box for Web server and MySQL database.

Next is to split static content from dynamic content (PHP) – there are many super fast web servers that will serve images, file downloads and other static content at super fast speeds and using low resources. Some examples: Nginx, Cherokee, Lighttpd, Thttpd and many others.

Remember to use local caching plugins like supercache, some sites experience very good performance boosts using eaccelerator and other PHP caches. You should test out what works best for you.

You can also do memory-caching based on memcached. Pretty cool way to use server memory to store code blocks, like front page, feeds etc.

We will go more in depth in our next blog posts, but if you are searching for a good Linux server management company that can handle and tune WordPress blogs you should consider Linux Admin. Remember, we pay attention to every server and do a lot of custom work – customization, tuning, performance benchmarking, peak monitoring and other tasks to make sure you server performs at it’s best!

Remote backup service security

One of the most important factors choosing a remote backup service is security. Imagine when you are trying to restore a system from a backup, but there is no backup – the backup files were deleted by a hacker.

This may happen with anyone and you can never be sure your data is 100% safe. Well you can if you disconnect the server or device holding your backup data (we do not review physical aspects here) and it can’t be accessed remotely.

Over 80% of online backup services provide you a backup space were you can upload your data using FTP, rsync, SCP or any other method. You are initiating the connection with a specific software or a script. Now when your server or workstation is compromised a hacker can access the programs or scripts that uploads data to a remote backup service, login there and delete your data viagra otc.

The best way would be for you to use a backup service company that initiates a data transfer from their remote backup servers (using scp scripts or RSYNC over SSH) – your server doesn’t have a direct access to backup data directory. So when your server is compromissed (hopefully it never happens) no data can be deleted from a backup service because unauthorized person can’t access the remote system.

Linux or Windows platform for hosting

Sorry folks, I had finally some time to edit this original junk article and I have came up with a much better version now.

Linux or Windows platform for web hosting? This question is asked many times and let me show you what OS works the best for you.

Linux is free and you should not pay yearly renewal or update fees (a good choice is Centos, Debian, Fedora and others). Suse Enterprise (SLES) and Redhat Enterprise does have licensing costs and/or update subscriptions that cost recurring fees. If you go Windows route you will need to pay for OS and the fees are quite high for web servers. While you can download a lot of free software for Linux, Windows applications tend to cost something.

Many folks prefer to use Linux, Apache, MySQL and PHP (LAMP), indeed, you can run Apache MySQL and PHP on Windows OS as well. Developing PHP applications using MySQL as a database is quick and easy and it doesn’t cost a dime. Of course if you need to run ASP or use MS SQL as a database server you will need to go with Windows OS for your server hardware.

My suggestion is to always use Linux for hosting, unless you need to run Windows specific applications – ASP code, MS SQL as a database back end and other Windows specific software.

Don’t forget that you will need to manage the server and keep up with security patches etc – some people prefer Windows as it’s more user-friendly and easier to update, however it comes with a price.

Increasing WP-Cache performance for blogs with heavy commenting

Caching is the key to success – the more content you cache, the more visitors on the same hardware you can serve. Many WordPress owners run wp-cache plugin to cache blog pages in files, rather than generating content on the fly – querying MySQL database. If you have a low usage that is fine, but if you have a medium load blog or getting Dugg/Slashdot effect – only tuning, optimization and proper caching will keep your blog up and running.

wp-cache will need to regenerate cache file every time a blog post receives a comment – performance is lost if the post receives heavy commenting. You can hack wp-cache plugin to expire cache for particular page only when cache expire time expires, not with every new comment.

Open the WP plugin directory – wp-cache plugin file: wp-cache-phase2.php

and comment out line:

add_action(‘comment_post’, ‘wp_cache_get_postid_from_comment’, 0);

// add_action(‘comment_post’, ‘wp_cache_get_postid_from_comment’, 0);

And you are set.

Why choose virtual private server

Many experts have said that the best environment for E-commerce sites are those which used a dedicated server. Dedicated servers have become quite popular because they offer uses a great deal of security and the ability to customize their settings. The whole server if yours, and you can do whatever you want with it. However, the biggest down side to this is the cost involved with purchasing a dedicate server. Unless you have between $250 to $7000 to spend each month for you start up budget, you will need to either lease it, or you will need to co-locate the server on the data center of someone you know. It is also possible for you to pay for a large internet connection to your central location.

One good solution to a dedicated server is a Virtual Private Server. This is a service that essentially offers you shared hosting, and you will be given a single account. When you use a Virtual Private Server, the resources and hardware will be partitioned into a number of environments that are isolated. Each environment will function as its own small dedicated server. Every Virtual Private Server will have its own degree of control over the software, parsers, and resources. Virtual Private Servers are very useful because they reduce many of the problems that commonly occur with shared hosting. The user will have resources that are guaranteed, and the operating environment will have a high level of security.

There are a large number of advantages to a Virtual Private Server, and the first is control. While you may not be given the ability to make calibrations near the central operating system, you can update your PHP, as well as the configuration for MySQL and various other applications. With a dedicated server, you can make some serious errors if you aren’t sure what you’re doing, but you don’t have to worry about this with a VPS. The reason for this is because you will not be allowed to access things that can compromise the ability for the VPS to operate. This is a very useful feature for those who are interested in becoming skilled with web server administration.

Another powerful advantage of a VPS is that users are allowed to have multiple websites. You can have a large number of domains, and while there may be restrictions, some services allow you to have as many as 100 domains. One issue that should always be taken into consideration is security. Every Virtual Private Server will operate within an individual environment, and the files that are stored on this server cannot be seen by other Virtual Private Servers, even if they are on the same central server. Virtual Private Servers are known for having a high level of security in comparison to other server options.

The last and perhaps most important advantage of a Virtual Private Server is the cost. While dedicated servers will generally start at about $250 per month, most Virtual Private Servers will start at $30 per month, and will be as much as $100 per month. As you can see, there is a large price difference. This is an excellent option for small to medium sized businesses that can’t afford to use a dedicate server.