Skip to content
Snippets Groups Projects
Commit 04d5d8ea authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Updated installation information

parent d75cdfb9
No related branches found
No related tags found
No related merge requests found
composer.lock
config.php
logs/
vendor/
...@@ -7,6 +7,11 @@ Requirements: ...@@ -7,6 +7,11 @@ Requirements:
* Apache httpd server (tested on Apache/2.4.6) * Apache httpd server (tested on Apache/2.4.6)
* PHP (5.4+), composer for dependecies * PHP (5.4+), composer for dependecies
* MySQL/MariaDB (tested on MariaDB 5.5.52) * MySQL/MariaDB (tested on MariaDB 5.5.52)
* PHP MySQL module
On Ubuntu:
sudo apt install apache2 mariadb-server libapache2-mod-php mariadb-server
### PHP ### PHP
...@@ -18,7 +23,7 @@ For installing PHP dependencies run: ...@@ -18,7 +23,7 @@ For installing PHP dependencies run:
Install also the bcmath PHP package (used in X.509 parser). Install also the bcmath PHP package (used in X.509 parser).
### MySQL ### MySQL / MariaDB
Create a dedicated database and user: Create a dedicated database and user:
...@@ -28,8 +33,8 @@ Create a dedicated database and user: ...@@ -28,8 +33,8 @@ Create a dedicated database and user:
Enable the event scheduler: Enable the event scheduler:
* open MySQL configuration file (e.g. /etc/my.cnf) * open MySQL configuration file (e.g. /etc/my.cnf, or /etc/mysql/mariadb.conf.d/*-server.cnf for MariaDB)
* set `event_scheduler=1` * under the section [mysqld] set `event_scheduler=1`
* restart MySQL * restart MySQL
Then run the setup script: Then run the setup script:
...@@ -38,6 +43,15 @@ Then run the setup script: ...@@ -38,6 +43,15 @@ Then run the setup script:
### Apache (httpd) ### Apache (httpd)
* Enable .htaccess in rap folder:
In Apache configuration (e.g. /etc/apache2/apache2.conf) add:
<Directory /var/www/html/rap-ia2/>
AllowOverride All
</Directory>
* Enable Apache mod rewrite: `sudo a2enmod rewrite`
* Configure a valid HTTPS certificate on the server * Configure a valid HTTPS certificate on the server
* Configure X.509 client certificate authentication: * Configure X.509 client certificate authentication:
...@@ -94,6 +108,13 @@ Before using social API it is necessary to register an application on each socia ...@@ -94,6 +108,13 @@ Before using social API it is necessary to register an application on each socia
Copy the `config-example.php` into `config.php` and edit it for matching your needs. Copy the `config-example.php` into `config.php` and edit it for matching your needs.
### Logs directory
Create the logs directory and assign ownership to the Apache user (usually www-data or apache)
mkdir logs
sudo chown www-data logs
## Additional information and developer guide ## Additional information and developer guide
See the wiki: https://www.ict.inaf.it/gitlab/zorba/rap-ia2/wikis/home See the wiki: https://www.ict.inaf.it/gitlab/zorba/rap-ia2/wikis/home
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment