2
edits
m (-T => -t) |
m (added more details about setting up the .cgi file association) |
||
Line 563: | Line 563: | ||
In command line environment, type <b>regedit</b> to open Microsoft Registory Editor GUI. In Microsoft Registory Editor, 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 (or -T to be safer) parameter. For example <b>C:\Perl\bin\perl.exe -t</b> | In command line environment, type <b>regedit</b> to open Microsoft Registory Editor GUI. In Microsoft Registory Editor, 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 (or -T to be safer) parameter. For example <b>C:\Perl\bin\perl.exe -t</b> | ||
To test that this works, you can execute the index.cgi file at C:\Bugzilla and see if it creates the html page. An alternate way to set up the registry settings is to perform this two-step: First, use the windows gui to set up the file association for the .cgi file extension. Second, modify the registry text to add the -t option to the perl.exe line. | |||
In detail then, first, execute the index.cgi either on the command line or in the windows GUI by double-clicking. Since you haven't done the registry change with Shell\ExecCGI\Command mentioned above, windows will prompt you to identify what executable should be associated with .cgi files. Tell it the C:\perl\bin\perl.exe file is the correct executable. | |||
Second, use regedit to add the -t option like this. The HKEY_CLASSES_ROOT\.cgi will be set up with a cgi_auto_file. The cgi_auto_file (search for it with regedit) sets up cgi_auto_file\shell\open\command\(default) with a REG_SZ containing a command line text. Note well how the double-quotes are set up. | |||
Change | |||
"C:\perl\bin\perl.exe" "%1" | |||
into | |||
"C:\perl\bin\perl.exe" -t "%1" | |||
You must have this -t added in correctly in order for Bugzilla to work. After adding it, you can test this part of the setup by trying to execute index.cgi at the command prompt and see if html is generated. | |||
[[Image:Bugzilla-Regedit.png|300px|Regedit]] | [[Image:Bugzilla-Regedit.png|300px|Regedit]] |
edits