I have a task to move a webservice (Matomo) running on a VM to its own physical server.
I am not that experienced with Linux or servers so I would like to know if I have thought of everything that might come up.
The new server is already running and has nothing but an ip-address, system utilities and sshd
.
I would follow these steps:
apt-get install apache2
apt-get install mysql-server
apt-get install php5, php5-mysql
mysqldump -u username -p --all-databases > /path/to/alldatabases.sql
scp [email protected]:/path/to/alldatabaes.sql /some/local/directory
scp -r [email protected]:/var/www/html /var/www
For the beginning I would like to be able to call the service on the new server using IP and Port without destroying the first one.
I guess I have to make some changes to the Apache config but don't really know how Apache works. Can I just scp
the config from the old system?
The new server has: Ubuntu 16.04
The service running there has the following requirements:
- PHP 5.5.9 or greater
- MySQL version 5.5 or greater, or MariaDB
- PHP extension pdo and pdo_mysql, or the MySQLi extension.
- Matomo is OS / server independent
The old server has: Ubuntu 14.04
- Apache/2.4.7 (Ubuntu)
- mysql Ver 14.14 Distrib 5.5.59, for debian-linux-gnu (x86_64) using readline 6.3
- PHP 5.5.9-1ubuntu4.23 (cli)