# # This transcript shows this guide's command line portion being carried out: # # http://www.robroygregg.com/articles/bugzilla/FreeBSD_MySQL_Apache_Bugzilla.html # # pkg install apache24 mysql55-server bugzilla44 p5-DBD-mysql Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 69 packages will be affected (of 0 checked): New packages to be INSTALLED: apache24: 2.4.10_2 expat: 2.1.0_1 perl5: 5.16.3_11 pcre: 8.35_1 apr: 1.5.1.1.5.4 gdbm: 1.11_2 db5: 5.3.28_2 mysql55-server: 5.5.40 mysql55-client: 5.5.40 bugzilla44: 4.4.6 p5-Template-Toolkit: 2.25 p5-AppConfig: 1.66 p5-Template-GD: 2.66 p5-HTML-Scrubber: 0.11 p5-HTML-Parser: 3.71 p5-HTML-Tagset: 3.20 p5-CGI.pm: 3.63,1 p5-URI: 1.64 patchutils: 0.3.3 p5-Math-Random-ISAAC: 1.004 p5-Math-Random-ISAAC-XS: 1.004 p5-Test-NoWarnings: 1.04_1 p5-Email-Send: 2.199 p5-Email-Simple: 2.203 p5-Email-Date-Format: 1.004 p5-Email-Address: 1.90.5 p5-UNIVERSAL-require: 0.15 p5-Return-Value: 1.666002_1 p5-Class-Accessor: 0.34 p5-Email-MIME: 1.926 p5-MIME-Types: 2.09 p5-Email-MessageID: 1.405 p5-Email-MIME-Encodings: 1.315 p5-MIME-Base64: 3.14 p5-Email-MIME-ContentType: 1.01.7 p5-List-MoreUtils: 0.33 p5-GD-TextUtil: 0.86_4 p5-GD: 2.53 libgd: 2.1.0_4,1 fontconfig: 2.11.0_3,1 freetype2: 2.5.3_2 tiff: 4.0.3_4 jpeg: 8_5 jbigkit: 2.1_1 png: 1.5.19 p5-GD-Graph: 1.48 p5-Chart: 2.4.6 p5-TimeDate: 2.30_1,1 p5-PatchReader: 0.9.6_1 p5-DateTime-TimeZone: 1.75 p5-Params-Validate: 1.13 p5-Module-Implementation: 0.09 p5-Try-Tiny: 0.18 p5-Module-Runtime: 0.014 p5-List-AllUtils: 0.09 p5-Scalar-List-Utils: 1.35,1 p5-Class-Singleton: 1.4 p5-Class-Load: 0.21 p5-Package-Stash: 0.37 p5-Package-Stash-XS: 0.28 p5-Dist-CheckConflicts: 0.11 p5-Data-OptList: 0.109 p5-Sub-Install: 0.928 p5-Params-Util: 1.07 p5-DateTime: 1.12 p5-DateTime-Locale: 0.45 p5-DBI: 1.631 p5-Encode-Detect: 1.01 p5-DBD-mysql: 4.028 The process will require 270 MB more space. 47 MB to be downloaded. Proceed with this action? [y/N]: y [jamclod] Fetching apache24-2.4.10_2.txz: 100% 4 MB 3.7M/s 00:01 [jamclod] Fetching expat-2.1.0_1.txz: 100% 97 KB 99.6k/s 00:01 [jamclod] Fetching perl5-5.16.3_11.txz: 100% 13 MB 2.2M/s 00:06 [jamclod] Fetching pcre-8.35_1.txz: 100% 1 MB 1.1M/s 00:01 [jamclod] Fetching apr-1.5.1.1.5.4.txz: 100% 394 KB 403.0k/s 00:01 [jamclod] Fetching gdbm-1.11_2.txz: 100% 141 KB 144.5k/s 00:01 [jamclod] Fetching db5-5.3.28_2.txz: 100% 12 MB 2.1M/s 00:06 [jamclod] Fetching mysql55-server-5.5.40.txz: 100% 6 MB 2.2M/s 00:03 [jamclod] Fetching mysql55-client-5.5.40.txz: 100% 2 MB 1.6M/s 00:01 [jamclod] Fetching bugzilla44-4.4.6.txz: 100% 2 MB 2.0M/s 00:01 [jamclod] Fetching p5-Template-Toolkit-2.25.txz: 100% 526 KB 539.0k/s 00:01 [jamclod] Fetching p5-AppConfig-1.66.txz: 100% 65 KB 67.1k/s 00:01 [jamclod] Fetching p5-Template-GD-2.66.txz: 100% 52 KB 53.7k/s 00:01 [jamclod] Fetching p5-HTML-Scrubber-0.11.txz: 100% 11 KB 11.6k/s 00:01 [jamclod] Fetching p5-HTML-Parser-3.71.txz: 100% 80 KB 81.7k/s 00:01 [jamclod] Fetching p5-HTML-Tagset-3.20.txz: 100% 10 KB 10.1k/s 00:01 [jamclod] Fetching p5-CGI.pm-3.63,1.txz: 100% 184 KB 188.2k/s 00:01 [jamclod] Fetching p5-URI-1.64.txz: 100% 86 KB 88.3k/s 00:01 [jamclod] Fetching patchutils-0.3.3.txz: 100% 64 KB 65.4k/s 00:01 [jamclod] Fetching p5-Math-Random-ISAAC-1.004.txz: 100% 15 KB 15.2k/s 00:01 [jamclod] Fetching p5-Math-Random-ISAAC-XS-1.004.txz: 100% 10 KB 9.9k/s 00:01 [jamclod] Fetching p5-Test-NoWarnings-1.04_1.txz: 100% 8 KB 8.3k/s 00:01 [jamclod] Fetching p5-Email-Send-2.199.txz: 100% 27 KB 27.5k/s 00:01 [jamclod] Fetching p5-Email-Simple-2.203.txz: 100% 23 KB 23.2k/s 00:01 [jamclod] Fetching p5-Email-Date-Format-1.004.txz: 100% 11 KB 11.5k/s 00:01 [jamclod] Fetching p5-Email-Address-1.90.5.txz: 100% 12 KB 12.0k/s 00:01 [jamclod] Fetching p5-UNIVERSAL-require-0.15.txz: 100% 6 KB 5.9k/s 00:01 [jamclod] Fetching p5-Return-Value-1.666002_1.txz: 100% 9 KB 9.3k/s 00:01 [jamclod] Fetching p5-Class-Accessor-0.34.txz: 100% 20 KB 20.2k/s 00:01 [jamclod] Fetching p5-Email-MIME-1.926.txz: 100% 32 KB 32.8k/s 00:01 [jamclod] Fetching p5-MIME-Types-2.09.txz: 100% 57 KB 58.7k/s 00:01 [jamclod] Fetching p5-Email-MessageID-1.405.txz: 100% 5 KB 5.3k/s 00:01 [jamclod] Fetching p5-Email-MIME-Encodings-1.315.txz: 100% 5 KB 4.8k/s 00:01 [jamclod] Fetching p5-MIME-Base64-3.14.txz: 100% 16 KB 16.8k/s 00:01 [jamclod] Fetching p5-Email-MIME-ContentType-1.01.7.txz: 100% 5 KB 5.4k/s 00:01 [jamclod] Fetching p5-List-MoreUtils-0.33.txz: 100% 35 KB 35.5k/s 00:01 [jamclod] Fetching p5-GD-TextUtil-0.86_4.txz: 100% 25 KB 25.4k/s 00:01 [jamclod] Fetching p5-GD-2.53.txz: 100% 133 KB 135.8k/s 00:01 [jamclod] Fetching libgd-2.1.0_4,1.txz: 100% 173 KB 176.9k/s 00:01 [jamclod] Fetching fontconfig-2.11.0_3,1.txz: 100% 336 KB 344.5k/s 00:01 [jamclod] Fetching freetype2-2.5.3_2.txz: 100% 447 KB 457.6k/s 00:01 [jamclod] Fetching tiff-4.0.3_4.txz: 100% 790 KB 809.0k/s 00:01 [jamclod] Fetching jpeg-8_5.txz: 100% 282 KB 288.9k/s 00:01 [jamclod] Fetching jbigkit-2.1_1.txz: 100% 64 KB 65.4k/s 00:01 [jamclod] Fetching png-1.5.19.txz: 100% 226 KB 231.8k/s 00:01 [jamclod] Fetching p5-GD-Graph-1.48.txz: 100% 87 KB 89.4k/s 00:01 [jamclod] Fetching p5-Chart-2.4.6.txz: 100% 65 KB 66.4k/s 00:01 [jamclod] Fetching p5-TimeDate-2.30_1,1.txz: 100% 34 KB 35.1k/s 00:01 [jamclod] Fetching p5-PatchReader-0.9.6_1.txz: 100% 11 KB 11.4k/s 00:01 [jamclod] Fetching p5-DateTime-TimeZone-1.75.txz: 100% 273 KB 279.2k/s 00:01 [jamclod] Fetching p5-Params-Validate-1.13.txz: 100% 46 KB 46.7k/s 00:01 [jamclod] Fetching p5-Module-Implementation-0.09.txz: 100% 10 KB 10.6k/s 00:01 [jamclod] Fetching p5-Try-Tiny-0.18.txz: 100% 15 KB 15.1k/s 00:01 [jamclod] Fetching p5-Module-Runtime-0.014.txz: 100% 19 KB 19.4k/s 00:01 [jamclod] Fetching p5-List-AllUtils-0.09.txz: 100% 17 KB 17.5k/s 00:01 [jamclod] Fetching p5-Scalar-List-Utils-1.35,1.txz: 100% 38 KB 38.9k/s 00:01 [jamclod] Fetching p5-Class-Singleton-1.4.txz: 100% 10 KB 10.3k/s 00:01 [jamclod] Fetching p5-Class-Load-0.21.txz: 100% 15 KB 15.6k/s 00:01 [jamclod] Fetching p5-Package-Stash-0.37.txz: 100% 24 KB 24.8k/s 00:01 [jamclod] Fetching p5-Package-Stash-XS-0.28.txz: 100% 21 KB 21.8k/s 00:01 [jamclod] Fetching p5-Dist-CheckConflicts-0.11.txz: 100% 15 KB 14.9k/s 00:01 [jamclod] Fetching p5-Data-OptList-0.109.txz: 100% 14 KB 14.1k/s 00:01 [jamclod] Fetching p5-Sub-Install-0.928.txz: 100% 14 KB 14.5k/s 00:01 [jamclod] Fetching p5-Params-Util-1.07.txz: 100% 18 KB 18.4k/s 00:01 [jamclod] Fetching p5-DateTime-1.12.txz: 100% 95 KB 96.8k/s 00:01 [jamclod] Fetching p5-DateTime-Locale-0.45.txz: 100% 1 MB 1.5M/s 00:01 [jamclod] Fetching p5-DBI-1.631.txz: 100% 740 KB 757.8k/s 00:01 [jamclod] Fetching p5-Encode-Detect-1.01.txz: 100% 65 KB 66.1k/s 00:01 [jamclod] Fetching p5-DBD-mysql-4.028.txz: 100% 101 KB 103.9k/s 00:01 Checking integrity... done (0 conflicting) [jamclod] [1/69] Installing perl5-5.16.3_11: 100% [jamclod] [2/69] Installing expat-2.1.0_1: 100% [jamclod] [3/69] Installing freetype2-2.5.3_2: 100% [jamclod] [4/69] Installing jpeg-8_5: 100% [jamclod] [5/69] Installing jbigkit-2.1_1: 100% [jamclod] [6/69] Installing p5-Try-Tiny-0.18: 100% [jamclod] [7/69] Installing p5-Module-Runtime-0.014: 100% [jamclod] [8/69] Installing fontconfig-2.11.0_3,1: 100% Running fc-cache to build fontconfig cache... /usr/local/share/fonts: skipping, no such directory /usr/local/lib/X11/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /usr/local/share/fonts: skipping, no such directory /usr/local/lib/X11/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /var/db/fontconfig: cleaning cache directory /root/.cache/fontconfig: not cleaning non-existent cache directory /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded [jamclod] [9/69] Installing tiff-4.0.3_4: 100% [jamclod] [10/69] Installing png-1.5.19: 100% [jamclod] [11/69] Installing p5-Module-Implementation-0.09: 100% [jamclod] [12/69] Installing p5-Package-Stash-XS-0.28: 100% [jamclod] [13/69] Installing p5-Dist-CheckConflicts-0.11: 100% [jamclod] [14/69] Installing p5-Sub-Install-0.928: 100% [jamclod] [15/69] Installing p5-Params-Util-1.07: 100% [jamclod] [16/69] Installing p5-List-MoreUtils-0.33: 100% [jamclod] [17/69] Installing libgd-2.1.0_4,1: 100% [jamclod] [18/69] Installing p5-Scalar-List-Utils-1.35,1: 100% [jamclod] [19/69] Installing p5-Package-Stash-0.37: 100% [jamclod] [20/69] Installing p5-Data-OptList-0.109: 100% [jamclod] [21/69] Installing p5-AppConfig-1.66: 100% [jamclod] [22/69] Installing p5-HTML-Tagset-3.20: 100% [jamclod] [23/69] Installing p5-Test-NoWarnings-1.04_1: 100% [jamclod] [24/69] Installing p5-Email-Date-Format-1.004: 100% [jamclod] [25/69] Installing p5-Email-Address-1.90.5: 100% [jamclod] [26/69] Installing p5-MIME-Base64-3.14: 100% [jamclod] [27/69] Installing p5-GD-2.53: 100% [jamclod] [28/69] Installing p5-Params-Validate-1.13: 100% [jamclod] [29/69] Installing p5-List-AllUtils-0.09: 100% [jamclod] [30/69] Installing p5-Class-Singleton-1.4: 100% [jamclod] [31/69] Installing p5-Class-Load-0.21: 100% [jamclod] [32/69] Installing gdbm-1.11_2: 100% [jamclod] [33/69] Installing db5-5.3.28_2: 100% [jamclod] [34/69] Installing p5-Template-Toolkit-2.25: 100% [jamclod] [35/69] Installing p5-HTML-Parser-3.71: 100% [jamclod] [36/69] Installing p5-Math-Random-ISAAC-XS-1.004: 100% [jamclod] [37/69] Installing p5-Email-Simple-2.203: 100% [jamclod] [38/69] Installing p5-UNIVERSAL-require-0.15: 100% [jamclod] [39/69] Installing p5-Return-Value-1.666002_1: 100% [jamclod] [40/69] Installing p5-Class-Accessor-0.34: 100% [jamclod] [41/69] Installing p5-MIME-Types-2.09: 100% [jamclod] [42/69] Installing p5-Email-MessageID-1.405: 100% [jamclod] [43/69] Installing p5-Email-MIME-Encodings-1.315: 100% [jamclod] [44/69] Installing p5-Email-MIME-ContentType-1.01.7: 100% [jamclod] [45/69] Installing p5-GD-TextUtil-0.86_4: 100% [jamclod] [46/69] Installing p5-DateTime-TimeZone-1.75: 100% [jamclod] [47/69] Installing p5-DateTime-Locale-0.45: 100% [jamclod] [48/69] Installing pcre-8.35_1: 100% [jamclod] [49/69] Installing apr-1.5.1.1.5.4: 100% [jamclod] [50/69] Installing mysql55-client-5.5.40: 100% [jamclod] [51/69] Installing p5-Template-GD-2.66: 100% [jamclod] [52/69] Installing p5-HTML-Scrubber-0.11: 100% [jamclod] [53/69] Installing p5-CGI.pm-3.63,1: 100% [jamclod] [54/69] Installing p5-URI-1.64: 100% [jamclod] [55/69] Installing patchutils-0.3.3: 100% [jamclod] [56/69] Installing p5-Math-Random-ISAAC-1.004: 100% [jamclod] [57/69] Installing p5-Email-Send-2.199: 100% [jamclod] [58/69] Installing p5-Email-MIME-1.926: 100% [jamclod] [59/69] Installing p5-GD-Graph-1.48: 100% [jamclod] [60/69] Installing p5-Chart-2.4.6: 100% [jamclod] [61/69] Installing p5-TimeDate-2.30_1,1: 100% [jamclod] [62/69] Installing p5-PatchReader-0.9.6_1: 100% [jamclod] [63/69] Installing p5-DateTime-1.12: 100% [jamclod] [64/69] Installing p5-DBI-1.631: 100% [jamclod] [65/69] Installing p5-Encode-Detect-1.01: 100% ===> Creating users and/or groups. Using existing group 'www'. Using existing user 'www'. [jamclod] [66/69] Installing apache24-2.4.10_2: 100% /usr/local/share/examples/apache24/httpd.conf -> /usr/local/etc/apache24/httpd.conf ===> Creating users and/or groups. Creating group 'mysql' with gid '88'. Creating user 'mysql' with uid '88'. [jamclod] [67/69] Installing mysql55-server-5.5.40: 100% [jamclod] [68/69] Installing bugzilla44-4.4.6: 100% [jamclod] [69/69] Installing p5-DBD-mysql-4.028: 100% # ex /etc/rc.conf /etc/rc.conf: unmodified: line 5 :a mysql_enable="YES" . :x /etc/rc.conf: 6 lines, 131 characters # cd /usr/local # bin/mysql_install_db Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h jamclod password 'new-password' Alternatively you can run: ./bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd ./mysql-test ; perl mysql-test-run.pl Please report any problems at http://bugs.mysql.com/ # chmod 700 /var/db/mysql # ex /usr/local/etc/my.cnf /usr/local/etc/my.cnf: new file: line 1 :a [mysqld] max_allowed_packet=50M ft_min_word_len=2 . :x /usr/local/etc/my.cnf: new file: 3 lines, 50 characters # service mysql-server start Starting mysql. # cd /usr/local # bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] Y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! # /usr/local/bin/mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.5.40 Source distribution Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, -> CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, -> REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY -> 'Macks1mum-Duxz!' -> ; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01 sec) mysql> quit Bye # cd /usr/local/www/bugzilla # ./checksetup.pl * This is Bugzilla 4.4.6 on perl 5.16.3 * Running on FreeBSD 10.0-RELEASE-p10 FreeBSD 10.0-RELEASE-p10 #0: Mon Oct 20 12:42:25 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC Checking perl modules... Checking for CGI.pm (v3.51) ok: found v3.63 Checking for Digest-SHA (any) ok: found v5.71 Checking for TimeDate (v2.23) ok: found v2.24 Checking for DateTime (v0.28) ok: found v1.12 Checking for DateTime-TimeZone (v0.71) ok: found v1.75 Checking for DBI (v1.614) ok: found v1.631 Checking for Template-Toolkit (v2.22) ok: found v2.25 Checking for Email-Send (v2.04) ok: found v2.199 Checking for Email-MIME (v1.904) ok: found v1.926 Checking for URI (v1.37) ok: found v1.64 Checking for List-MoreUtils (v0.32) ok: found v0.33 Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004 Checking available perl DBD modules... Checking for DBD-Pg (v2.7.0) not found Checking for DBD-mysql (v4.001) ok: found v4.028 Checking for DBD-SQLite (v1.29) not found Checking for DBD-Oracle (v1.19) not found The following Perl modules are optional: Checking for GD (v1.20) ok: found v2.53 defined(@array) is deprecated at /usr/local/lib/perl5/site_perl/5.16/Chart/Base.pm line 181. (Maybe you should just omit the defined()?) defined(@array) is deprecated at /usr/local/lib/perl5/site_perl/5.16/Chart/Base.pm line 233. (Maybe you should just omit the defined()?) Checking for Chart (v2.1.0) ok: found v2.4.6 Checking for Template-GD (any) ok: found v1.56 Checking for GDTextUtil (any) ok: found v0.86 Checking for GDGraph (any) ok: found v1.48 Checking for MIME-tools (v5.406) not found Checking for libwww-perl (any) not found Checking for XML-Twig (any) not found Checking for PatchReader (v0.9.6) ok: found v0.9.6 Checking for perl-ldap (any) not found Checking for Authen-SASL (any) not found Checking for Net-SMTP-SSL (v1.01) not found Checking for RadiusPerl (any) not found Checking for SOAP-Lite (v0.712) not found Checking for XMLRPC-Lite (v0.712) not found Checking for JSON-RPC (any) not found Checking for JSON-XS (v2.0) not found Checking for Test-Taint (any) not found Checking for HTML-Parser (v3.67) ok: found v3.71 Checking for HTML-Scrubber (any) ok: found v0.11 Checking for Encode (v2.21) ok: found v2.44_01 Checking for Encode-Detect (any) ok: found v1.01 Checking for Email-Reply (any) not found Checking for HTML-FormatText-WithLinks (v0.13) not found Checking for TheSchwartz (v1.07) not found Checking for Daemon-Generic (any) not found Checking for File-Slurp (v9999.13) not found Checking for mod_perl (v1.999022) not found Checking for Apache-SizeLimit (v0.96) not found Checking for File-MimeInfo (any) not found Checking for IO-stringy (any) not found Checking for mod_headers (any) ok Checking for mod_expires (any) not found Checking for mod_env (any) ok *********************************************************************** * OPTIONAL MODULES * *********************************************************************** * Certain Perl modules are not required by Bugzilla, but by * * installing the latest version you gain access to additional * * features. * * * * The optional modules you do not have installed are listed below, * * with the name of the feature they enable. Below that table are the * * commands to install each module. * *********************************************************************** * MODULE NAME * ENABLES FEATURE(S) * *********************************************************************** * MIME-tools * Move Bugs Between Installations * * libwww-perl * Automatic Update Notifications * * XML-Twig * Move Bugs Between Installations, Automatic Update Notifications * * perl-ldap * LDAP Authentication * * Authen-SASL * SMTP Authentication * * Net-SMTP-SSL * SSL Support for SMTP * * RadiusPerl * RADIUS Authentication * * SOAP-Lite * XML-RPC Interface * * XMLRPC-Lite * XML-RPC Interface * * JSON-RPC * JSON-RPC Interface * * JSON-XS * Make JSON-RPC Faster * * Test-Taint * JSON-RPC Interface, XML-RPC Interface * * Email-Reply * Inbound Email * * HTML-FormatText-WithLinks * Inbound Email * * TheSchwartz * Mail Queueing * * Daemon-Generic * Mail Queueing * * File-Slurp * Mail Queueing * * mod_perl * mod_perl * * Apache-SizeLimit * mod_perl * * File-MimeInfo * Sniff MIME type of attachments * * IO-stringy * Sniff MIME type of attachments * *********************************************************************** * APACHE MODULES * *********************************************************************** * Normally, when Bugzilla is upgraded, all Bugzilla users have to * * clear their browser cache or Bugzilla will break. If you enable * * certain modules in your Apache configuration (usually called * * httpd.conf or apache2.conf) then your users will not have to clear * * their caches when you upgrade Bugzilla. The modules you need to * * enable are: * * * * mod_expires * * * *********************************************************************** COMMANDS TO INSTALL OPTIONAL MODULES: MIME-tools: /usr/local/bin/perl5.16.3 install-module.pl MIME::Parser libwww-perl: /usr/local/bin/perl5.16.3 install-module.pl LWP::UserAgent XML-Twig: /usr/local/bin/perl5.16.3 install-module.pl XML::Twig perl-ldap: /usr/local/bin/perl5.16.3 install-module.pl Net::LDAP Authen-SASL: /usr/local/bin/perl5.16.3 install-module.pl Authen::SASL Net-SMTP-SSL: /usr/local/bin/perl5.16.3 install-module.pl Net::SMTP::SSL RadiusPerl: /usr/local/bin/perl5.16.3 install-module.pl Authen::Radius SOAP-Lite: /usr/local/bin/perl5.16.3 install-module.pl SOAP::Lite XMLRPC-Lite: /usr/local/bin/perl5.16.3 install-module.pl XMLRPC::Lite JSON-RPC: /usr/local/bin/perl5.16.3 install-module.pl JSON::RPC JSON-XS: /usr/local/bin/perl5.16.3 install-module.pl JSON::XS Test-Taint: /usr/local/bin/perl5.16.3 install-module.pl Test::Taint Email-Reply: /usr/local/bin/perl5.16.3 install-module.pl Email::Reply HTML-FormatText-WithLinks: /usr/local/bin/perl5.16.3 install-module.pl HTML::FormatText::WithLinks TheSchwartz: /usr/local/bin/perl5.16.3 install-module.pl TheSchwartz Daemon-Generic: /usr/local/bin/perl5.16.3 install-module.pl Daemon::Generic File-Slurp: /usr/local/bin/perl5.16.3 install-module.pl File::Slurp mod_perl: /usr/local/bin/perl5.16.3 install-module.pl mod_perl2 Apache-SizeLimit: /usr/local/bin/perl5.16.3 install-module.pl Apache2::SizeLimit File-MimeInfo: /usr/local/bin/perl5.16.3 install-module.pl File::MimeInfo::Magic IO-stringy: /usr/local/bin/perl5.16.3 install-module.pl IO::Scalar To attempt an automatic install of every required and optional module with one command, do: /usr/local/bin/perl5.16.3 install-module.pl --all Reading ./localconfig... This version of Bugzilla contains some variables that you may want to change and adapt to your local settings. The following variables are new to ./localconfig since you last ran checksetup.pl: create_htaccess, webservergroup, use_suexec, db_driver, db_host, db_name, db_user, db_pass, db_port, db_sock, db_check, index_html, cvsbin, interdiffbin, diffpath, site_wide_secret Please edit the file ./localconfig and then re-run checksetup.pl to complete your installation. # chgrp www localconfig # chmod 640 localconfig # cp localconfig localconfig.orig # ex localconfig localconfig: unmodified: line 116 :%s/^\$use_suexec = 0/$use_suexec = 1/ $use_suexec = 1; :%s/^\$db_pass = ''/$db_pass = 'Macks1mum-Duxz!'/ $db_pass = 'Macks1mum-Duxz!'; :x localconfig: 116 lines, 5132 characters # diff localconfig localconfig.orig 44c44 < $use_suexec = 1; --- > $use_suexec = 0; 67c67 < $db_pass = 'Macks1mum-Duxz!'; --- > $db_pass = ''; # cd /usr/local/www/bugzilla # ./checksetup.pl * This is Bugzilla 4.4.6 on perl 5.16.3 * Running on FreeBSD 10.0-RELEASE-p10 FreeBSD 10.0-RELEASE-p10 #0: Mon Oct 20 12:42:25 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC Checking perl modules... Checking for CGI.pm (v3.51) ok: found v3.63 Checking for Digest-SHA (any) ok: found v5.71 Checking for TimeDate (v2.23) ok: found v2.24 Checking for DateTime (v0.28) ok: found v1.12 Checking for DateTime-TimeZone (v0.71) ok: found v1.75 Checking for DBI (v1.614) ok: found v1.631 Checking for Template-Toolkit (v2.22) ok: found v2.25 Checking for Email-Send (v2.04) ok: found v2.199 Checking for Email-MIME (v1.904) ok: found v1.926 Checking for URI (v1.37) ok: found v1.64 Checking for List-MoreUtils (v0.32) ok: found v0.33 Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004 Checking available perl DBD modules... Checking for DBD-Pg (v2.7.0) not found Checking for DBD-mysql (v4.001) ok: found v4.028 Checking for DBD-SQLite (v1.29) not found Checking for DBD-Oracle (v1.19) not found The following Perl modules are optional: Checking for GD (v1.20) ok: found v2.53 defined(@array) is deprecated at /usr/local/lib/perl5/site_perl/5.16/Chart/Base.pm line 181. (Maybe you should just omit the defined()?) defined(@array) is deprecated at /usr/local/lib/perl5/site_perl/5.16/Chart/Base.pm line 233. (Maybe you should just omit the defined()?) Checking for Chart (v2.1.0) ok: found v2.4.6 Checking for Template-GD (any) ok: found v1.56 Checking for GDTextUtil (any) ok: found v0.86 Checking for GDGraph (any) ok: found v1.48 Checking for MIME-tools (v5.406) not found Checking for libwww-perl (any) not found Checking for XML-Twig (any) not found Checking for PatchReader (v0.9.6) ok: found v0.9.6 Checking for perl-ldap (any) not found Checking for Authen-SASL (any) not found Checking for Net-SMTP-SSL (v1.01) not found Checking for RadiusPerl (any) not found Checking for SOAP-Lite (v0.712) not found Checking for XMLRPC-Lite (v0.712) not found Checking for JSON-RPC (any) not found Checking for JSON-XS (v2.0) not found Checking for Test-Taint (any) not found Checking for HTML-Parser (v3.67) ok: found v3.71 Checking for HTML-Scrubber (any) ok: found v0.11 Checking for Encode (v2.21) ok: found v2.44_01 Checking for Encode-Detect (any) ok: found v1.01 Checking for Email-Reply (any) not found Checking for HTML-FormatText-WithLinks (v0.13) not found Checking for TheSchwartz (v1.07) not found Checking for Daemon-Generic (any) not found Checking for File-Slurp (v9999.13) not found Checking for mod_perl (v1.999022) not found Checking for Apache-SizeLimit (v0.96) not found Checking for File-MimeInfo (any) not found Checking for IO-stringy (any) not found Checking for mod_headers (any) ok Checking for mod_expires (any) not found Checking for mod_env (any) ok *********************************************************************** * OPTIONAL MODULES * *********************************************************************** * Certain Perl modules are not required by Bugzilla, but by * * installing the latest version you gain access to additional * * features. * * * * The optional modules you do not have installed are listed below, * * with the name of the feature they enable. Below that table are the * * commands to install each module. * *********************************************************************** * MODULE NAME * ENABLES FEATURE(S) * *********************************************************************** * MIME-tools * Move Bugs Between Installations * * libwww-perl * Automatic Update Notifications * * XML-Twig * Move Bugs Between Installations, Automatic Update Notifications * * perl-ldap * LDAP Authentication * * Authen-SASL * SMTP Authentication * * Net-SMTP-SSL * SSL Support for SMTP * * RadiusPerl * RADIUS Authentication * * SOAP-Lite * XML-RPC Interface * * XMLRPC-Lite * XML-RPC Interface * * JSON-RPC * JSON-RPC Interface * * JSON-XS * Make JSON-RPC Faster * * Test-Taint * JSON-RPC Interface, XML-RPC Interface * * Email-Reply * Inbound Email * * HTML-FormatText-WithLinks * Inbound Email * * TheSchwartz * Mail Queueing * * Daemon-Generic * Mail Queueing * * File-Slurp * Mail Queueing * * mod_perl * mod_perl * * Apache-SizeLimit * mod_perl * * File-MimeInfo * Sniff MIME type of attachments * * IO-stringy * Sniff MIME type of attachments * *********************************************************************** * APACHE MODULES * *********************************************************************** * Normally, when Bugzilla is upgraded, all Bugzilla users have to * * clear their browser cache or Bugzilla will break. If you enable * * certain modules in your Apache configuration (usually called * * httpd.conf or apache2.conf) then your users will not have to clear * * their caches when you upgrade Bugzilla. The modules you need to * * enable are: * * * * mod_expires * * * *********************************************************************** COMMANDS TO INSTALL OPTIONAL MODULES: MIME-tools: /usr/local/bin/perl5.16.3 install-module.pl MIME::Parser libwww-perl: /usr/local/bin/perl5.16.3 install-module.pl LWP::UserAgent XML-Twig: /usr/local/bin/perl5.16.3 install-module.pl XML::Twig perl-ldap: /usr/local/bin/perl5.16.3 install-module.pl Net::LDAP Authen-SASL: /usr/local/bin/perl5.16.3 install-module.pl Authen::SASL Net-SMTP-SSL: /usr/local/bin/perl5.16.3 install-module.pl Net::SMTP::SSL RadiusPerl: /usr/local/bin/perl5.16.3 install-module.pl Authen::Radius SOAP-Lite: /usr/local/bin/perl5.16.3 install-module.pl SOAP::Lite XMLRPC-Lite: /usr/local/bin/perl5.16.3 install-module.pl XMLRPC::Lite JSON-RPC: /usr/local/bin/perl5.16.3 install-module.pl JSON::RPC JSON-XS: /usr/local/bin/perl5.16.3 install-module.pl JSON::XS Test-Taint: /usr/local/bin/perl5.16.3 install-module.pl Test::Taint Email-Reply: /usr/local/bin/perl5.16.3 install-module.pl Email::Reply HTML-FormatText-WithLinks: /usr/local/bin/perl5.16.3 install-module.pl HTML::FormatText::WithLinks TheSchwartz: /usr/local/bin/perl5.16.3 install-module.pl TheSchwartz Daemon-Generic: /usr/local/bin/perl5.16.3 install-module.pl Daemon::Generic File-Slurp: /usr/local/bin/perl5.16.3 install-module.pl File::Slurp mod_perl: /usr/local/bin/perl5.16.3 install-module.pl mod_perl2 Apache-SizeLimit: /usr/local/bin/perl5.16.3 install-module.pl Apache2::SizeLimit File-MimeInfo: /usr/local/bin/perl5.16.3 install-module.pl File::MimeInfo::Magic IO-stringy: /usr/local/bin/perl5.16.3 install-module.pl IO::Scalar To attempt an automatic install of every required and optional module with one command, do: /usr/local/bin/perl5.16.3 install-module.pl --all Reading ./localconfig... Checking for DBD-mysql (v4.001) ok: found v4.028 Checking for MySQL (v5.0.15) ok: found v5.5.40 Creating database bugs... Adding new table bz_schema... Initializing bz_schema... Creating tables... Converting attach_data maximum size to 100G... Setting up choices for standard drop-down fields: priority bug_status rep_platform resolution bug_severity op_sys Creating ./data/attachments directory... Creating ./data/db directory... Creating ./data/extensions directory... Creating ./data/mining directory... Creating ./data/webdot directory... Creating ./extensions directory... Creating ./skins/custom directory... Creating ./data/extensions/additional... Creating ./data/mailer.testfile... Creating ./Bugzilla/.htaccess... Creating ./data/.htaccess... Creating ./data/attachments/.htaccess... Creating ./data/webdot/.htaccess... Creating ./graphs/.htaccess... Creating ./lib/.htaccess... Creating ./template/.htaccess... Creating contrib/.htaccess... Creating t/.htaccess... Creating xt/.htaccess... Precompiling templates...done. Fixing file permissions... Initializing "Dependency Tree Changes" email_setting ... Initializing "Product/Component Changes" email_setting ... Marking closed bug statuses as such... Creating default classification 'Unclassified'... Setting up foreign keys... Setting up the default status workflow... Creating default groups... Setting up user preferences... Looks like we don't have an administrator set up yet. Either this is your first time using Bugzilla, or your administrator's privileges might have accidentally been deleted. Enter the e-mail address of the administrator: root@jamclod.kr0.net Enter the real name of the administrator: George Washington Enter a password for the administrator account: Please retype the password to verify: root@jamclod.kr0.net is now set up as an administrator. Creating initial dummy product 'TestProduct'... Now that you have installed Bugzilla, you should visit the 'Parameters' page (linked in the footer of the Administrator account) to ensure it is set up as you wish - this includes setting the 'urlbase' option to the correct URL. checksetup.pl complete. # /usr/local/bin/mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 Server version: 5.5.40 Source distribution Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use bugs; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> ALTER TABLE attachments AVG_ROW_LENGTH=1000000, MAX_ROWS=100000; Query OK, 0 rows affected (0.07 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> quit Bye # ex /etc/rc.conf /etc/rc.conf: unmodified: line 6 :a apache24_enable="YES" . :x /etc/rc.conf: 7 lines, 153 characters # cd /usr/local/etc/apache24 # cp httpd.conf httpd.conf.dist # ex httpd.conf httpd.conf: unmodified: line 511 :%s/^#LoadModule cgi_module/LoadModule cgi_module/ LoadModule cgi_module libexec/apache24/mod_cgi.so :%s/^ServerAdmin you@example.com/ServerAdmin root@jamclod.kr0.net/ ServerAdmin root@jamclod.kr0.net :%s/^DocumentRoot "\/usr\/local\/www\/apache24\/data"/DocumentRoot "\/usr\/local\/www\/bugzilla"/ DocumentRoot "/usr/local/www/bugzilla" :a AddHandler cgi-script .cgi Options +ExecCGI DirectoryIndex index.cgi index.html AllowOverride Limit FileInfo Indexes Options Require all granted . :x httpd.conf: 518 lines, 19627 characters # diff httpd.conf httpd.conf.dist 141c141 < LoadModule cgi_module libexec/apache24/mod_cgi.so --- > #LoadModule cgi_module libexec/apache24/mod_cgi.so 188c188 < ServerAdmin root@jamclod.kr0.net --- > ServerAdmin you@example.com 221,228c221 < DocumentRoot "/usr/local/www/bugzilla" < < AddHandler cgi-script .cgi < Options +ExecCGI < DirectoryIndex index.cgi index.html < AllowOverride Limit FileInfo Indexes Options < Require all granted < --- > DocumentRoot "/usr/local/www/apache24/data" # service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24. # # Now, use Bugzilla's Web-based GUI to lock it down. # # Copyright 2014, Robroy Gregg.