My Configuration

Windows 2003 standard SP1

Joomla 1.0.7 http://www.joomla.org (Full package)

PHP 5.1.2 http://www.php.net/get/php-5.1.2-Win32.zip/from/a/mirror

MySQL 4.1.16 http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.16-win32.zip/from/pick

MySQL Administrator 1.1 http://dev.mysql.com/get/Downloads/MySQLAdministrationSuite/mysql-administrator-1.1.7-

win.msi/from/pick

Install IIS

Controll Panel =>Add or Remove Programs =>Add/Remove Windows Components

Click on Application Server then Details

Select Internet Information Services (IIS) then click on Details


Check World Wide Web Service

Click Ok

Click Ok

Click Next

IIS is now being installed and you may need your Windows 2003 installation CD

Install and configure PHP

Create the folder C:\php

Unzip the contents of php-5.1.2-Win32.zip to c:\php

Copy c:\php\php.ini-recommended to c:\php\php.ini

Open de file c:\php\php.ini with notepad

Make the following changes in php.ini

magic_quotes_gpc = On

extension_dir = “C:\php\ext”

Uncomment extension=php_mysql.dll

Or add it if it’s not there

Add => extension=php_mysqli.dll

cgi.force_redirect = 0

doc_root = “c:\inetpub\joomla” (or your document root)

display_errors = On

session.save_path = “c:\php\tmp”

upload_tmp_dir = “c:\php\uploaddir”

Create the folders c:\php\tmp and c:\php\uploaddir


Add the PHP folder to your PATH variable. Right click My Computer => Properties =>Advanced

Click on Envorinment Variables

In the System variables window scroll down and select Path.

Double click Path or click Edit

Add the following to the end of this line ;c:\php (semicolon

then type c:\php)

Click Ok

Add a new System variable by clicking on New.

Name the variable: PHPRC

give the value: c:\php

This will help PHP find your php.ini


Configure IIS for PHP

Open Internet Information Services Manager from Start => Programs => Administrative Tools or Start => Run:

%SystemRoot%\system32\inetsrv\iis.msc

Click on Add a new Web service extension. Give this extension a name for example “PHP”. Click Add, browse to c:\php

and select php5isapi.dll. Check Set extension status to Allowed


Create a new website

You could use the Default Web Site but in this case we will create a new website. Create the folder c:\inetpub\joomla and

extract the contents of Joomla to this folder (c:\inetpub\joomla). We will take care of the permissions later.

Important:

Rename c:\inetpub\joomla\includes\database.php => c:\inetpub\joomla\includes\database.mysql.php

Rename c:\inetpub\joomla\includes\database.mysqli.php => c:\inetpub\joomla\includes\database.php

In IIS Manager right click on Web Sites => New => Web Site

The Web Site creation Wizard comes up. Click Next

Name the new website Joomla and click Next

Give this website a host header. In my case

joomla.domain.com (fake of course). If you have your own

FQDN for your Joomla website you could use that.

Click Next


Browse to or enter the path to your Joomla folder. Check Allow anonymous access to this Web site if it’s not already checked

Click Next

Make sure Read and Run scripts are the only permissions checked

Next, Finish


Richt click on your new website and click Properties. Click on the Home Directory tab and click on Configuration

Click on Add


Browse to c:\php and select php5isapi.dll

Select Limit to and enter the following: GET,POST,HEAD

Uncheck Verify that file exists

Click Ok

Click Ok

Go to the Documents tab

Click Add and type index.php

Click Ok


Select index.php and click a few times on Move Up until index.php is at the top

Click Ok and exit IIS Manager.

If you used a fake domain name as the host header you’ll have to edit your hosts file. Do this on the computer you will be

using to setup Joomla trough the webinstall. Open Command prompt

Type: cd %systemroot%\system32\drivers\etc

Type: notepad hosts

Insert a new line with your fake domain in the format:

<ipaddress of your webserver><tab><domain name>

For example:

192.168.1.19

joomla.domain.com

Click File and Save and exit notepad

On the Command Prompt type: ping joomla.domain.com

See if you get a proper reply

Now, to complete the configuration of PHP and IIS you should restart IIS. If you still have the command prompt open type:

iisreset

IIS will also read in the new settings from your php.ini (Always do a iisreset after you make changes in your php.ini)

Type exit to close your command prompt


Setting your permissions

Right click your joomla folder c:\inetpub\joomla and select properties. Go to the Security tab

You should remove the default inherited permissions. Click on Advanced.

Uncheck Allow Inheritable permissions from the parent to propagate……


Click Copy, Click Ok

Remove all permissions except for Administrators

Click Add and type: IUSR_COMPUTERNAME

Replace COMPUTERNAME with your computername. In my case it’s IUSR_INET

Click Ok


Default permissions for your c:\inetpub\joomla folder should be:

For Administrators (Full Control)

For Internet Guest Account


Page 13

According to Joomla the Following Folders in c:\inetpub\Joomla should be writeable

administrator/backups/

Writeable

administrator/components/ Writeable

administrator/modules/

Writeable

administrator/templates/

Writeable

cache/

Writeable

components/

Writeable

images/

Writeable

images/banners/

Writeable

images/stories/

Writeable

language/

Writeable

mambots/

Writeable

mambots/content/

Writeable

mambots/editors/

Writeable

mambots/editors-xtd/

Writeable

mambots/search/

Writeable

media/

Writeable

modules/

Writeable

templates/

Writeable

Hold down the Control key and select all of the following folders

cache/

components/

images/

language/

mambots/

media/

modules/

templates/

Right click one of these selected folders and click Properties


First, remove the inheritable permissions by clicking on Advanced and uncheck Allow Inheritable permissions from the

parent to propagate……

Click Ok, Click on Copy

Select the Internet Guest Account and check Modify

Click Ok

Open de Administrator folder and select the following folders

administrator/backups/

administrator/components/

administrator/modules/

administrator/templates/

Give the Internet Guest Account Modify rights like you did for the previous folders (Also remove inheritable permissions first.

Using the same method, Give the Internet Guest Account Modify rights to the c:\php\tmp and the c:\php\uploaddir folder

The Permissions to run Joomla are now set up right


Install and configure MySQL

Extract the contents of mysql-4.1.16-win32.zip to a temporary folder and run setup.exe

Click Next

Select Custom and click Next

Change install folder to: c:\mysql

Click Next, Click Install

Select Configure the MySQL server now

Click Finish

Click Next

Select Detailed Configuration


Decide what is best for you here

Click Next

Select Multifunctional Database

Click Next

Decide what is best for you here

Click Next

Click Next

Click Next


Click Next

Create a password for user root

Click Execute

Click Finish

Install and start the MySQL Administrator 1.1

Click Catalogs

Rightclick and Create New Schema

Name your new database joomla and click Ok

You could also create a user under User Administration and

grant it rights to the joomla database, that’s up to you


Joomla Web installer

You have now installed everything Joomla needs to run under IIS. Now it’s time to configure Joomla through the web

installer. Browse to your new joomla website, in my case http://joomla.domain.com

You should see the following webpage

This page is somewhat confusing because even though a folder or file is not writable by the Internet Guest account it still

says writable, so double check your permissions if you get any permissions errors later on.

Now, copy c:\inetpub\joomla\configuration.php-dist to configuration.php

Right click c:\inetpub\joomla\configuration.php => Properties => Security tab

Select Internet Guest account

check Modify

Click Ok


Open URL: http://yourdomain/installation/install1.php

(my url: http://joomla.domain.com/installation/install1.php

Fill in your details and click Next

Enter the name for your website, that’s the same name you used for host header and to open the joomla web installer

Click Next


Check that the path and URL are ok, fill in an e-mail address and create a password for the admin user to login to your

website later. Click Next

Congratulations! Joomla is installed

Remove or rename the installation folder c:\inetpub\joomla\installation

Right click configuration.php => Properties => Security tab

Select Internet Guest Account

Remove Modify and Write

If you need to make any changes under Global configuration in the Joomla backend later you will have to re-assign write

permissions to c:\inetpub\joomla\configuration.php


Click on View Site to view your newly created Joomla website or Click Administration to access the Backend

Joomla Frontend

Joomla backend


Logged in to the Joomla Backend

Author: Hugo A. Westerlow

Leave a Reply