- in directory
/var/wwwexecutesudo git clone https://github.com/CzechGlobe-DoAB/BioArInEO-API.git - in directory
/var/www/BioArInEO-APIcreate writeable dirscache/proxiesandlogs - set database connection in file
/var/www/BioArInEO-API/app/settings.local.php - execute
sudo composer install(/var/www/BioArInEO-API/app)
- cd
/etc/apache2/sites-available - create configuration file
<api-domain>.conf(example api.bioarineo.tech.conf)
<VirtualHost *:80>
ServerName <server name>
ServerAlias <server alias>
ServerAdmin cerveny.j@czechglobe.cz
DocumentRoot /var/www/BioArInEO-API/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>Errors are loging to /var/www/BioArInEO-API/logs or /var/log/apache2 file error.log (You have to be in superuser mode)