Your SlideShare is downloading. ×
Mantis Installation for Windows Box
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Mantis Installation for Windows Box

10,347
views

Published on

This Presentation Contains the Detail Description of Mantis Installation in Windows XP Machine.

This Presentation Contains the Detail Description of Mantis Installation in Windows XP Machine.

Published in: Technology

3 Comments
1 Like
Statistics
Notes
  • I tried to install it...
    but with APACHE 2.2.11 and PHP 5.2.8 I have the following error:
    [client 127.0.0.1] client denied by server configuration: C:/php/php-cgi.exe

    So I modified the httpd.conf by removing the 'Deny from all' from the first node...

    Could you please add it to your presentation?
    Thanks...
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • This is really nice Presentation.... I got help from this,,, ThanX jayanta for ur contribution
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • This Presentation can be used as a guide Line For PHP , MYSQL installation and as well as Mantis Installation.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
10,347
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
169
Comments
3
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Mantis 1.1.5 Installation On Window Box Introduction: Mantis is a Bug Tracker Open source Tool which can be used to Store the Bug Centralized manner. Pre-Requisite
    • Apache Web Server Version(2.0).
    • Download Apache Web Server From http://httpd.apache.org/download.cgi
    • Go to Stable Version of Apache .
    • Select Win32 Binary without crypto (no mod_ssl) (MSI Installer) .
    • apache_2.0.63-win32-x86-no_ssl.msi [ PGP ] [ MD5 ] .
    • Click on the above Link to Download Apache Server.
    • Wait for 3 to 4 second then it will install Apache to Your Local Machine
  • 2. Apache Server Configuration
    • Double Click on Apache Exe to start Installation.
    • Click on this Link for Installation Page( http://www.dslwebserver.com/main/fr_index.html?/main/sbs-Installing-Apache-2035-for-Windows.html )
    • Steps are Mentioned Below.
    4. Click Next to Proceed.
  • 3. 4. Next you'll see the License Agreement.  Check the "I accept" radio button and click on "Next". 5. Another screen appears with more information about what Apache HTTP server is.  Click "Next".
  • 4. 6. Another screen appears with more information about what Apache HTTP server is.  Click "Next". 7. Click on Next Button
  • 5. 7. The configuration now begins. 8. Network Domain will be “Local Host”. 9. ServerName will be “Local Host” 10. Administrators email Id can be as: [email_address] 11. Click Next to Proceed.
  • 6. 11. Here we choose whether to install as Typical or Custom.  Typical sounds good to me.  It should also be fine more most people.  Click "Next". 12.Select Option type as “Typical” . 13. Click on the Next Tab.
  • 7. 14. Now we choose where we want to install Apache.  You can change this by clicking on the "Change" button and selecting whichever directory you like.  Here we'll keep it default.  Click "Next". 15. But it is advisory to keep the Path as Default Path=“C:Apache2” 16. To Begin Installation click Install Tab.
  • 8. 17.Wait a while for Completing Installation 18. See the Finishing Tab.
  • 9. 19.The Final step will be as Below 20. Click on the Finish Tab to Complete Installation.
  • 10. 21. Wow, we're done.   You see that little new icon in your system tray?  That shows you the status of Apache.  22. Let's see if Apache works now.  Fire up your web browser and type in "http://localhost" or "http://127.0.0.1" and see if you get the default Apache page.  You should see this.
  • 11. MYSQL INSTALLATION
    • Once the Apache 2.0 has been configured we can download MYSQL and Configured for installation of Mantis.
    • The steps of MYSQl Installation as Follows.
    1. MySQL Download MySQL http://dev.mysql.com/downloads/mysql/
  • 12. 2. Install Process as Mentioned Below
  • 13. 3.Step 3 installation 4. Next Step will be as Follows. Press Next to Go to Next Page
  • 14.  
  • 15.  
  • 16.  
  • 17. NB: Click OK to Proceed Installation.
  • 18. Click on Install Tab To Proceed Installation.
  • 19. Wait For a Few Seconds To complete the Installation.
  • 20. Configure your Server as Mentioned Above
  • 21. Click On Finish Tab To complete Installation.
  • 22.  
  • 23.  
  • 24.  
  • 25.  
  • 26.  
  • 27.  
  • 28.  
  • 29.  
  • 30.  
  • 31.  
  • 32. NB: Click on finish Tab to compete Installation.
  • 33. Now Create DataBase with Full Administrator Privelege. 1. Just type in place database name bugs it will be bugtracker.
  • 34. PHP 5.2.6 Version Installation.
    • During Download the PHP will php5.2.6
    • Rename it to php
    • Store it into c:php
    • After finished with the extraction process, now you just need to go to your Apache installation path, and then open httpd.conf which is located under the conf directory using your favorite text editor.
  • 35. INSTALL PHP FOR WINDOWS STEP 1 * In Windows Explorer, go to c:downloadsphp5 and unzip the file php-5.0.2-Win32.zip into the directory called C:php * Now move (don't just copy) the file c:phpphp5ts.dll to c:windowsphp5ts.dll (or if you don't have a c:windows directory, move it to c:winnt ). * PHP5 is now installed on your computer, but you still need to configure it to work with Apache, which we will do in the next step.
  • 36. STEP 2 Configure PHP5 to Work with Apache We now need to tell the Apache web server what to do when it encounters a .php file. Some changes will be made to the Apache configuration file and some will be made to the PHP configuration file. Do This: 1. With the Windows Explorer, create the folder c:webs est . This will be our test website 2. Rename the c:phpphp.ini-dist to c:phpphp.ini , then make the following changes in the c:phpphp.ini file: (1) doc_root = "c:webs est" and (2) extension_dir = "C:phpext" . Note that you should use BACKSLASHES in the php.ini file.
  • 37. Step 3: In the file C:Apache2confhttpd.conf , change the DocumentRoot entry to: DocumentRoot &quot;C:/webs/test&quot; . Note that you should use FORWARD SLASHES in the http.conf file. Step 4: Also in the file C:Apache2confhttpd.conf , change the Directory entry to: <Directory &quot;C:/webs/test&quot;> . Note that you should use FORWARD SLASHES in the http.conf file.
  • 38. STEP 5 Again in the C:Apache2confhttpd.conf file, add the following lines: hint: to find this position fast, search for &quot;media types&quot; you can copy this text ScriptAlias /php/ &quot;c:/php/&quot; AddType application/x-httpd-php .php .php5 Action application/x-httpd-php &quot;/php/php-cgi.exe&quot; SetEnv PHPRC &quot;C:/php&quot;
  • 39. Step 6 Lastly, we need to make one last change to this C:Apache2confhttpd.conf file. Find the &quot;DirectoryIndex&quot; entry and add &quot;index.php&quot; to the end of the line as shown in this screenshot. you can copy this text: DirectoryIndex index.html index.html.var index.php
  • 40. STEP 7 In order for the changes to take effect, you need to restart Apache. To do this, click the Apache symbol in the lower right-hand corner of your task bar. In the little menu that pops up there, click Apache 2 and then Restart . STEP 8 After about 10 seconds, Apache will have restarted, PHP will be configured. Go on to the next step to test your configuration.
  • 41. Test PHP You have now installed Apache and PHP and have configured PHP. We will now test your configuration of PHP to make sure Apache can correctly serve PHP5 files. Do This: 1. Create the file c:webs estindex.php with the following line 2. Create the file c:webs estindex.php with the following line you can copy this text: you can copy this text: you can copy this text to your Text Editor Today is <? print strftime(&quot;%m/%d/%Y&quot;); ?> With your browser, go to http://localhost . If you see the current date on your screen as in this screenshot, then PHP5 has been successfully installed and configured with Apache.
  • 42. The outPut will be as Follows:
  • 43. CONFIGURE MYSQL Create a Database Table using MySQL 5.0 Client In this step we will use the MySQL 5.0 client software to create a database table (so that we can display its data on a web page in the next step). In order to do this, we are going to have to enter commands in at the command prompt on your Windows machine. Do This: In order to get to the command prompt, click the Windows Start button and choose Run . Then type in cmd and click the OK button.
  • 44. 2. At the command prompt, type cd &quot;C:Program FilesMySQLMySQL Server 4.1in&quot; and hit the Enter key. 3.Then type mysql -u root -p and when asked for the password, type admin . You will then see the MySQL client prompt.
  • 45. 4.Type in the following lines in order to create the database named demo and a table within that database named members : 5.Now type in the following lines which will create two records in the members table of the demo database: Now exit the MySQL client by typing quit; . Now exit the MySQL client by typing quit; . z
  • 46. Set up PHP to work with MySQL 4.1 We now need to make a few changes to PHP so that it knows what to do when it encounters a MySQL command. Do This: First of all, check the c:php directory and make sure that the files libmysqli.dll and php_mysqli.dll are both there. If they are not there, check the c:phpext directory and copy the files into c:php 2.Then open up the file c:phpphp.ini in your editor and ADD the line extension=php_mysqli.dll .
  • 47. 3. In order for the changes to take effect, you need to restart Apache. To do this, click the Apache symbol in the lower right-hand corner of your task bar. In the little menu that pops up there, click Apache 2 and then Restart . 4.After about 10 seconds, your PHP will be ready to accept mysqli commands to talk to the MySQL 5.0 database.
  • 48. Test PHP5/MySQL in browser We will now create a PHP page which connects to your MySQL database called demo , reads the names out of the table members and displays them in the browser. Do This Create a file c:webs est estmysql41.php and paste in the following code: Copy the Below Code: <? $mysqli = new mysqli('localhost','root','admin'); $mysqli->select_db('demo'); $result = $mysqli->query(&quot;SELECT * FROM members&quot;); while($row = $result->fetch_assoc()) { print $row['firstName'] . ' ' . $row['lastName'] . '<br/>'; } $result->close(); ?>
  • 49. 3.In your browser, go to http://localhost/testmysql41.php . If you see the following two names appear in your browser, this means that your MySQL 4.1 database works with your PHP 5 installation. Fatal error : Class 'mysqli' not found in C:webs est estmysql41.php on line 3 If above error appears then please do as mentioned Below.
  • 50. Smith : Somebody please help me in removing this error &quot;Fatal error: Class 'mysqli' not found in C:webs est estmysql41.php on line 3&quot; i have tried and checked all what is told in the above discussion..ple help me soon!!! Edgars : Sly: firstname should be firstName, and in mySQL is different is UPERCASE or lowercase! Chek your variables names, maybe it helps :) Yavuz cakir : Fatal error: Class 'mysqli' not found in c:webs est estmysql41.php on line 2 Lubos : 1) Add file libmysql.dll into WindowsSystem32 folder; 2) at php.ini uncomment extensions=php_mysqli.dll and php_mysql.dll; 3) at your testsql file change Admin to your windows account password. Configure apache as described here. I had all the mistakes as described above and now everything works. Alex : Lubos THANKS ALOT !!!! I had all htose problems too and now is working :) Bla Bla : Now, I don't know what changed it, I did everything listed here and I realised it works. I think firstName should be written the same way you did when you created the test database (in my case firstname). A letter can make the difference! Pay attention, kids!!! Is IT RESOLVED THANK YOU NO……………….Ok…So More Configuration Required
  • 51.
    • Open PHP.INI from c:phpphp.ini
    • Edit File
    • Type as extension_dir = &quot;C:phpext&quot;
    4.In your browser, go to http://localhost/testmysql41.php . If you see the following two names appear in your browser, this means that your MySQL 4.1 database works with your PHP 5 installation.
  • 52. Mantis Deployment in Apache Server Make sure You have already created the Database named as : bugtracker. And it has been configured successfully using username = “root” and Password= “mysql!” DO THIS:
    • Unzip the File Mantisbt1.1.5
    • Copy to C:
    • Rename the File Mantisbt to Mantis
    • The mantis path will be : c:mantis
    • Open Apache HTTPD.cong file from C:apache2configHttpd.cong
    • Set document root = DocumentRoot &quot;C:/webs/test“ should be as &quot;C:/mantis“
    • Next try to search Directory &quot;C:/webs/test&quot;> should be as &quot;C:/mantis“
    OK….You have expalined Apache To Read Mantis.
  • 53. Now we need to Tell PHP.INI to Read Mantis
    • Open File PHP.INI in your Text Editor by selecting as c:phpphp.ini
    • Search For Document Root: doc_root and Replace doc_root =&quot;C:webs est“ with doc_root =&quot;C:mantis“
    • Search For [mail function] and Type [mail function]
    • ; For Win32 only.
    • SMTP = mail.reverie.co.in
    • smtp_port = 25
    • ; For Win32 only.
    • sendmail_from = [email_address]
  • 54. NOW LAUNCH MANTIS IN BROWSER
    • Save all files and Restart Apache Server for Taking Effect.
    • Launch URL as http://localhost/
    • Press Enter key to Launch Admin Page
    • http://localhost/admin/install.php
    • The page will be as Below.
  • 55. Once you click on Install and Upgrade Database the Screen will appear as Below Make sure all configuration should come as Good by the System. Click on Continue to Process Installation……………………………..
  • 56.  
  • 57. Now click on Continue………….Option ….Now

×