Installing Mantis on Windows with IIS/PHP/MySQL

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
BenMcFarlin
Posts: 2
Joined: 25 Feb 2008, 21:39

Installing Mantis on Windows with IIS/PHP/MySQL

Post by BenMcFarlin »

Here are the steps to instal Mantis 1.1.1 on Windows Vista with IIS7, PHP 5.2.5 and MySQL 5.0.45 Community.

1. Download the Mantis http://sourceforge.net/project/showfile ... _id=166159 and save to C:\Temp
2. Right click on C:\Temp\InstantMantis-1.1.1.zip and choose Extract All (creates the folder InstantMantis-1.1.1).
3. Copy the folder C:\Temp\InstantMantis-1.1.1\root\mantis to C:\Inetpub\wwwroot\mantis (assuming the default location for IIS web root).
4. Delete the file C:\Inetpub\wwwroot\mantis\config_inc.php.
5. Browse to http://localhost/mantis (you will be redirected to http://localhost/mantis/admin/install.php)
6. Enter the database information and click submit. (the database will be created and populdated with tables)
7. Browse to http://localhost/mantis, login and start using the system.
8. Delete the file C:\Temp\InstantMantis-1.1.1.zip and folder C:\Temp\InstantMantis-1.1.1.

If you do not yet have PHP and MySQL installed properly on Windows Vista, here are a couple of links:

Install PHP on Windows Vista
http://techknowsis.beesquared.biz/2007/ ... r2003.aspx

Install MySQL on Windows Vista
http://www.oreillynet.com/onlamp/blog/2 ... ql_on.html

One thing to note is that the C:\Inetpub\wwwroot\mantis\config_inc.php is the key to a fresh install. If the file exists (and it does by default) the installer will try to perform and upgrade and fail miserably because the database has not yet been created. If you ever want to reinstall mantis just delete that file and browse to http://localhost/mantis.

Ben McFarlin
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by vboctor »

You seem to be downloading the InstantMantis distribution instead of the standard one, while from the steps that you have list, it seems that you want the standard one. The standard one is a much smaller download, it doesn't have config_inc.php by default, and it doesn't have Apache, MySQL and PHP bundled with it. InstantMantis is designed to allow users to download, extract and run without doing any installation steps for Apache, MySQL, PHP or Mantis.
Migrate your MantisBT to the MantisHub Cloud
ravi.taminidi
Posts: 1
Joined: 07 Mar 2008, 15:01

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by ravi.taminidi »

Point 5: http://localhost/mantis this is not redirecting automatically

and also i am getting the below error which i load the install.php page

Checking PHP support for database type BAD
database is not supported by PHP. Check that it has been compiled into your server.

--Ravi
BenMcFarlin
Posts: 2
Joined: 25 Feb 2008, 21:39

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by BenMcFarlin »

Ravi, what version of MySQL are you running? Be sure you have the latest version and try the install again.

Ben McFarlin
Image
bhavtosh
Posts: 2
Joined: 05 Sep 2009, 18:07

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by bhavtosh »

u need to download mysql connector for php dear
bhavtosh
Posts: 2
Joined: 05 Sep 2009, 18:07

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by bhavtosh »

download mysql connector for php from http://mysql.biz.net.id/downloads/conne ... index.html
CDPH_user
Posts: 2
Joined: 05 Oct 2009, 22:09

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by CDPH_user »

I have MySQL and PHP 5.2.9 installed and running on a windows XP manchine w/ IIS 5.1

whenever I try to go to http://localhost/mantis/ nothing happens.
I renamed my mantis directory to mantis1 and tried again.

I was redirected to http://localhost/mantis1/admin/install.php

However, when I input the database login info and click install, PHP keeps crashing. I get IIS related error messages and my browser is forced to close.

Any suggestion?
CDPH_user
Posts: 2
Joined: 05 Oct 2009, 22:09

Re: Installing Mantis on Windows with IIS/PHP/MySQL

Post by CDPH_user »

I am unable to access http://computer/mantis directory; I have to use a somenthing other than, "mantis," i.e. http://computer/mantis2

After I was redicted to http://computer/mantis2/admin/install.php, I inputed the database login info and click, "Install..."

The installation process seemed to have started, but then I received an IIS error message (shown below) and my browser window closed abruptly.


Internet Information Services has encountered a problem and needs to close. We are sorry for the inconvenience.

szAppName : inetinfo.exe szAppVer : 5.1.2600.5512
szModName : php5isapi.dll szModVer : 5.2.9.9 offset : 00001d1f

Any suggestions on what could be wrong with my system?
Post Reply