In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
system: Centos 7.6(yum source accessible)
Buzilla: 5.0.4
Mariadb-server: 5.5.60
Close selinux Firewall
Close selinux (permissive can be changed to disable)
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/g' /etc/selinux/config
Close Firewall
systemcstop firewalld.service
systemc disable firewalld.service
Enable EPEL Warehouse
yum install deltarpm epel-release
yum update
If the kernel is updated, restart the machine.
Installation environment using dependency packages
yum install mod_ssl mod_ssl mod_perl mod_perl-deve
Install apache service and start service
Check if apache service is installed
[root@bugzillatest bugzilla]# rpm -qa |grep httpd
httpd-2.4.6-88.el7.centos.x86_64
httpd-devel-2.4.6-88.el7.centos.x86_64
httpd-tools-2.4.6-88.el7.centos.x86_64
Apache already exists, then do not need to install, directly start apache, if not installed then you need to use yum install httpd installation
systemctl start httpd.service
systemctl status httpd.service #View status
systemctl enable httpd.service #Set startup
install MariaDB
Centos7 introduces MariaDB to replace MYSQL database, Maria as an open source database system, the use effect is comparable to MYSQL
yum install mariadb-server mariadb mariadb-devel php-mysql
systemctl start mariadb.service #Start service
systemctl status mariadb.service #View status
systemctl enable mariadb.service #set boot
Set Database Administrator Password
mysql -u root
MariaDB [ (none) ]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD ('myrootpassword '); #Replace myrootpassword with your password
Query OK, 0 rows affected (0.00 sec)
MariaDB [ (none) ]> \q #Exit database
Bye
Test with root login
mysql -u root -p
Enter password: myrootpassword
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 5.5.41-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [ (none) ]> \q
Bye
MariaDB sets max_allowed_packet (maximum allowed packet size)
Bugzilla requires MariaDB to configure max_allowed_packet with minimum size in order to prevent the maximum packet size from overflowing during a packet transfer between the server and client.
vim /etc/my.cnf
Add the following to the [mysqld] section:
Bugzillamaximum allowed size of an attachment upload
#change this if you need more!
max_allowed_packet=4M #Set maximum transfer size 4M
Restart MariaDB service
systemctl restart mariadb.service
Install Bugzilla dependency packages (about 1300)
yum install gcc gcc-c++ graphviz graphviz-devel patchutils gd gd-devel wget perl* -x perl-homedir
Install Bugzilla
(1)Configuration database:
mysql -u root -p
Enter password: myrootpassword
MariaDB [ (none) ]> create database bugs;
Query OK, 1 row affected (0.00 sec)
MariaDB [ (none) ]> grant all on bugs.* to bugs@localhost identified by 'youpassword';#replace youpassword with your password
Query OK, 0 row affected (0.00 sec)
MariaDB [ (none) ]> \q
Bye
Download and install the latest Bugzilla packages
cd /mnt
wget https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.4.tar.gz
tar -zxvf bugzilla-5.0.4.tar.gz
mkdir /var/www/html/bugzilla
cp -R ./ bugzilla-5.0.4/* /var/www/html/bugzilla/ #Move bugzilla-5.0 to/var/www/html/bugzilla/,/var/www/html/is the default path of bugzilla, Do not move to this path, The browser input URL can not start bugzilla
Check bugzilla for missing components and perform automatic installation
cd /var/www/html/bugzilla
./ checksetup.pl #After executing this command, you can see the missing components and install them as prompted
/usr/bin/perl install-module.pl--all #Install missing components automatically
./ checksetup.pl #Check again to see if there are any missing components. In principle, everything should be installed except DBD-Oracle.
The following text appears, indicating that our configuration file is somewhat inconsistent with the previous settings
Compile./ localconfig, configured to our own environment (mainly database name, password and consistent with the previous)
vim ./ localconfig
Here's my profile: (Ps: Need to make sure bugzilla database name and password are the same as what you created)
$create_htaccess = 1;
$webservergroup = 'apache';
$use_suexec = 0;
$db_driver = 'mysql';
$db_host = 'localhost';
$db_name = 'bugs';
$db_user = 'bugs';
$db_pass = 'youpassword'; #corresponds to the password you entered in step 9
$db_port = 0;
$db_sock = '';
$db_check = 1;
$db_mysql_ssl_ca_file = '';
$db_mysql_ssl_ca_path = '';
$db_mysql_ssl_client_cert = '';
$db_mysql_ssl_client_key = '';
$index_html = 0;
$interdiffbin = '/usr/bin/interdiff';
$diffpath = '/usr/bin';
$site_wide_secret = '2qCKjZhkZZRFuy1ueKK6sho8OO1tuXdHp2fihYSG1F127wu0qpjXjjHnVsMBaeTN';
Now let's run the installation script again. It's time to check the correct database configuration and start accessing the MariaDB server for final setup.
Complete Bugzilla registration information
./ checksetup.pl
Create Bugzilla Installation Script
sed -i 's/^Options -Indexes$/#Options -Indexes/g' ./ Bugzilla/.htaccess
Configure Bugzilla to install Apache services
Apache does not recognize Bugzilla by default, so we can introduce our Bugzilla web system to Apache by creating the file/etc/httpd/conf.d/bugzilla.conf
vim /etc/httpd/conf.d/bugzilla.conf
Add the following information:
#/etc/httpd/conf.d/bugzilla.conf
DocumentRoot /var/www/html/bugzilla
ServerName www.szmisbugzilla.com
ErrorLog logs/bugzilla-error_log
CustomLog logs/bugzilla-access_log common
AddHandler cgi-script .cgi
Options ExecCGI Indexes FollowSymLinks
DirectoryIndex index.cgi index.html
AllowOverride None
Restart Apache Services:
systemctl restart httpd.service
At this point, we have successfully deployed Bugzilla system, open the web page, enter http://ip-of-you-server,(ip-of-you-server is your centos7 host ip) We can see the following interface
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.