In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install Bugzilla on FreeBSD related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will have a harvest after reading this article on how to install Bugzilla on FreeBSD, let's take a look at it.
Bugzilla is an open source defect tracking system (Bug-Tracking System), which can manage the entire life cycle of defect submission (new), resolve (repair), close (shutdown), and so on.
In this tutorial, we will install bugzilla 5.0, use apache as the Web server, enable SSL for it, and then install mysql 5.1 on freebsd 10.2 as the database system.
Prepare for
FreeBSD 10.2 64-bit system
Root permission is root
Update the system
Log in to the freebsd server with ssh and update the software library:
Sudo sufreebsd-update fetchfreebsd-update install
Install and configure Apache
In this step, we will use the pkg command to install apache from the freebsd software library, then edit the "httpd.conf" file in the apache24 directory to configure apache to enable SSL and CGI support, and install apache with the pkg command:
Pkg install apache24
Go to the apache directory and edit the "httpd.conf" file with the nano editor:
Cd / usr/local/etc/apache24nano-c httpd.conf uncomment the following lines: # Line 70, LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so#, line 89, LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so#, line 117, LoadModule expires_module libexec/apache24/mod_expires.so#, line 141, enable SSLLoadModule ssl_module libexec/apache24/mod_ssl.so# line 162, support cgiLoadModule cgi_module libexec/apache24/mod_cgi.so# line 174 Enable line 219 of mod_rewriteLoadModule rewrite_module libexec/apache24/mod_rewrite.so#, configure ServerName 127.0.0.1 with server name 80
Save and exit, and then we need to install mod perl from the freebsd library and enable it:
Pkg install ap24-mod_perl2
Enable mod_perl, edit the "httpd.conf" file, and add the "Loadmodule" line:
Nano-c httpd.conf add line: # line 175 LoadModule perl_module libexec/apache24/mod_perl.so
Save and exit, and before enabling apache, use the sysrc command to add the following lines as boot startup items:
Sysrc apache24_enable=yesservice apache24 start
Install and configure the MySQL database
We will use mysql 5.1 as the back-end database and support the perl module, and install mysql 5.1 with the pkg command:
Pkg install p5-DBD-mysql51 mysql51-server mysql51-client
Now we will set the mysql service to boot, then configure the root password for mysql, and run the following command to do all of the above:
Sysrc mysql_enable=yesservice mysql-server startmysqladmin-u root password aqwe123
* * Note: * * here the mysql password is: aqwe123
After all the above steps are completed, we log in to mysql shell with root, and then create a new database and user for the bugzilla installation.
Log in to mysql shell with the following command:
Mysql-u root-ppassword: aqwe123
Add a database:
Create database bugzilladb;create user bugzillauser@localhost identified by 'bugzillauser@';grant all privileges on bugzilladb.* to bugzillauser@localhost identified by' bugzillauser@';flush privileges;\ Q
Bugzilla's database is created with the name "bugzilladb", and the user name and password are "bugzillauser" and "bugzillauser@", respectively.
Generate a new SSL certificate
Generate a new self-signed SSL certificate in the "ssl" directory of the bugzilla site, go to the apache24 directory, and create a new directory "ssl" here:
Cd / usr/local/etc/apache24/mkdir ssl; cd ssl
Next, use the openssl command to generate the certificate file, and then change its permissions:
Sudo openssl req-x509-nodes-days 365-newkey rsa:2048-keyout / usr/local/etc/apache24/ssl/bugzilla.key-out / usr/local/etc/apache24/ssl/bugzilla.crtchmod 600 *
Configure virtual host
We will install bugzilla in the "/ usr/local/www/bugzilla" directory, so we must create a new virtual host configuration for it, go to the apache directory and create a new directory called "vhost" for the virtual host file:
Cd / usr/local/etc/apache24/mkdir vhost; cd vhost
Now create a new file "bugzilla.conf" for the virtual host file:
Nano-c bugzilla.conf
Paste the following configuration in:
ServerName mybugzilla.meServerAlias www.mybuzilla.meDocumentRoot / usr/local/www/bugzillaRedirect permanent / https://mybugzilla.me/Listen 443ServerName mybugzilla.meDocumentRoot / usr/local/www/bugzillaErrorLog "/ var/log/mybugzilla.me-error_log" CustomLog "/ var/log/mybugzilla.me-access_log" commonSSLEngine OnSSLCertificateFile / usr/local/etc/apache24/ssl/bugzilla.crtSSLCertificateKeyFile / usr/local/etc/apache24/ssl/bugzilla.keyAddHandler cgi-script .cgiOptions + ExecCGIDirectoryIndex index.cgi index.htmlAllowOverride Limit FileInfo Indexes OptionsRequire all granted
After saving and exiting, create a new directory for the bugzilla installation, add the virtual host configuration in the httpd.conf file to enable the bugzilla virtual host, and run the following command under the "apache24" directory:
At the end of the mkdir-p / usr/local/www/bugzillacd / usr/local/etc/apache24/nano-c httpd.conf text, add the following configuration: Include etc/apache24/vhost/*.conf
Save and exit, now use the "apachectl" command to test the configuration of apache and restart it:
Apachectl configtestservice apache24 restart
Install Bugzilla
We can install bugzilla manually by downloading the source, or we can install it from the freebsd library, in which we will install bugzilla from the freebsd library with the pkg command:
Pkg install bugzilla50
After all the above steps have been completed, go to the bugzilla installation directory and install all the perl modules required by bugzilla.
Cd / usr/local/www/bugzilla./install-module-- all
Wait until everything is complete, which will take some time. Next, execute the "checksetup.pl" file in the bugzilla installation directory to generate the configuration file "localconfig".
. / checksetup.pl
You will see a message about the database configuration error. You have to edit the "localconfig" file with the nano editor:
Nano-c localconfig
Now add the database created in step 3.
# Line 57
The first line
Db_user = 'bugzillauser'
# Line 67
$db_pass = 'bugzillauser@'
Save and exit, then run "checksetup.pl" again:
. / checksetup.pl
You will be prompted to enter your email name and administrator account. All you have to do is enter your email address, user name and password.
Finally, we need to change the owner of the installation directory to "www" and restart apache with a service command:
Cd / usr/local/www/chown-R www:www bugzillaservice apache24 restart
Now that Bugzilla is installed, you can view it by visiting mybugzilla.me and will redirect to the https connection.
Bugzilla homepage:
Bugzilla admin panel:
This is the end of the article on "how to install Bugzilla on FreeBSD". Thank you for reading! I believe you all have a certain understanding of "how to install Bugzilla on FreeBSD". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.