Как установить Bugzilla на Debian 11 | Debian 10
В этом руководстве мы покажем вам, как установить Bugzilla на Debian 11. Для тех из вас, кто не знал, Bugzilla — это бесплатная система отслеживания ошибок с открытым исходным кодом, которая позволяет нам отслеживать ошибки и сотрудничать с разработчиками и другими пользователями. команды в нашей организации. Системы отслеживания дефектов позволяют командам разработчиков эффективно отслеживать нерешенные ошибки, проблемы, проблемы, улучшения и другие запросы на изменение в своих продуктах.
В этой статье предполагается, что у вас есть хотя бы базовые знания о Linux, вы знаете, как использовать оболочку, и, самое главное, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам, чтобы получить привилегии root. Я покажу вам пошаговую установку Bugzilla
Bug Tracker на Debian 11 (Bullseye).
Установите Bugzilla на Debian 11 Bullseye
Шаг 1. Прежде чем мы установим какое-либо программное обеспечение, важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:
Шаг 2. Установка Perl и других зависимостей пакетов.
Теперь установите все необходимые модули Perl, используя следующую команду:
Шаг 3. Установка веб-сервера Apache.
По умолчанию пакет веб-сервера Apache включен в репозиторий Debian. Выполните следующую команду, чтобы установить его:
Проверьте сборку и версию Apache:
После установки Apache проверьте статус службы с помощью следующей команды:
Вы также можете проверить установку Apache, просмотрев URL-адрес . Вы должны увидеть тестовую страницу Apache на следующем экране: http : //your-ip-address

Шаг 4. Установка сервера базы данных MariaDB.
Чтобы начать установку MariaDB, выполните следующие действия:
После завершения установки проверьте, работает ли сервер базы данных, введя команду:
По умолчанию MariaDB не защищен. Вы можете защитить MariaDB с помощью mysql_secure_installation скрипта. вы должны внимательно прочитать и ниже каждый шаг, который установит пароль root, удалит анонимных пользователей, запретит удаленный вход root, а также удалит тестовую базу данных и доступ к защищенной базе данных MariaDB:
Настройте его следующим образом:
Чтобы войти в MariaDB, используйте следующую команду (обратите внимание, что это та же самая команда, которую вы использовали бы для входа в базу данных MySQL):
Далее вам нужно будет создать базу данных и пользователя для Bugzilla:
Шаг 5. Установка Bugzilla на Debian 11.
По умолчанию Bugzilla недоступна в базовом репозитории Debian 11. Теперь мы загружаем и выполняем скрипт установки, используя следующую команду ниже:
Затем создайте каталог для Bugzilla и извлеките загруженный файл:
После этого отредактируйте localconfig файл внутри каталога Bugzilla:
Добавьте следующую конфигурацию:
Сохраните и закройте файл, затем выполните следующую команду, чтобы настроить Bugzilla:
Затем выполните следующую команду, чтобы установить все необходимые модули Perl:
После этого установите права собственности на каталог Bugzilla : www — data
Затем проверьте настройку Bugzilla с помощью следующей команды:
Шаг 6. Настройте Apache для Bugzilla.
Теперь мы создаем файл конфигурации виртуального хоста Apache для Bugzilla:
Добавьте следующие строки:
Сохраните и закройте файл, затем перезапустите службу Apache, чтобы применить изменения конфигурации:
Шаг 7. Доступ к веб-интерфейсу Bugzilla.
После успешной установки откройте веб-браузер и войдите в веб-интерфейс Bugzilla, используя URL-адрес . Вы должны увидеть следующий экран: http : //your-domian.com

Поздравляем! Вы успешно установили Bugzilla. Благодарим за использование этого руководства по установке последней версии Bugzilla Bug Tracker в Debian 11 Bullseye. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт Bugzilla .
Как установить багзиллу
If you just want to use Bugzilla, you do not need to install it. None of this chapter is relevant to you. Ask your Bugzilla administrator for the URL to access it from your web browser.
The Bugzilla server software is usually installed on Linux or Solaris. If you are installing on another OS, check Section 2.5 before you start your installation to see if there are any special instructions.
This guide assumes that you have administrative access to the Bugzilla machine. It not possible to install and run Bugzilla itself without administrative access except in the very unlikely event that every single prerequisite is already installed.
The installation process may make your machine insecure for short periods of time. Make sure there is a firewall between you and the Internet.
You are strongly recommended to make a backup of your system before installing Bugzilla (and at regular intervals thereafter :-).
In outline, the installation proceeds as follows:
Configure all of the above.
Any machine that doesn’t have Perl on it is a sad machine indeed. If you don’t have it and your OS doesn’t provide official packages, visit http://www.perl.org . Although Bugzilla runs with Perl 5.8.1, it’s a good idea to be using the latest stable version.
Bugzilla supports MySQL, PostgreSQL and Oracle as database servers. You only require one of these systems to make use of Bugzilla.
If you don’t have it and your OS doesn’t provide official packages, visit http://www.mysql.com . You need MySQL version 5.0.15 or higher.
Many of the binary versions of MySQL store their data files in /var . On some Unix systems, this is part of a smaller root partition, and may not have room for your bug database. To change the data directory, you have to build MySQL from source yourself, and set it as an option to configure .
If you install from something other than a packaging/installation system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe (Windows Executable), or .msi (Windows Installer), make sure the MySQL server is started when the machine boots.
If you install from something other than a packaging/installation system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe (Windows Executable), or .msi (Windows Installer), make sure the PostgreSQL server is started when the machine boots.
select * from v$version
(you first have to log in into your DB)
If you don’t have it and your OS doesn’t provide official packages, visit http://www.oracle.com/ . You need Oracle version 10.02.0 or higher.
If you install from something other than a packaging/installation system, such as .rpm (RPM Package Manager), .deb (Debian Package), .exe (Windows Executable), or .msi (Windows Installer), make sure the Oracle server is started when the machine boots.
Installed Version Test: view the default welcome page at http://<your-machine>/
If you don’t have Apache and your OS doesn’t provide official packages, visit http://httpd.apache.org/ .
The default Bugzilla distribution is NOT designed to be placed in a cgi-bin directory. This includes any directory which is configured using the ScriptAlias directive of Apache.
Once all the files are in a web accessible directory, make that directory writable by your web server’s user. This is a temporary step until you run the checksetup.pl script, which locks down your installation.
Bugzilla’s installation process is based on a script called checksetup.pl . The first thing it checks is whether you have appropriate versions of all the required Perl modules. The aim of this section is to pass this check. When it passes, proceed to Section 2.2 .
At this point, you need to su to root. You should remain as root until the end of the install. To check you have the required modules, run:
bash# ./checksetup.pl —check-modules
checksetup.pl will print out a list of the required and optional Perl modules, together with the versions (if any) installed on your machine. The list of required modules is reasonably long; however, you may already have several of them installed.
bash# perl install-module.pl <modulename>
Many people complain that Perl modules will not install for them. Most times, the error messages complain that they are missing a file in «@INC» . Virtually every time, this error is due to permissions being set too restrictively for you to compile Perl modules or not having the necessary Perl development libraries installed on your system. Consult your local UNIX systems administrator for help solving these permissions issues; if you are the local UNIX sysadmin, please consult the newsgroup/mailing list for further assistance or hire someone to help you out.
If you are using a package-based system, and attempting to install the Perl modules from CPAN, you may need to install the «development» packages for MySQL and GD before attempting to install the related Perl modules. The names of these packages will vary depending on the specific distribution you are using, but are often called <packagename>-devel .
Here is a complete list of modules and their minimum versions. Some modules have special installation notes, which follow.
Required Perl modules:
DBD::mysql (4.001) if using MySQL
DBD::Pg (1.45) if using PostgreSQL
DBD::Oracle (1.19) if using Oracle
GD (1.20) for bug charting
Template::Plugin::GD::Image (any) for Graphical Reports
Chart::Lines (2.1.0) for bug charting
GD::Graph (any) for bug charting
GD::Text (any) for bug charting
XML::Twig (any) for bug import/export
MIME::Parser (5.406) for bug import/export
LWP::UserAgent (any) for Automatic Update Notifications
PatchReader (0.9.6) for pretty HTML view of patches
Net::LDAP (any) for LDAP Authentication
Authen::SASL (any) for SASL Authentication
Authen::Radius (any) for RADIUS Authentication
SOAP::Lite (0.712) for the web service interface
JSON::RPC (any) for the JSON-RPC interface
Test::Taint (any) for the web service interface
HTML::Parser (3.67) for More HTML in Product/Group Descriptions
HTML::Scrubber (any) for More HTML in Product/Group Descriptions
Email::MIME::Attachment::Stripper (any) for Inbound Email
Email::Reply (any) for Inbound Email
TheSchwartz (any) for Mail Queueing
Daemon::Generic (any) for Mail Queueing
mod_perl2 (1.999022) for mod_perl
Bugzilla is dependent on the availability of an e-mail system for its user authentication and for other tasks.
This is not entirely true. It is possible to completely disable email sending, or to have Bugzilla store email messages in a file instead of sending them. However, this is mainly intended for testing, as disabling or diverting email on a production machine would mean that users could miss important events (such as bug changes or the creation of new accounts).
For more information, see the «mail_delivery_method» parameter in Section 3.1 .
On Linux, any Sendmail-compatible MTA (Mail Transfer Agent) will suffice. Sendmail, Postfix, qmail and Exim are examples of common MTAs. Sendmail is the original Unix MTA, but the others are easier to configure, and therefore many people replace Sendmail with Postfix or Exim. They are drop-in replacements, so Bugzilla will not distinguish between them.
If you are using Sendmail, version 8.7 or higher is required. If you are using a Sendmail-compatible MTA, it must be congruent with at least version 8.7 of Sendmail.
Consult the manual for the specific MTA you choose for detailed installation instructions. Each of these programs will have their own configuration files where you must configure certain parameters to ensure that the mail is delivered properly. They are implemented as services, and you should ensure that the MTA is in the auto-start list of services for the machine.
If a simple mail sent with the command-line ‘mail’ program succeeds, then Bugzilla should also be fine.
It is now possible to run the Bugzilla software under mod_perl on Apache. mod_perl has some additional requirements to that of running Bugzilla under mod_cgi (the standard and previous way).
Установка Bugzilla
![]()
Система является приложением, которое реализовано на языке Perl, и использует для хранения данных СУБД (MySQL, PostgreSQL или Oracle). Для установки потребуются:
— веб-сервер Apache (apache.org);
— интерпретатор языка Perl (для Linux это просто Perl,
для Windows — ActivePerl);
— СУБД (например, MySQL);
— почтовый сервер (например, Sendmail или внешний интернет-сервер);
— подключение к Интернету.
Установка системы потребует некоторой сноровки. Для начала следует распаковать заархивированные установочные файлы. Для этого скачиваем на страничке http://macsoft.pro/arhivatory/ (http://macsoft.pro/arhivatory/) один из архиваторов (я рекомендую Вам WinZip). Рассматриваемая версия системы была установлена на Microsoft Windows (Vista Home Basic), для чего использовалась связка Apache + ActivePerl + MySQL. Для успешной инсталляции на этой системе вам потребуется поместить приложения ActivePerl и Bugzilla на несистемный раздел диска или отключить UAC. Вообще инструкцию по установке Bugzilla на Windows можно найти на странице https://wiki.mozilla.org/Bugzilla:Win32Install. Также возможна работа в связке 11S + ActivePerl + MySQL.
На других платформах вам могут и не потребоваться специальные инструкции по установке благодаря заботе создателей дистрибутивов. Например, в Mandriva Linux 2008 (и более поздних версиях) вы можете установить Bugzilla в несколько щелчков мыши через центр управления — при этом будут установлены все необходимые компоненты, а вам останется только настроить систему.
Для системы доступна локализация на русский язык, которая доступна на сайте разработчиков Bugzilla. Пакет локализации включает в себя локализацию интерфейса и справки — для его установки потребуется лишь распаковать архив с локализацией в директорию, в которую у вас установлено приложение. После установки всех пакетов программ нужно создать новую базу данных в MySQL, добавить пользователя и предоставить ему права для доступа к созданной БД. Все это потребуется еще в процессе установки Bugzilla. Запуск скрипта checksetup.pl в директории с Bugzilla проверит Perl на наличие необходимых модулей и выдаст инструкции о том, как установить недостающие.
![]()
После установки недостающих модулей нужно повторно запустить скрипт и настроить основные параметры:
— адрес и порт СУБД, имя пользователя для подключения к ней, название БД (в ней будут созданы таблицы для хранения данных системы), пароль этого пользователя для доступа к БД;
— адрес электронной почты администратора;
— пароль администратора системы;
— адрес SMTP-сервера, который будет использоваться для рассылки почты.
На этом установка системы будет завершена, и теперь вы сможете войти в установленную систему, используя имя входа для администратора и пароль. По умолчанию после установки именем входа является адрес электронной почты пользователя.