Confirmed users
1,201
edits
(→Apache) |
|||
Line 364: | Line 364: | ||
# | # | ||
#Listen 12.34.56.78:80 | #Listen 12.34.56.78:80 | ||
< | <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: | ||
# | # | ||
< | <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. | ||
# | # | ||
< | <b><Directory "C:/Bugzilla"></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.) | ||
# | # | ||
< | <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. | ||
# | # | ||
< | <b> Options Indexes FollowSymLinks ExecCGI</b> | ||
# | # | ||
Line 443: | Line 443: | ||
# Options FileInfo AuthConfig Limit | # Options FileInfo AuthConfig Limit | ||
# | # | ||
< | <b> AllowOverride All</b> | ||
# | # | ||
Line 451: | Line 451: | ||
Allow from all | Allow from all | ||
< | <b># | ||
# Tell Apache to use Perl to execute .cgi | # Tell Apache to use Perl to execute .cgi | ||
# | # | ||
ScriptInterpreterSource Registry-Strict</ | ScriptInterpreterSource Registry-Strict</b> | ||
</Directory> | </Directory> | ||
Line 468: | Line 468: | ||
# same purpose, but it is much slower. | # same purpose, but it is much slower. | ||
# | # | ||
< | <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> | ||
[[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. | ||
# | # | ||
< | <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 (\\) | ||
# | # | ||
< | <b>$db_pass = 'sockmonkey';</b> | ||
====checksetup.pl==== | ====checksetup.pl==== |