Mick Genie's Blog

Mick Genie Technical Blog

Archive for the 'IIS' 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

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

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

Cannot run the FrontPage Server Extensions on this page

By using Microsoft Frontpage Extension, you might easily get this error if you not manage well for your folder permission.

Cannot run the FrontPage Server Extensions on this page: “http://www.domain.com/form.html”

Error Message:
Cannot run the FrontPage Server Extensions on this page:”http://www.domain.com/form/html”

Solution:
1. Go to the web server for this domain name.
2. Open IIS 6.0 from Start -> Control Panel -> Administrative Tools -> Internet Information Services(IIS) Manager or run a short cut named “inetmgr”.
3. Go to the virtual directory’s properties.
4. Look for “Server Extensions 2002″ tab and select on the “Setting” button.
5. An Internet Browser will prompt out and asking for your username and password, try to login with your user account.
6. Insert all the related information such as your host name, webmaster email, etc and submit it.
7. Go back to IIS Manager and right click on the virtual directory, go to All Task and select on Check Server Extension 2002.
8. Click all the checkbox in repair field and submit it.
9. Go back to IIS Manager and right click on the virtual directory, go to All Task and select on Recalculate Server Extension 2002.
10. Well done, you did it. Try to check your form as it is working now.

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

How to add a domain name manually from IIS

How to add a domain name manually from IIS

I assume you are trying to add a domain name manually from your Windows 2003 server IIS and all connections were already setup properly. All your clients can browse to your domain / IP but they were prompted for user name and password due to the permission was not setup properly.
Please follow steps below:
==================================
A) Create a web anonymous user
==================================
1. Log into Server
2. Right click on “My Computer” > “Manage”
3. Expand the computer management console:
Local > Local Users and Groups > Users
4. Right Click on “User” > “New User …”
5. Enter a user name; example: mickgenie.com_web
6. Enter a password for micgenie.com_web
7. Click “Create”
8. Close this console

==================================
B) Assign Folder Permissions
==================================

1. Right click on your web folders > “Properties”
exp: C”\domains\mickgenie.com\wwwroot
2. Click on “security tab”
3. Click on “Add”
4. Select the “mickgenie.com_web” user you have just created and “Add”, click “ok”
Read more…

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