Bugzilla:Win32Install: Difference between revisions

Line 364: Line 364:
  #
  #
  #Listen 12.34.56.78:80
  #Listen 12.34.56.78:80
  <i>Listen 80</i>
  <b>Listen 80</b>
   
   
Change the <b>DocumentRoot</b> setting to point to <b>C:\Bugzilla</b>.  Note there are two locations in <b>httpd.conf</b> that need to be updated.  Note you need to use / instead of \ as a path separator.
Change the <b>DocumentRoot</b> setting to point to <b>C:\Bugzilla</b>.  Note there are two locations in <b>httpd.conf</b> that need to be updated.  Note you need to use / instead of \ as a path separator.
Line 374: Line 374:
  #
  #
   
   
  <i>DocumentRoot "C:/Bugzilla"</i>
  <b>DocumentRoot "C:/Bugzilla"</b>
   
   
  #
  #
Line 399: Line 399:
  # This should be changed to whatever you set DocumentRoot to.
  # This should be changed to whatever you set DocumentRoot to.
  #
  #
  <i>&lt;Directory "C:/Bugzilla"&gt;</i>
  <b>&lt;Directory "C:/Bugzilla"&gt;</b>


====Configure CGI====
====Configure CGI====
Line 413: Line 413:
  # (You will also need to add "ExecCGI" to the "Options" directive.)
  # (You will also need to add "ExecCGI" to the "Options" directive.)
  #
  #
  <i>AddHandler cgi-script .cgi</i>
  <b>AddHandler cgi-script .cgi</b>


And allow .cgi scripts in the Bugzilla directory by adding the <b>ExecCGI</b> option.  We also need to allow Bugzilla's .htaccess file to restrict access to sensitive documents by allowing it to override the defaults.  This involves changing <b>AllowOverride None</b> to <b>AllowOverride All</b>.
And allow .cgi scripts in the Bugzilla directory by adding the <b>ExecCGI</b> option.  We also need to allow Bugzilla's .htaccess file to restrict access to sensitive documents by allowing it to override the defaults.  This involves changing <b>AllowOverride None</b> to <b>AllowOverride All</b>.
Line 436: Line 436:
  # for more information.
  # for more information.
  #
  #
  <i>    Options Indexes FollowSymLinks ExecCGI</i>
  <b>    Options Indexes FollowSymLinks ExecCGI</b>
   
   
  #
  #
Line 443: Line 443:
  #  Options FileInfo AuthConfig Limit
  #  Options FileInfo AuthConfig Limit
  #
  #
  <i>    AllowOverride All</i>
  <b>    AllowOverride All</b>
   
   
  #
  #
Line 451: Line 451:
     Allow from all
     Allow from all
   
   
  <i>#
  <b>#
  # Tell Apache to use Perl to execute .cgi
  # Tell Apache to use Perl to execute .cgi
  #
  #
     ScriptInterpreterSource Registry-Strict</i>
     ScriptInterpreterSource Registry-Strict</b>
   
   
  &lt;/Directory&gt;
  &lt;/Directory&gt;
Line 468: Line 468:
  # same purpose, but it is much slower.
  # same purpose, but it is much slower.
  #
  #
  <i>DirectoryIndex index.html index.html.var index.cgi</i>
  <b>DirectoryIndex index.html index.html.var index.cgi</b>


In order for <b>ScriptInterpreterSource Registry-Strict</b> to work, you also need to add an entry to the Registry so Apache will use Perl to execute .cgi files.
In order for <b>ScriptInterpreterSource Registry-Strict</b> to work, you also need to add an entry to the Registry so Apache will use Perl to execute .cgi files.
Line 474: Line 474:
Create a key <b>HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command</b> with the default value of the full path of perl.exe with a -T parameter.  For example <b>C:\Perl\bin\perl.exe -T</b>
Create a key <b>HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command</b> with the default value of the full path of perl.exe with a -T parameter.  For example <b>C:\Perl\bin\perl.exe -T</b>


<a href="../img/regedit.png"><img src="../img/t_regedit.png" width="100" height="60" alt="regedit screenshot"></a>
[[Image:Bugzilla-Regedit.png|100px|Regedit]]


====Disable Logging====
====Disable Logging====
Line 487: Line 487:
  # logged therein and *not* in this file.
  # logged therein and *not* in this file.
  #
  #
  <i>#CustomLog logs/access.log common</i>
  <b>#CustomLog logs/access.log common</b>


====Restart Apache====
====Restart Apache====
Line 580: Line 580:
  # need to escape it by preceding it with a \ character. (\') or (\\)
  # need to escape it by preceding it with a \ character. (\') or (\\)
  #
  #
  <i>$db_pass = 'sockmonkey';</i>
  <b>$db_pass = 'sockmonkey';</b>


====checksetup.pl====
====checksetup.pl====
Confirmed users
1,201

edits