-
Notifications
You must be signed in to change notification settings - Fork 159
Debian
Ycarus edited this page Oct 3, 2017
·
33 revisions
This was tested with Debian 9
Install git, mysql, apache and PHP with needed modules:
apt-get install git mysql-server apache2 php php-xml php-zip php-curl php-mysql php-mbstring php-gd
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"
<Directory /var/www/flightairmap>
Options +Indexes +FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Enable mod rewrite:
a2enmod rewrite
Restart apache2:
/etc/init.d/apache2 restart
Fix permissions:
chmod 666 require/settings.php
chmod 777 install/tmp
chmod 777 data
Configure mysql/mariadb:
mysql_secure_installation
Create database and user:
mysql -u root -p
then:
CREATE DATABASE `flightairmap`;
GRANT ALL ON `flightairmap`.* TO 'youruser'@'localhost' IDENTIFIED BY 'yourpass';
FLUSH PRIVILEGES;
Now use your browser to go to http://127.0.0.1/install/ (or ip of your server)
Before adding it to cron, it's a good idea to run scripts/update_db.php in a shell.