Archive for the ‘Servers’ Category.

Make Wordpress Faster Part II

wordpress.png

This is an addendum to Make Wordpress Load Much Faster.    Just a few more tips to get more speed out of your Apache/Wordpress installation.

Continue reading ‘Make Wordpress Faster Part II’ »

How to Delete Existing WordPress Post Revisions Stored/Saved

wordpress.png

For users who had disabled or turned off post revisions tracking or versions history feature in WordPress (added since WordPress 2.6), it is also made sense to delete and remove all existing stored post revisions and changes made on pages stored in the database in order to reduce the wp_posts table size, especially when there is already tons of revisions or changes been kept.
Continue reading ‘How to Delete Existing WordPress Post Revisions Stored/Saved’ »

Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above

wordpress.png

Another new feature in WordPress blog publishing system added since WordPress version 2.6 is post revisions tracking similar to version control system, which provides Wiki-like style tracking of edits been made onto the posts or pages. Post revisions tracking allows bloggers and authors to view who, on when, made what changes to any post or page, with ability to compare for differences between each saved versions, or revert back to older version.

Continue reading ‘Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above’ »

How to mass delete unapproved comments in Wordpress

wordpress.png

opinion.tuxtraining.com is(was) a separate wordpress instance as it really does have little to do with this site and I wanted a degree of separation.  I did not want user accounts at that site, nor did I wish to run ads.  It’s more for my own amusement than anything and definitely has nothing to do with Linux tutorials and howtos.

Well I neglected it for far too long, it did not have akismet installed , and so when I logged in I had 2000+ spam comments waiting for me.   Now I wasn’t about to delete 100 pages of comments manually one page at a t ime through the wordpress interface.

So this is what you do:

Log into your webhost and open up mysql, do a use <databasename> to switch to the appropriate database and issue the following command:

mysql> DELETE FROM wp_comments WHERE comment_approved = ‘0′;

Any comment that has not been approved will now be deleted.

How to setup a FAMP (FreeBSD, Apache, MySQL & PHP) server

freebsd.png

Software installed and functioning by the end of this walk through :

  • FreeBSD 7.1
  • Apache 2.2
  • PHP 5.2.8
  • MySQL 6.0.9

First off grab a copy of FreeBSD 7.1 from http://www.freebsd.org/where.html

Once you have FreeBSD installed we can start.

Continue reading ‘How to setup a FAMP (FreeBSD, Apache, MySQL & PHP) server’ »

How to have wordpress social buttons without plugins

wordpress.png

First and foremost get the buttons that you would like to use.  Then download the images and upload them to the /images folder in your current theme.

Continue reading ‘How to have wordpress social buttons without plugins’ »

How to chroot jail a user in ProFTP

terminal.png

Let’s say for example we want to chroot the user someuser to their home directory /home/someuser. You will need to edit /etc/proftpd.conf and add the lines below to the bottom of the file.

DefaultRoot /home/someuser someuser

Let’s quickly explain the line above. DefaultRoot is the parameter used by proftpd to enable the jail functionality. someuser is the primary group of all users being chrooted (by default this is the same as the username). /home/someuser is the directory where the user will be jailed.

Save the file and restart proftp.

sudo /etc/init.d/proftpd stop

sudo /etc/init.d/proftpd start

And you’re all done.

Apache Cheatsheet

apache.gif

Make Wordpress Load Much Faster

wordpress.png

If you are suddenly receiving a lot of request within a short period of time because you’ve been linked by a large site like Digg or Slashdot, your hosting solution might not be able to handle the load.

This article should help your to prepare your WordPress blog for such a case or if you’re just using a slow webhost and want to improve the general performance.

Continue reading ‘Make Wordpress Load Much Faster’ »

How to block IPs from your website with .htaccess

apache.gif

Insert a line similar to the one below into your .htaccess file in your web server’s document root:

deny from 10.205.111.43

And all connections from that IP will no longer be able to view your site.

Pages: 1 2 3 Next