Installing Elgg platform on Windows Server 2008 IIS 7

How to make Elgg work on a windows 2008 or 2008 r2 server:

I’ve used the installatron installer in plesk to do the initial Elgg installation. But after finishing the installation, Elgg didn’t work.

elgg on iis login pageAfter login in, it shows a 404 error:

elgg on iis 404

DaWolf posted an interesting solution on the Elgg community discussion board:

Yes I am running Elgg on IIS 7 (Windows 7). The rules you tried to add in the web.config threw errors in the regular expressions because IIS doesn’t need an escape character for the underscore. Replace all instances of /_ with _ in each regular expression and you should be good. I have added instrutions on how to get Elgg running on IIS if you’re just starting out.

  1) Install the IIS URL Rewrite module:

  2) Open the IIS Manager in Control Panel > Administrative Tools

  3) Right-Click on your Elgg site and select “Switch to Features View” if not already there.

  4) Open the URL Rewrite Feature and click “Import Rules…” in the actions menu.

  5) Browse for a configuration file… Open the “htaccess_dist” file located in the root directory of your elgg site.

  6) Rename each rule if you desire to do so by right clicking on the  rule name in the Tree View. This is optional. I renamed my rules  “Action Handler, Service Handler, Export Handler1, etc…”

  7) Under each rule there is a match tag. The tags contain regular  expressions. Most regular expressions will generate an error because IIS  is interpreting them differently than Apache would. There is a simple  fix. In every instance you see “/_” remove the slash.  It is an escape character for the underscore. This isn’t necessary for  IIS and will generate an error. Be sure to remove it anytime you see it  before the underscore.

  8) In the actions menu on the right, hit apply.

That’s it! Elgg should now work on IIS.

Please note that this is only a viable solution if you have access to the IIS manager, in a shared hosting enviroment this can be an issue, please contact your hosting provider if you need support with these settings.


Add floating social share buttons to wordpress

After testing a few ways to add share/tweet/like buttons to my site I ended up using my current ‘smart sharing’ plugin. As you can see it’ll float nicely along with your wordpress posts.

I cant find the ‘smart sharing’ plugin!?!

Not to worry, the plugin is not available in the plugin download section of your admin dashboard, but you can be downloaded by singing up for the mailing list. Normally I’m quite reluctant to give my e-mail address to download something, but in this case I think it’s worth the effort. So far I haven’t received any spam from these guys.

Installation is quite straightforward, just upload the zip-file and activate it. I guess it wouldn’t be right to upload the zip and share it with you, so i’ll just point you to the mailing list sign up..

To download the plugin, click here

Xhanch – My twitter plugin slows down WordPress

Recently my blog became very slow, loading times exceeded a few seconds. Quite frustrating. After disabling all plugins one by one I pinpointed the problem to the Xhanch My Twitter plugin. Changing several plugin settings didn’t help.

After a bit of googling I read something about Xhanch My twitter creating a lot of double lines in it’s database, hence slowing down the site, and even the complete webserver. Since i’m not a code-wizard i’m reluctant to dive into the database myself, so i decided to look for an alternative.

I’ve submitted a bugreport to it’s makers, in the meantime i’m using Tweetupdater. Out of the box it displays my tweets exactly as I want them, in the same style I configured my My twitter widget. Problem solved.


There is a thread on this subject currently on the Xhanch forum. Lets see how that works out.


Solved: WordPress site not working after installatron install in Plesk


After installing wordpress 3.2 with installatron in Plesk Panel, your wordpress website is not showing when you surf to the website. In my case, the default Plesk page was still showing. The wordpress admin panel at wp-admin.php does work.


In my case, the default Plesk page was an index.html file in the root folder. Since this file preceded the index.php file that wordpress uses, simply renaming the index.html file to index-old.html solved the problem. Deleting index.html also does the trick.


Add sidebar to single post in the WordPress 3.2 Twenty Eleven theme

With the new TwentyEleven template included in WordPress 3.2 you’ll notice that the sidebar is gone in the single post page.

Update: This solution has succesfully been tested for the new WordPress 3.3 update and TwentyEleven 1.2 update.

Remark: This solution also works for single pages. Instead of single.php add the <?php get_sidebar(); ?> to page.php as described below for single.php

Based on the comments on i’ve described my quick workaround below. It looks like the sidebar issue can be solved by just editing 2 files in the editor, which you can find in the Appearance menu.

Step 1:
In the single.php file replace:

        </div><!– #primary –>

<?php get_footer(); ?>


          </div><!– #primary –>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Press ‘Update File’.

If you open a single page you will see the sidebar has appeared on the single post page, but it is at the bottom of the page.

Step 2:
To put the sidebar next to the post, we have to edit the theme functions (functions.php)

Open the functions.php in the editor.

The statement you’ll be looking for is the ‘singular’ statement, found at the bottom of functions.php. I’ve added comment tags to be able to switch back to the original situation without too much trouble. But i advise to back up the original file just in case something goes wrong.

This is how i’ve done it:


*add_filter( ‘body_class’, ‘twentyeleven_body_classes’ );

As you can see i’ve added the /** in front of the first part, and added an * to each line, to close the ‘comment mode’ just add a line with a */.

All you have to do is press the ‘update file’ button and you’re set.
This is just a quick fix which seems to fix the problem for me, I don’t know much about php so i’m sure there are better ways to fix this problem. If so, please let me know.