Mick Genie's Blog

Mick Genie Technical Blog

Archive for the 'Microsoft Windows' Category

How to block a country range IPs?

Many blogger was wonder on how to block the IPs from a country as they might suffer from unwanted attack such as compromised from their site.

Mick Genie will suggest you a site to automatically generate the script from a country IPs.
http://www.blockacountry.com/

Before you look into the given URL, please understand that you shall have mod_rewrite enabled from your server either in Windows IIS, Apache or Linux Apache. It is because the given script is running with .htaccess file, you simply edit your .htaccess file from your site to have this rules applied.

Please use the site with your own risk and use as references only as Mick Genie do not have any share with that website :P .

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, Technology and have Comment (1)

IIS 7.0 Administration Pack

I have not blog for a month :P . It was a very busy month for January(lazy for me, actually).

Today, got to share something with our friend again which known as IIS 7.0.Administration Pack and I will highlight the FastCGI Setting for IIS 7.0.

Normally, when you install PHP FastCGI with IIS 7.0, you will not have the UI(User Interface) setting from your IIS 7.0, but you may install IIS 7.0 Administration Pack to allow you IIS to show the setting from IIS.

Refer to the URL as below and choose the Administration pack which suite to your system.
http://www.iis.net/expand/AdministrationPack

Install it, and you are done.

Look to your IIS and select on the machine name, you shall get the FastCGI setting overthere.

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, PHP and have No Comments

Enabling Permalink from WordPress with IIS7.x

This article is applicable for WordPress user who used IIS7.x as their web services and not able to work correctly with the permalink.

1. Log into your WordPress. Select on Setting and click on Permalink Settings.

2. Select any of the Common Setting or Custom Structure.
3. Click Update Permalink Structure button.
4. Now, you will see your blog get 404 error when click on any post or pages. No worry, refer to the following step to get this fix.
5. Log into your DotNetPanel file manager or FTP, modify the web.config file from your root folder (probably wwwroot folder) and add the following code to the web.config file.

Read more…

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, Microsoft Windows and have No Comments

URL Rewrite with IIS 7.x

URL Rewrite help web administrator to create powerful rules to ease user to remember their link. IIS do come out a powerful URL Rewrite module such as Apache Rewrite rules to allow user create Rewrite rules/Permalink/Clean URL to show pretty and easy URL for their site.

Today, I will show you how to install URL Rewrite with IIS 7.x only but not going to touch how it’s work.

To install URL Rewrite Module, please make sure you have IIS 7.x install and you should come with IIS 6 compatible module installed.

Download Here: http://www.iis.net/expand/URLRewrite

The installation will be as easier like drinking a cup of water as you will need to follow the instruction from the installation only, hohoho.

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS and have No Comments

SiteShell

IIS(Microsoft) have give web hosting user a big help as they have come out a new application named SiteShell. SiteShell help to protect Microsoft Windows server to reduce the attackeds from exploiting the weakness and vulnerabilities of a websites.

SiteShell is a Software WAF (Web Application Firewall) which effectively protects the website and its data from attacks exploiting the weakness and vulnerabilities of websites (e.g. SQL injection or cross site scripting). SiteShell offers various special features including “online blacklist update” and “intuitive user interface”.

Below is the feature listed by IIS dot Net for SiteShell.

Read more…

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, Microsoft Windows and have No Comments

Microsoft Office 2010 Beta Available

Microsoft New Launch Product -> Microsoft Office 2010.

To be more precise, M$ has made available for the Beta version of Office for public and they most important of this Betas are,

  • Expiration: Office 2010 beta will expire on October 31st, 2010. It will become non-functional at this point
  • Multiple Versions: Previous Office versions can be upgraded to Office 2010. It is also possible to select customize during installation to install Office 2010 in a separate location.
  • Hardware Requirements: Microsoft Office 2010 has the same hardware requirements as Office 2007 (Windows XP SP3, Windows Vista or Windows 7, 500 Mhz or higher, 256 Megabytes of computer memory or higher, hard disk 1.5 Gigabyte
  • Languages: English, Chinese Simplified, German, French, Japanese, Russian, Spanish

Microsoft is offering two Office 2010 editions for download: Microsoft Office Professional 2010 and Microsoft Office Home and Business 2010. The main difference between those two versions is the number of applications that are made available to the user:

  • Office Home and Business 2010 beta – Includes: Word, Excel, PowerPoint, OneNote, Outlook, and Office Web Apps
  • Office Professional 2010 beta – Includes: Word, Excel, PowerPoint, OneNote, Outlook, Access, Publisher and Office Web Apps

Original URL:
http://us1.office2010beta.microsoft.com/default.aspx?culture=en-US

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in Microsoft Windows and have No Comments

Faster PHP in IIS

Did you know Microsoft and PHP have came out faster PHP with IIS named wincache(Windows Cache Extension) last week?

This means that you will no longer see PHP process keep used up your memory if you are using IIS Web Services anymore.

How to get wincache? It is very easy, make sure that you have PHP5.2 or PHP5.3 installed with your machine. Even you may install Microsoft Web Platform Installer from your Windows Server 2003 or Windows Server 2008 machine to install it.

For more information, you may refer to the URL below for more detail.

WinCache Extension 1.0 for PHP – Release to Web

You might ask what is the advantage with WinCache extension? IIS (Internet Information System) have listed Wincache could increase the PHP performance on Windows by caching bytecode in memory, reduce file system I/O used in memory, etc.

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, PHP and have No Comments

Remove Grub from your Box

I just faced this problem a moment ago, I have removed my Linux Operating System(Ubuntu) from my partition where I applied dual boot Operating System previously.

Somehow, I were removed the partition through disk management from Windows Vista and the error as below found once rebooted the box.

Grub Error,

Error 17.

If you get the same error and could like to removed Grub. Use the step as below.

Read more…

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in Microsoft Windows and have No Comments

PHP with MSSQL not working

Sometimes you might wonder why you are not able to connect from PHP script with your MSSQL database as you have enabled php_mssql.dll extension from your php.ini.

Below are the step to resolve this issue;

But before we given the solution, you might get the following error message, however the error might just unable to connect to the MSSQL database without any further detail.

Cause:
Assume you were using IIS6/7 with PHP 5.2.x(Microsoft Windows Server 2003/2008),  you might get such issue if you are install the PHP with source installation.

Error:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: localhost:1433 in C:\Domains\wwwroot\php_mssql.php on line 5
Couldn’t connect to SQL Server on localhost:1433

Solution:
1. Download file ntwdblib.dll from URL of http://www.dlldll.com/ntwdblib.dll_download.html.
2. Go to the server hosted for your PHP script.
3. Go to PHP directory, assume you are using C:\Program Files\PHP5.2.x\, backup original ntwdblib.dll.
4. Replace the file as downloaded from Step 1.

Test again, and your problem should resolved.

You may refer to the URL as below for more information on the PHP_MSSQL connect page available from PHP.Net
http://my.php.net/function.mssql-connect

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in IIS, Microsoft Windows and have No Comments

Windows Live Messenger Apps to your blog

Nowaday, you may add Windows Live Messenger Application to your blog in order to allow user to contact you directly when you were online.

How to add this to your blog? Go to the following URL and create the HTML, add to your blog.

http://settings.messenger.live.com/Applications/WebSettings.aspx

Images 1:
live1

Image 2:
live2

Image 3:
live3

  • Twitter
  • WordPress
  • Blogger Post
  • Delicious
  • Facebook
  • Share/Bookmark
posted by Mick Genie in Microsoft Windows and have No Comments
Get Adobe Flash playerPlugin by wpburn.com wordpress themes