Prepare environment for Gila CMS in Ubuntu
Install Apache server
sudo apt install apache2
Install Maria DB
sudo apt install mariadb-server
Install PHP and the required modules
sudo apt install php php-zip php-mysqli php-gd php-mbstring
Activate rewrite mod on Apache
sudo a2enmod rewrite
To use .htaccess files edit the default VirtualHost with
sudo nano /etc/apache2/sites-available/000-default.conf
and add the following lines right after DocumentRoot /var/www/html
<Directory "/var/www/html">
AllowOverride All
</Directory>
Save the file and restart Apache serve
sudo service apache2 restart
Create a database in Maria DB (change dbname,username,password) from command line:
sudo mysql
MariaDB [(none)]> create schema dbname;
MariaDB [(none)]> grant all privileges on dbname.* to username identified by 'password';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;