Posts

Showing posts from June, 2013

Optimizing IIS server

After searching the web for a while, I found some useful tips for optimizing Microsoft IIS performance. The first thing to do is disable logging for your sites. Since you're interested in performance you have to be on a production server and there's no reason to have logging enabled. One other thing to do is adjust the CPU that every application pool can use. You can even have the server terminate an address pool if it's using to much CPU. You may also set the keep alive limit so you'll have less sessions. I've also excluded the inetsrv directory (located in system32) from antivirus scans. In my occasion there was no need to limit the bandwith for a website since there was no problem with it. You can always speed the server up by improving the overall performance by disabling unused services or excluding application folders from antivirus scans (only when it is absolutely needed, like on MS SQL or Exchange servers).

Multilingual Sites with drupal 7

For those of you who are struggling with the multilingual features of drupal 7 (like myself) and can't get it to work give the following article a try: https://drupal.org/node/1268692 . I managed to get a multilingual site up and running with no problems very easily. You'll have to tweak it a bit but at least you won't struggle to get things working. I didn't install many of the optional modules since they are not essential, like the custom administration toolbar.

Drupal with clean urls on Apache

It's been a long time since I've tried to enable clean urls on my testing server, mainly because I use it for development purposes only. Today I decided to enable it because I'm tired of using the "?q=". First of all I enabled the rewrite module using the command "a2enmod rewrite". The above command enables the rewrite module for apache. You still have to enable the use of the module for your site. This can be done in two ways. You can add the configuration on your site file (/etc/apache2/sites-available) or you can configure apache to override it's settings using the .htaccess file. You may have to use the second method in case you're using a hosting environment and you do not have access to apache's configuration. Your provider is most likely using the override settings of your .htaccess file. After enabling the rewrite module, add the following on the <Directory> section of the configuration file of your site (e.g. /etc/a

Drupal Commerce Kickstart 2 AJAX error

I've been working with drupal for a long time now and I've always used Ubercart when creating stores. Last night I decided to give Drupal Commerce a try. I grabbed a copy of the Commerce Kickstart 2.0 and tried to install it but I got an AJAX error when installing demo store every time. After some searching around I found out that I may had to increase the memory limit for PHP script... I decided to increase the limit from 128MB to 256MB and everything worked like a charm!