Archive for November, 2010

1. Choosing which package to download.

Packages can be downloaded from the following page:


2. Installing the Package

Figure 1 -Selecting Standard Installation
Figure 1 -Selecting Standard Installation

Despite what you might expect, the “Advanced” installation offers little over the “Standard” so it’s best to simply go for standard. Don’t worry about the “Mail Configuration” unless you know what you’re doing – just click “Next”.

Figure 2 -Selecting IIS6 Installation
Figure 2 -Selecting IIS6 Installation

Obviously, if you’re installing onto Windows Server 2003, you need to change the selection to “Microsoft IIS 6 or higher” and click “Next”.

A small box will appear to tell you that “IIS has been configured”. Press “OK”.

Figure 3 - Windows Script Host (ignore it)
Figure 3 – Windows Script Host (ignore it)

Closely followed by Figure 3 above (just ignore it and click “OK”)

Figure 4 -Registering CScript (Click "No")
Figure 4 -Registering CScript (Click “No”)

As VBScript has nothing to do with PHP just click “No” when Figure 4 (above) appears.

A couple of OK’s later, PHP is installed. Well, not quite.

3. Configuring Internet Information Services (IIS) Manager:

Figure 5 - Web Service Extensions
Figure 5 – Web Service Extensions

If you are using the new style Start menu, you can reach the Internet Information Services console by clicking “Start”, “Administrative Tools” and selecting “Internet Information Services (IIS) Manager” from the list.

If you are using the “Classic” style Start Menu, you can reach the console by clicking “Start”, “Programs”, “Administrative Tools” and select “Internet Information Services (IIS) Manager” from the list.

We need to configure “Web Service Extensions” so right-click on “Web Service Extensions” in the menu on the left. Then select “Add a new Web service extension…” from the list (as shown in Figure 5 above)

Figure 6 - Creating a PHP web service extention
Figure 6 – Creating a PHP web service extension

Complete the dialogue box as shown in Figure 6 (above). Make sure you check the “Set extension status to Allowed” checkbox. The “Extension name:” is only a reference and hence can be anything – PHP makes it easy to identify in future though.

Figure 7 - The completed Web Service Extensions window
Figure 7 – The completed Web Service Extensions window

The completed “Web Service Extensions” window should now look like figure 7

4. Allowing index.php files to run as a directory default:

Figure 8 - Configuring your default PHP content page
Figure 8 – Configuring your default PHP content page

In “Internet Information Services (IIS) Manager”, left-click on “Web Sites” in the menu on the left and select “Properties” (as shown in Figure 8 above). Next, select the “Documents” tab and click on “Add”.

Figure 9 - Configuring your default PHP content page
Figure 9 – Configuring your default PHP content page

To ensure that index.php documents open as a default they should be added as a “Content Page” as shown in Figure 9 (above). You can, of course, change the importance of PHP over ASP and HTML documents to suit your site based on which document type should take preference. This can be achieved by moving “index.php” up or down the list using the “Move up” and “Move Down” buttons.

5.The Final Step – Moving the php.ini file:

For some reason, the Installer copies it’s php.ini file into the “Windows” directory under the profile of the logged-on user rather than the root directory C: (where it should be).

  • Copy “php.ini” from C:\Documents and Settings\<username>\php.ini to C:\Windows

If you can’t find “php.ini” simply open “My Computer”, right-click on your C: drive and select “Search” from the list. Then type php.ini into the “All or part of the file name” box and press “Search”. The file that appears in the right-hand side of the window should be copied into C:\Windows.

6. Some Exceptional steps to configuration.

Open both the php.ini file you have now and uncomment cgi.force_redirect in php.ini and set it to 0 – zero.

Find SMTP = localhost and make sure it is uncommented. If your mail server is somewhere else you may specify it here. Also set this line just below the above: sendmail_from = someone@yourhost.com

Change session.save_path as “session.save_path=C:\php\sessions” and make the directory C:\php\sessions

Set the line “extension_dir” as “extension_dir = “C:\PHP\ext”.

Uncomment all of the following items.

Now copy all of those DLL files in C:\php\ext to C:\windows\system32 or add “C:\PHP;” to your Windows path.
To add php to your Windows path:

  1. Right Click on My Computer and choose properties > Advanced Tab > Click “Environment Variables”.
  2. Now add “C:\PHP;” to the very beginning.
  3. Now go to start > run > type: regedit and click ok
  4. Add HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\php to the registry. If you change your windows path instead of copying the dll files then you will need to restart your computer before php will work. Updating php is easier when you add it to your Windows path.

Figure 9 - Creating the required registry keys and values
Figure 9 – Creating the required registry keys and values.

Open the Registry Editor by clicking “Start”, “Run”, typing “regedit” and pressing “OK”. Perform the following procedure (illustrated by Fig. 9 above):

  • Locate and expand “HKEY_LOCAL_MACHINE”, right-click on “Software” and select “New”, “Key” and type “FASTCGI”.
  • Right-click on your new “FASTCGI” key and select “New”, “Key” and type “.php”.
  • Right-click on “.php”, select “New”, “String Value” and type “AppPath”. Double-click on this new value and type “c:\PHP\php.exe”.
  • Right-click on “.php”, select “New”, “String Value” and type “BindPath”. Double-click on this new value and type “php-fcgi”.

You can now close the Registry editior.

  • Go to C:\Inetpub\wwwroot and delete everything in there except for aspnet_client. Now make a new text file and name it phpinfo.php. Open it up with your text editor ant put this in it: <?php phpinfo(); ?>.
  • Open a web Browser and go to

Read Full Post »

Login to the server,

1) Stop the SmarterMail Service
2) Open Windows Explorer (My Computer)
3) Go to C:\Program Files\SmarterTools\SmarterMail (or wherever one has installed SmarterMail)
4) Open the Service subdirectory
5) Make a backup copy of the file MailConfig.xml
6) Open MailConfig.xml in Notepad to edit the file.
7) Find the below mentioned code:

<!– ** System Admin *************************** –>
<!– ** To reset admin password, delete these items ** –>
<!– ** and then restart the SmarterMail Service. ** –>
<!– ***************************************** –>
<sysAdminUserName> … </sysAdminUserName>
<sysAdminPassword> … </sysAdminPassword>
<!– ***************************************** –>

8) Delete those lines and save the file.
9) Start the SmarterMail Service.

One should now be able to log in to SmarterMail by using the following:

Email: admin
Password: admin


Instructions for how to change your SmarterMail admin password.

How to change admin password in SmarterMail

If you ever need to reset your SmarterMail password you may follow these 4 simple steps. Please note that you will need to know the existing password.

Open SmarterMail and log in as admin.

Click on the button for settings.

On the left pane clink on General Settings in the list. Now in the right pane you can type in the current password and then your new password.

Click the Save button.

Read Full Post »

Windows Server 2003

If you have Windows Server 2003, there are two methods to determine whether you are running a 32-bit or a 64-bit version. If one does not work, try the other.

Method 1: View System Properties in Control Panel
  1. Click Start, and then click Run.
  2. Type sysdm.cpl, and then click OK.
  3. Click the General tab. The operating system is displayed as follows:
    • For a 64-bit version operating system: Windows Server 2003 Enterprise x64 Edition appears under System.
    • For a 32-bit version operating system: Windows Server 2003 Enterprise Edition appears under System.
Method 2: View System Information window
  1. Click Start, and then click Run
  2. Type winmsd.exe, and then click OK.
  3. When System Summary is selected in the navigation pane, locate Processor under Item in the details pane. Note the value.
    • If the value that corresponds to Processor starts with x86, the computer is running a 32-bit version of Windows.
    • If the value that corresponds to Processor starts with EM64T or ia64, the computer is running a 64-bit version of Windows.

Read Full Post »

The following steps to replicate in Windows 2003 IIS,

  1. Open Internet Information Services (IIS)
  2. Expand the domain and locate the directory which should be viewed securely
  3. Right-click this folder and select Properties. Click on the Directory Security tab and under the section entitled Secure Communications, click the Edit button

  4. In the Secure Communications window, check the checkbox for Require Secure Channel. Click OK to close this window. Click OK to close the previous window and now when going to the site, you should be asked to append https:// to the URL

Give a try ….  🙂

Read Full Post »

Applications, typically files with a .exe extension, can only be run when the Server is logged in. A service can be run on a server, without it being logged in. Windows provides the functionality to configure an application to run as a service.

  1. Login to the server through Remote Desktop Connection.
  2. Download Microsoft’s Resource Kit from http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en This Resource Kit contains instsrv.exe and srvany.exe.
  3. Run the rktools.exe file from the location you selected in step 1. Follow the installation instructions.
  4. Click Start and select Run.
  5. Type cmd and click OK.
  6. Within the prompt type instsrv MyService srvany.exe where MyService is the name of the service. The service name can be whatever you want, but should be descriptive. You may need to change to the directory that contains the srvany.exe file. Use Search to find it.
  7. Press Enter.
  8. When the command completes, click Start and select Run.
  9. Type regedit and click OK to open the Registry.
  10. Expand HKEY_LOCAL_MACHINE, expand SYSTEM, expand CurrentControlSet, expand Services.
  11. Find the name of the service you created in the list and select it so that it is highlighted.
  12. From the Edit menu, select New and select Key.
  13. Name the key Parameters.
  14. Select the Parameters key so that it is highlighted.
  15. From the Edit menu, select New, select String Value.
  16. Name the string value Application.
  17. Select the Applications string so that it is highlighted.
  18. From the Edit menu, select Modify.
  19. Enter the full path to the application executable, including the drive letter and the application extension.
  20. Close the Registry.
  21. Click Start, Programs, Administrative Tools and select Services.
  22. Find the service you created and click Start.
  23. 🙂

Read Full Post »

CreateRecordset error ‘8004181d’  There is no catalog.

/Search/query.asp, line 215

Try this:

1. Go to the Start > Programs > Administrative Tools >  Computer Management
2. Click on Services and Applications, then select Indexing Service. If there is no Indexing Service, you may need to install this Component.
3. Right click the Indexing Service, then select New > Catalog.
4. Type in the Catalog Name (that will using later in your script), and the location you need to indexing.

Read Full Post »