Upgrade di Request Tracker su Debian: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 66: | Line 66: | ||
<IfVersion < 2.3> | <IfVersion < 2.3> | ||
Order Allow,Deny | Order Allow,Deny | ||
Allow from | Allow from All | ||
</IfVersion> | </IfVersion> | ||
</Location> | </Location> | ||
</pre> | </pre> | ||
sudo systemctl restart apache2 | |||
* Se non lo si fa, l'rt-mailgate remoto non riesce a mandare mail e dà un errore di 403 forbidden | * Se non lo si fa, l'rt-mailgate remoto non riesce a mandare mail e dà un errore di 403 forbidden | ||
* Impostare le opzioni per il mittente corretto: | |||
sudoedit /etc/request-tracker4/RT_SiteConfig.pm | |||
<pre> | |||
Set( $SendmailPath, '/usr/sbin/sendmail' ); | |||
Set($SendmailArguments , '-oi -t -f"<rt@example.com>"'); | |||
</pre> | |||
sudo systemctl restart apache2 | |||
=Riferimenti= | =Riferimenti= | ||
Latest revision as of 18:18, 14 December 2016
Migrazione su nuova macchina
- Fare dump del DB sulla vecchia macchina RT 3.6.7
mysqldump --user=rtuser --password=secretpass --opt --skip-lock-tables --single-transaction --default-character-set=latin1 --databases rtdb -r /tmp/rtdb.sql
- Trasferirlo sulla nuova macchina
scp /tmp/rtdb.sql newmachine.example.priv:/tmp
- Installare i pacchetti sulla nuova macchina, ed eseguire la configurazione, fino ad accedere alla nuova istanza vuota:
sudo apt-get install request-tracker4 rt4-db-mysql rt4-apache2 rt4-clients mysql-server mysql-client
- Abilitare la configurazione apache2:
cd /etc/apache2/conf-available/ sudo ln -s /etc/request-tracker4/apache2-modperl2.conf request-tracker4.conf sudo a2enconf request-tracker4 sudo systemctl restart apache2
- Testare l'accesso via web
- Cancellare il contenuto del database di RT, lasciando il DB vuoto
- Importare il backup della vecchia istanza:
mysql -u root -p rtdb < /tmp/rtdb.sq
- Lanciare l'upgrade:
sudo -u www-data rt-setup-database-4 --action upgrade --dba root --prompt-for-dba-password
In order to create or update your RT database, this script needs to connect to your mysql instance on localhost (port '') as root Please specify that user's database password below. If the user has no database password, just press return. Password: Working with: Type: mysql Host: localhost Port: Name: rtdb User: rtuser DBA: root
- Inserire la versione da cui si upgrada:
Enter RT version you're upgrading from: 3.6.7
- Accettare con invio:
Enter RT version if you want to stop upgrade at some point,
or leave it blank if you want apply above upgrades:
- Attendere il completamento
- Applicare i fix necessari per Mysql
sudo /usr/share/request-tracker4/etc/upgrade/upgrade-mysql-schema.pl rtdb rtuser secrepassword > /tmp/mysql.upgrade mysql -u rtuser -p rtdb < /tmp/mysql.upgrade
- Per consentire il post da remoto dei ticket via alias smtp con rt-mailgate, occorre abilitare l'accesso in apache:
sudoedit /etc/request-tracker4/apache2-modperl2.conf
# Limit mail gateway access to localhost by default
<Location /rt/REST/1.0/NoAuth>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order Allow,Deny
Allow from All
</IfVersion>
</Location>
sudo systemctl restart apache2
- Se non lo si fa, l'rt-mailgate remoto non riesce a mandare mail e dà un errore di 403 forbidden
- Impostare le opzioni per il mittente corretto:
sudoedit /etc/request-tracker4/RT_SiteConfig.pm
Set( $SendmailPath, '/usr/sbin/sendmail' ); Set($SendmailArguments , '-oi -t -f"<rt@example.com>"');
sudo systemctl restart apache2