Neuen Server aufsetzen
(Unterschied zwischen Versionen)
Mkurz (Diskussion | Beiträge) |
Mkurz (Diskussion | Beiträge) |
||
Zeile 26: | Zeile 26: | ||
<pre> | <pre> | ||
rsync -avz -e "ssh -p SSHPORT" USER@lic.apemap.at:/var/lib/tomcat7/webapps/apemap /var/lib/tomcat8/webapps | rsync -avz -e "ssh -p SSHPORT" USER@lic.apemap.at:/var/lib/tomcat7/webapps/apemap /var/lib/tomcat8/webapps | ||
+ | </pre> | ||
+ | |||
+ | == PHP 5.6 == | ||
+ | <pre> | ||
+ | apt update | ||
+ | apt install software-properties-common | ||
+ | add-apt-repository -y ppa:ondrej/php | ||
+ | apt install php5.6 | ||
+ | apt install php5.6-mysql | ||
+ | apt clean && sudo apt autoclean | ||
+ | a2dismod php7.2 | ||
+ | a2enmod php5.6 | ||
</pre> | </pre> |
Version vom 3. Oktober 2018, 11:32 Uhr
Inhaltsverzeichnis |
Tools
Copy the server-tools from our repository to the server e.g. to 'root/tools'
DB Setup
Create apemap DB user:
tools/createdbuser.sh
Apache2
apt-get install apache2
Tomcat
apt-get install tomcat8 apt-get install openjdk-8-jdk
- Create a folder 'apemap' within '/var/lib/tomcat8/webapps'
- Create a link to this folder from /var/apemap
ln -s /var/lib/tomcat8/webapps/apemap/ /var/apemap
Sync the apemap webapp from the old server to the new one:
rsync -avz -e "ssh -p SSHPORT" USER@lic.apemap.at:/var/lib/tomcat7/webapps/apemap /var/lib/tomcat8/webapps
PHP 5.6
apt update apt install software-properties-common add-apt-repository -y ppa:ondrej/php apt install php5.6 apt install php5.6-mysql apt clean && sudo apt autoclean a2dismod php7.2 a2enmod php5.6