MantisBT 1.2.19
MantisBT 1.2.19 – Ubuntu 14.04 LTS – 15.04 Server – install – email, cron – diagrams/fonts/
MantisBT szükséges csomagok, függőségek telepítése:
sudo apt-get update
sudo apt-get install unzip postfix apache2 mysql-server phpmyadmin
MantisBT virtualhost létrehozása, engedélyezése:
Tehetjük más portra is a virtualhostot, például 8083. Csak ebben az esetben az /etc/apache2/ports.conf szerkesztését se felejtsük el!
sudo mkdir -p /var/www/html/mantis/public_html
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mantis.conf
sudo nano /etc/apache2/sites-available/mantis.conf
<VirtualHost *:80>
ServerAdmin your@email.com
ServerName mantis
ServerAlias mantis
DocumentRoot /var/www/html/mantis/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite mantis.conf
sudo service apache2 reload
Apache konfigurálása:
sudo nano /etc/apache2/apache2.conf
ezt:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
erre:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
MantisBT stabil verzió letöltése, kicsomagolása, public_html mappába másolása:
sudo wget http://sourceforge.net/projects/mantisbt/files/latest/download/mantisbt-1.2.19.zip
sudo unzip mantisbt-1.2.19.zip
sudo cp -a /home/itfroccs/mantisbt-1.2.19/. /var/www/html/mantis/public_html
Az apache lesz a public_html mappa tulajdonosa, az én estemben ez a www-data:
sudo chown -HR <apache_user>:<apache_group> /var/www/html/mantis/public_html
sudo chown -HR www-data:www-data /var/www/html/mantis/public_html
MantisBT Email konfiguráció:
Természetesen itt a leveleződ smtp adatait kell megadnod.
sudo nano /var/www/html/mantis/public_html/config_defaults_inc.php
$g_administrator_email = ‘your@email.com’;
$g_webmaster_email = ‘your@email.com’;
$g_from_email = ‘your@email.com’;
$g_return_path_email = ‘your@email.com’;
$g_enable_email_notification = ON;
$g_validate_email = OFF;
$g_phpMailer_method = PHPMAILER_METHOD_MAIL;
$g_smtp_host = ‘your smtp host’;
$g_smtp_username = ‘your smtp username’;
$g_smtp_password = ‘your smtp password’;
$g_smtp_connection_mode = ‘your smtp protokoll’; /ssl – tls etc./
$g_smtp_port = your smtp port;
$g_email_send_using_cronjob = ON;
Email CRON, időzített feladat:
sudo crontab -e
0,10,20,30,40,50 * * * * php /var/www/html/mantis/public_html/scripts/send_emails.php
Létre kell hoznunk a MantisBT-nek egy adatbázist és install!
http://your_ip_or_domain/phpmyadmin
Admin könyvtár törlése, bejelentkezés:
sudo rm -rf /var/www/html/mantis/public_html/admin
Default Login:
http://your_ip_or_domain/mantis/public_html
user: administrator
passwd: root
Majd változtasd meg az administrator jelszavát root-ról másra!
Grafikonok, hogy meglegyenek a font-ok (betűpítuposok) hozzá:
sudo apt-get install ttf-mscorefonts-installer
Jó fejlesztés követést!
MantisBT install – Ubuntu 14.04 LTS – 15.04 server – install video
