Mantis Installation

March 18, 2008 by qashare

Installation Package Include
1. apache_2.2.2-win32-x86-no_ssl.msi
2. php-5.2.5-Win32.zip
3. mantis-1.1.0
4. Mysql Server 5.0.18 version
5. Mysql Client(Navicat)

Steps:
1. Install Mysql Server 5.0.18.
a. Install the Mysql.
b. In “MySQL.com Sign-Up” step, click the “Skip Sign-Up” radio button and go to “Next.”

c. Click next keeping the combo “Configure the MySQL Server” checked in. Click finish.
Configuring Server:
a. Choose Detailed Configuration
b. Keep Clicking Next until Window Options arrives. Check in “Include Bin Directory in Windows PATH”.
c. Set root password. Check in Enable root access from remote machine.
d. Restart the computer.”
2. Install Mysql Client (Navicat).
3. Create a User named ‘mantisdbuser’ and a database ‘bugtracker’ and the user needs to have read/write access to the Mantis database.
4. Install apache_2.2.2-win32-x86-no_ssl.msi.
a. During Apache HTTP Server installation set Network Domain = localhost (or the domain the computer belongs); Server Name = localhost (should use the name
of the computer); Administrator Email = admin@localhost (or appropriate).
b. Before going to the next level check in the radio button “only for the Current User, on Port 8080, when started Manually”. Later on we will install Apache as a Service.”
5. PHP 5.2.5:
a. Create a directory. C:\PHP and extract the zip content into it.
b. Copy the php.ini-dist to the same directory and rename it as php.ini.

Modification in the file PHP\php.ini:
a. Find extension_dir variable and replace the value to “C:\PHP\ext\” (extension_dir = “C:\PHP\ext\”)
b. Find extension=php_mysql.dll an uncomment it.”
6. Now modify the file located at …\Apache2.2\conf\httpd.conf

a. To add php-module, add this line (preferably in the section where other modules are added): LoadModule php5_module “c:/php/php5apache2_2.dll”
b. To define php initial directory add the line : PHPIniDir “c:/php”
c. To associate php file type to browser add the line: AddType application/x-httpd-php .php
d. DirectoryIndex sets the file that Apache will serve if a directory is requested.Set DirectoryIndex index.php”
7. Installing New Apache Service:
a. On command line type cd C:\Program Files\Apache Software Foundation\Apache2.2\bin\ . Now execute command httpd.exe –k install –n Apache2. It will
create a service named Apache2. Unblock the port.
b. Start the service from the taskbar.”
8. Create a file in … \Apache2.2\htdocs directory with .php extension such as phpinfo.php. Paste the following code
<?php
echo phpinfo();
?>”
9. Go to http://localhost:8080/phpinfo.php . A page like below will appear.

10. Now rename ‘mantis-1.1.0′ folder as ‘mantis’. Copy whole mantis project under C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ directory.
11. Restart Apache2 Service.
12. In browser type http://localhost:8080/mantis/admin/install.php

13. Provide database user name,password,root,database root password and then press Install/Upgrade Database button.
14.On successful completion ‘GOOD’ term will appear in each step.
15. now you can login to mantis. Initial userid:’administrator’ password=’root’

PHP deployment in IIS6.0

March 18, 2008 by qashare

1. Extract php zip folder to C:\php.

2. Copy php.ini-recommended to a directory that PHP is able to find and rename it to php.ini.

3. Edit php.ini and Set doc_root = c:\inetpub\wwwroot // for IIS/PWS [optional]

4. For IS, Set the browscap configuration setting to c:\windows\system32\inetsrv\browscap.ini on XP.
5. Set Environment variable:

* Click on the ‘Environment Variables’ button from MY Computer property.
* Look into the ‘System variables’ panel
* Find the ‘Path’ entry (may need to scroll to find it)
* Double click on the ‘Path’ entry
* Enter PHP directory at the end, including ‘;’ before (e.g.
;C:\php)
* Click on ‘New’ and enter ‘PHPRC’ as the variable name and the
directory where php.ini is located as the variable value (e.g.
C:\php)
* Press OK and restart your computer

6. Set extension_dir = “c:\php\ext”

7. To enable IIS 6.0 to run 32-bit applications on 64-bit Windows

1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.
2. Type the following command:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
3. Press ENTER.

8. Need to start the Microsoft Management Console (may appear as ‘Internet Services Manager’, either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will
most probably appear as ‘Default Web Server’), and select ‘Properties’.

To use the ISAPI module, do the following:

* If you don’t want to perform HTTP Authentication using PHP, you can
(and should) skip this step. Under ISAPI Filters, add a new ISAPI
filter. Use PHP as the filter name, and supply a path to the
php4isapi.dll / php5isapi.dll.
* Under ‘Home Directory’, ‘Virtual Directory’, or ‘Directory’, do the
following:
* Change the Execute Permissions to ‘Scripts only’
* Click on the ‘Configuration’ button, and choose the Application
Mappings tab. Click Add and set the Executable path to the
appropriate ISAPI DLL. An example PHP 5 value is:
C:\php\php5isapi.dll Supply .php as the extension. Leave ‘Method
exclusions’ blank, and check the ‘Script engine’ checkbox. Now,
click OK a few times.
* Stop IIS completely (NET STOP iisadmin)
* Start IIS again (NET START w3svc)

9. With IIS 6 (2003 Server), open up the IIS Manager, go to Web Service Extensions, choose “Add a new Web service extension”, enter in a name such as PHP, choose the Add button and for the value browse to the ISAPI file (p4isapi.dll or php5isapi.dll) and then check “Set extension status to Allowed” and click OK.

Hello world!

March 10, 2008 by qashare

Welcome to my blog…Step by step i will share my interest and learnings here.