summaryrefslogtreecommitdiffstats
path: root/docs/html/configuration.html
blob: 295a7654055f60601d3a4b8c8bb4386bee129498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
<HTML
><HEAD
><TITLE
>Configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="The Bugzilla Guide - 2.17.7 
    Development Release"
HREF="index.html"><LINK
REL="UP"
TITLE="Installing Bugzilla"
HREF="installing-bugzilla.html"><LINK
REL="PREVIOUS"
TITLE="Installation"
HREF="installation.html"><LINK
REL="NEXT"
TITLE="Optional Additional Configuration"
HREF="extraconfig.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Bugzilla Guide - 2.17.7 
    Development Release</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="installation.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 2. Installing Bugzilla</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="extraconfig.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="configuration"
></A
>2.2. Configuration</H1
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Poorly-configured MySQL and Bugzilla installations have
      given attackers full access to systems in the past. Please take the
      security parts of these guidelines seriously, even for Bugzilla 
      machines hidden away behind your firewall.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="localconfig"
></A
>2.2.1. localconfig</H2
><P
>&#13;        Once you run <TT
CLASS="filename"
>checksetup.pl</TT
> with all the correct 
        modules installed, it displays a message about, and write out a 
        file called, 
        <TT
CLASS="filename"
>localconfig</TT
>. This file contains the default
        settings for a number of Bugzilla parameters.
      </P
><P
>Load this file in your editor. The only value you 
      <EM
>need</EM
> to change is $db_pass, the password for
      the user you will create for your database.
      Pick a strong password (for simplicity, it should not contain
      single quote characters) and put it here.
      </P
><P
>&#13;        The other options in the <TT
CLASS="filename"
>localconfig</TT
> file
        are documented by their accompanying comments. If you have a slightly
        non-standard MySQL setup, you may wish to change one or more of
        the other "$db_*" parameters. 
      </P
><P
>&#13;        You may also wish to change the names of 
        the priorities, severities, operating systems and platforms for your
        installation. However, you can always change these after installation
        has finished; if you then re-run 
        <TT
CLASS="filename"
>checksetup.pl</TT
>, the changes will get picked up.
      </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="mysql"
></A
>2.2.2. MySQL</H2
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="security-mysql"
></A
>2.2.2.1. Security</H3
><P
>MySQL ships as insecure by default.
        It allows anybody to on the local machine full administrative 
        capabilities without requiring a password; the special
        MySQL root account (note: this is <EM
>not</EM
> the same as
        the system root) also has no password.
        Also, many installations default to running
        <SPAN
CLASS="application"
>mysqld</SPAN
> as the system root.
        </P
><P
></P
><OL
TYPE="1"
><LI
><P
>To disable the anonymous user account
            and set a password for the root user, execute the following. The
            root user password should be different to the bugs user password
            you set in 
            <TT
CLASS="filename"
>localconfig</TT
> in the previous section, 
            and also different to
            the password for the system root account on your machine.
            </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>  <TT
CLASS="prompt"
>bash$</TT
> mysql mysql
  <TT
CLASS="prompt"
>mysql&#62;</TT
> DELETE FROM user WHERE user = '';
  <TT
CLASS="prompt"
>mysql&#62;</TT
> UPDATE user SET password = password('<TT
CLASS="replaceable"
><I
>new_password</I
></TT
>') WHERE user = 'root';
  <TT
CLASS="prompt"
>mysql&#62;</TT
> FLUSH PRIVILEGES;</PRE
></FONT
></TD
></TR
></TABLE
><P
>From this point forward, to run the 
            <TT
CLASS="filename"
>mysql</TT
> command-line client, 
            you will need to type
            <B
CLASS="command"
>mysql -u root -p</B
> and enter
            <TT
CLASS="replaceable"
><I
>new_password</I
></TT
> when prompted.
            </P
></LI
><LI
><P
>If you run MySQL on the same machine as your web server, you
            should disable remote access to MySQL by adding
            the following to your <TT
CLASS="filename"
>/etc/my.conf</TT
>:
            </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>  [myslqd]
  # Prevent network access to MySQL.
  skip-networking</PRE
></FONT
></TD
></TR
></TABLE
></LI
><LI
><P
>Consult the documentation that came with your system for
            information on making <SPAN
CLASS="application"
>mysqld</SPAN
> run as an
            unprivileged user.
            </P
></LI
><LI
><P
>For added security, you could also run MySQL, or even all 
            of Bugzilla
            in a chroot jail; however, instructions for doing that are beyond
            the scope of this document.
            </P
></LI
></OL
></DIV
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="install-setupdatabase"
></A
>2.2.2.2. Allow large attachments</H3
><P
>You need to configure MySQL to accept large packets, if you
        want to have attachments larger than 64K. Add the text
        below to your
        <TT
CLASS="filename"
>/etc/my.conf</TT
>. 
        There is also a parameter in Bugzilla
        for setting the maximum allowable attachment size, (default 1MB).
        Bugzilla will only accept attachments up to the lower of these two
        sizes.
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>  [mysqld]
  # Allow packets up to 1M
  set-variable = max_allowed_packet=1M</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="install-setupdatabase-adduser"
></A
>2.2.2.3. Add a user to MySQL</H3
><P
>You need to add a new MySQL user for
        Bugzilla to use. (It's not safe to have Bugzilla use the MySQL root
        account.) The following instructions assume the defaults in 
        <TT
CLASS="filename"
>localconfig</TT
>; 
        if you changed those, you need to modify the 
        SQL command appropriately. You will need the 
        <TT
CLASS="replaceable"
><I
>$db_pass</I
></TT
> password you set in
        <TT
CLASS="filename"
>localconfig</TT
> in 
        <A
HREF="configuration.html#localconfig"
>Section 2.2.1</A
>.
        </P
><P
>We use an SQL <B
CLASS="command"
>GRANT</B
> command to create a 
        <SPAN
CLASS="QUOTE"
>"bugs"</SPAN
>
        user. This also restricts the 
        <SPAN
CLASS="QUOTE"
>"bugs"</SPAN
>
        user to operations within a database called 
        <SPAN
CLASS="QUOTE"
>"bugs"</SPAN
>, and only allows the account to connect from 
        <SPAN
CLASS="QUOTE"
>"localhost"</SPAN
>. 
        Modify it to reflect your setup if you will be connecting from
        another machine or as a different user.</P
><P
>Run the <TT
CLASS="filename"
>mysql</TT
> command-line client and
        enter:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>  <TT
CLASS="prompt"
>mysql&#62;</TT
> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,
         DROP,REFERENCES ON bugs.* TO bugs@localhost
         IDENTIFIED BY '<TT
CLASS="replaceable"
><I
>$db_pass</I
></TT
>';
  <TT
CLASS="prompt"
>mysql&#62;</TT
> FLUSH PRIVILEGES</PRE
></FONT
></TD
></TR
></TABLE
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If you are using MySQL 4, you need to add
          the <TT
CLASS="computeroutput"
>LOCK TABLES</TT
> and 
          <TT
CLASS="computeroutput"
>CREATE TEMPORARY TABLES</TT
> permissions
          to the list.
          </P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN400"
></A
>2.2.3. checksetup.pl</H2
><P
>&#13;        Next, rerun <TT
CLASS="filename"
>checksetup.pl</TT
>. It reconfirms
        that all the modules are present, and notices the altered 
        localconfig file, which it assumes you have edited to your
        satisfaction. It compiles the UI templates,
        connects to the database using the 'bugs'
        user you created and the password you defined, and creates the 
        'bugs' database and the tables therein. 
      </P
><P
>&#13;        After that, it asks for details of an administrator account. Bugzilla
        can have multiple administrators - you can create more later - but
        it needs one to start off with.
        Enter the email address of an administrator, his or her full name, 
        and a suitable Bugzilla password.
      </P
><P
>&#13;        <TT
CLASS="filename"
>checksetup.pl</TT
> will then finish. You may rerun
        <TT
CLASS="filename"
>checksetup.pl</TT
> at any time if you wish.
      </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="http"
></A
>2.2.4. Web server</H2
><P
>Configure your web server according to the instructions in the
      appropriate section. The Bugzilla Team recommends Apache.
      </P
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="http-apache"
></A
>2.2.4.1. Apache <SPAN
CLASS="productname"
>httpd</SPAN
></H3
><P
>Load <TT
CLASS="filename"
>httpd.conf</TT
> in your editor.</P
><P
>Uncomment (or add) the following line. 
          This configures Apache to run .cgi files outside the
          <TT
CLASS="filename"
>cgi-bin</TT
> directory.
          </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>  AddHandler cgi-script .cgi</PRE
></FONT
></TD
></TR
></TABLE
><P
>Apache uses <TT
CLASS="computeroutput"
>&#60;Directory&#62;</TT
>
          directives to permit fine-grained permission setting.
          Add the following two lines to a 
          <TT
CLASS="computeroutput"
>&#60;Directory&#62;</TT
> directive that 
          applies either to the Bugzilla directory or one of its parents
          (e.g. the <TT
CLASS="computeroutput"
>&#60;Directory /var/www/html&#62;</TT
>
          directive).
          This allows Bugzilla's <TT
CLASS="filename"
>.htaccess</TT
> files to 
          override global permissions, and allows .cgi files to run in the 
          Bugzilla directory.
          </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>  Options +ExecCGI +FollowSymLinks
  AllowOverride Limit</PRE
></FONT
></TD
></TR
></TABLE
><P
>Add <TT
CLASS="filename"
>index.cgi</TT
> to the end
          of the <TT
CLASS="computeroutput"
>DirectoryIndex</TT
> 
          line.</P
><P
><TT
CLASS="filename"
>checksetup.pl</TT
> can set tighter permissions
          on Bugzilla's files and directories if it knows what user the
          webserver runs as. Look for the <TT
CLASS="computeroutput"
>User</TT
>
          line in <TT
CLASS="filename"
>httpd.conf</TT
>, and place that value in
          the <TT
CLASS="replaceable"
><I
>$webservergroup</I
></TT
> variable in
          <TT
CLASS="filename"
>localconfig</TT
>. Then rerun
          <TT
CLASS="filename"
>checksetup.pl</TT
>.
          </P
></DIV
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="http-iis"
></A
>2.2.4.2. Microsoft <SPAN
CLASS="productname"
>Internet Information Services</SPAN
></H3
><P
>If you need, or for some reason even want, to use Microsoft's
        <SPAN
CLASS="productname"
>Internet Information Services</SPAN
> or
        <SPAN
CLASS="productname"
>Personal Web Server</SPAN
> you should be able
        to. You will need to configure them to know how to run CGI scripts.
        This is described in Microsoft Knowledge Base article
        <A
HREF="http://support.microsoft.com/support/kb/articles/Q245/2/25.asp"
TARGET="_top"
>Q245225</A
>
        for <SPAN
CLASS="productname"
>Internet Information Services</SPAN
> and
        <A
HREF="http://support.microsoft.com/support/kb/articles/Q231/9/98.asp"
TARGET="_top"
>Q231998</A
>          
        for <SPAN
CLASS="productname"
>Personal Web Server</SPAN
>.
        </P
><P
>Also, and this can't be stressed enough, make sure that files such as
        <TT
CLASS="filename"
>localconfig</TT
> and your <TT
CLASS="filename"
>data</TT
>
        directory are secured as described in <A
HREF="configuration.html#security-access"
>Section 2.2.4.4</A
>.
        </P
></DIV
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="http-aol"
></A
>2.2.4.3. AOL Server</H3
><P
>Ben FrantzDale reported success using AOL Server with Bugzilla. He
        reported his experience and what appears below is based on that.
        </P
><P
>AOL Server will have to be configured to run
        <A
HREF="glossary.html#gloss-cgi"
><I
CLASS="glossterm"
>CGI</I
></A
> scripts, please consult
        the documentation that came with your server for more information on
        how to do this.
        </P
><P
>Because AOL Server doesn't support <TT
CLASS="filename"
>.htaccess</TT
>
        files, you'll have to create a <A
HREF="glossary.html#gloss-tcl"
><I
CLASS="glossterm"
>TCL</I
></A
>
        script. You should create an <TT
CLASS="filename"
>aolserver/modules/tcl/filter.tcl</TT
>
        file (the filename shouldn't matter) with the following contents (change
        <TT
CLASS="computeroutput"
>/bugzilla/</TT
> to the web-based path to
        your Bugzilla installation):
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;  ns_register_filter preauth GET /bugzilla/localconfig filter_deny
  ns_register_filter preauth GET /bugzilla/localconfig~ filter_deny
  ns_register_filter preauth GET /bugzilla/\#localconfig\# filter_deny
  ns_register_filter preauth GET /bugzilla/*.pl filter_deny
  ns_register_filter preauth GET /bugzilla/syncshadowdb filter_deny
  ns_register_filter preauth GET /bugzilla/runtests.sh filter_deny
  ns_register_filter preauth GET /bugzilla/data/* filter_deny
  ns_register_filter preauth GET /bugzilla/template/* filter_deny

  proc filter_deny { why } {
      ns_log Notice "filter_deny"
      return "filter_return"
  }
        </PRE
></FONT
></TD
></TR
></TABLE
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>This probably doesn't account for all possible editor backup
          files so you may wish to add some additional variations of
          <TT
CLASS="filename"
>localconfig</TT
>. For more information, see 
          <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=186383"
TARGET="_top"
>&#13;          bug 186383</A
> or <A
HREF="http://online.securityfocus.com/bid/6501"
TARGET="_top"
>Bugtraq ID 6501</A
>.
          </P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If you are using webdot from research.att.com (the default
          configuration for the <TT
CLASS="option"
>webdotbase</TT
> paramater), you
          will need to allow access to <TT
CLASS="filename"
>data/webdot/*.dot</TT
>
          for the reasearch.att.com machine.
          </P
><P
>If you are using a local installation of <A
HREF="http://www.graphviz.org"
TARGET="_top"
>GraphViz</A
>, you will need to allow
          everybody to access <TT
CLASS="filename"
>*.png</TT
>,
          <TT
CLASS="filename"
>*.gif</TT
>, <TT
CLASS="filename"
>*.jpg</TT
>, and
          <TT
CLASS="filename"
>*.map</TT
> in the
          <TT
CLASS="filename"
>data/webdot</TT
> directory.
          </P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="section"
><H3
CLASS="section"
><A
NAME="security-access"
></A
>2.2.4.4. Web Server Access Controls</H3
><P
>Users of Apache can skip this section because
        Bugzilla ships with <TT
CLASS="filename"
>.htaccess</TT
> files which 
        restrict access in the manner required. 
        Users of other webservers, read on.
        </P
><P
>There are several files in the Bugzilla directory
        that should not be accessible from the web. You need to configure
        your webserver so they they aren't. Not doing this may reveal
        sensitive information such as database passwords.
        </P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>In the main Bugzilla directory, you should:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block:
                <TT
CLASS="filename"
>*.pl</TT
>, <TT
CLASS="filename"
>*localconfig*</TT
>, <TT
CLASS="filename"
>runtests.sh</TT
>
                </P
></LI
><LI
><P
>But allow:
                <TT
CLASS="filename"
>localconfig.js</TT
>, <TT
CLASS="filename"
>localconfig.rdf</TT
>
                </P
></LI
></UL
></LI
><LI
><P
>In <TT
CLASS="filename"
>data</TT
>:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
><LI
><P
>But allow:
                <TT
CLASS="filename"
>duplicates.rdf</TT
>
                </P
></LI
></UL
></LI
><LI
><P
>In <TT
CLASS="filename"
>data/webdot</TT
>:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>If you use a remote webdot server:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
><LI
><P
>But allow
                    <TT
CLASS="filename"
>*.dot</TT
>
                    only for the remote webdot server</P
></LI
></UL
></LI
><LI
><P
>Otherwise, if you use a local GraphViz:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
><LI
><P
>But allow:
                    <TT
CLASS="filename"
>*.png</TT
>, <TT
CLASS="filename"
>*.gif</TT
>, <TT
CLASS="filename"
>*.jpg</TT
>, <TT
CLASS="filename"
>*.map</TT
>
                    </P
></LI
></UL
></LI
><LI
><P
>And if you don't use any dot:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
></UL
></LI
></UL
></LI
><LI
><P
>In <TT
CLASS="filename"
>Bugzilla</TT
>:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
></UL
></LI
><LI
><P
>In <TT
CLASS="filename"
>template</TT
>:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>Block everything</P
></LI
></UL
></LI
></UL
><P
>You should test to make sure that the files mentioned above are
        not accessible from the Internet, especially your
        <TT
CLASS="filename"
>localconfig</TT
> file which contains your database
        password. To test, simply point your web browser at the file; for
        example, to test mozilla.org's installation, we'd try to access
        <A
HREF="http://bugzilla.mozilla.org/localconfig"
TARGET="_top"
>http://bugzilla.mozilla.org/localconfig</A
>. You should
        get a <SPAN
CLASS="errorcode"
>403</SPAN
> <SPAN
CLASS="errorname"
>Forbidden</SPAN
>
        error.
        </P
></DIV
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="install-config-bugzilla"
></A
>2.2.5. Bugzilla</H2
><P
>&#13;        Your Bugzilla should now be working. Access 
        <TT
CLASS="filename"
>http://&#60;your-bugzilla-server&#62;/</TT
> - 
        you should see the Bugzilla
        front page. If not, consult the Troubleshooting section,
        <A
HREF="troubleshooting.html"
>Section 2.5</A
>.
      </P
><P
>&#13;        Log in with the administrator account you defined in the last 
        <TT
CLASS="filename"
>checksetup.pl</TT
> run. You should go through 
        the parameters on the Edit Parameters page
        (see link in the footer) and see if there are any you wish to
        change. 
        They key parameters are documented in <A
HREF="parameters.html"
>Section 3.1</A
>;
        you should certainly alter 
        <B
CLASS="command"
>maintainer</B
> and <B
CLASS="command"
>urlbase</B
>; 
        you may also want to alter 
        <B
CLASS="command"
>cookiepath</B
> or <B
CLASS="command"
>requirelogin</B
>.
      </P
><P
>&#13;        This would also be a good time to revisit the
        <TT
CLASS="filename"
>localconfig</TT
> file and make sure that the 
        names of the priorities, severities, platforms and operating systems
        are those you wish to use when you start creating bugs. Remember
        to rerun <TT
CLASS="filename"
>checksetup.pl</TT
> if you change it.
      </P
><P
>&#13;        Bugzilla has several optional features which require extra 
        configuration. You can read about those in
        <A
HREF="extraconfig.html"
>Section 2.3</A
>.
      </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="installation.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="extraconfig.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Installation</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="installing-bugzilla.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Optional Additional Configuration</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>