-
Notifications
You must be signed in to change notification settings - Fork 159
Debian
Ycarus edited this page Jul 9, 2017
·
33 revisions
apt-get install git mysql-server apache2 php php7.0-xml php7.0-zip php7.0-curl php7.0-mysql
Get FlightAirMap from git:
cd /var/www
git clone http://github.com/ysurac/flightairmap
Edit Apache conf /etc/apache2/site-available/000-default.conf, add this in VirtualHost section:
DocumentRoot "/var/www/flightairmap/htdocs"
<Directory /var/www/flightairmap/htdocs>
Options +Indexes +FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Enable mod rewrite:
cd etc/apache2/mods-enabled
ln -s ../mods-available/rewrite.load
Restart apache2:
/etc/init.d/apache2 restart
Fix permissions:
chmod 666 require/settings.php
chmod 666 install/tmp data
Configure mysql/mariadb:
mysql_secure_installation
Create database and user:
CREATE DATABASE `flightairmap`; GRANT ALL ON `flightairmap`.* TO 'youruser'@'localhost' IDENTIFIED BY 'yourpass';
FLUSH PRIVILEGES;