Server and Database Configuration

Applies to: v5.0.0 and later

This page collects the server-side settings web2project depends on. For the step-by-step install, see the Installation Guide.

PHP

The installer checks the PHP version and the mysqli, gd, zlib and ldap extensions before it creates anything. It doesn’t check mbstring, so confirm that one yourself (php -m).

Database

Files and folders

Folder Needs to be writable by the web server Why
includes/ during installation only the installer writes includes/config.php
files/ always uploaded files, one folder per project
files/temp/ always temporary files
locales/ only while translating the Translation Management editor saves here

After installing, you can make includes/ read-only again.

Warning by Gregor Cresnar from the Noun Project Uploaded files are stored in files/ inside the web root. They are protected only by files/.htaccess (deny from all), which uses Apache 2.2 syntax. Make sure your web server really blocks direct access:

Then check that http://{web2project-install}/files/ returns 403 Forbidden. Logged-in users still download files through fileviewer.php, which checks permissions. See Security Notes.

Scheduled tasks (cron)

Task reminders, queued email notifications and the modules’ maintenance hooks run from queuescanner.php. Run it every few minutes, either through the web server:

*/10 * * * * wget -O - -q http://{web2project-install}/queuescanner.php

or from the command line, which works even if the web server blocks the URL:

*/10 * * * * cd /path/to/web2project && php queuescanner.php

Sessions

Sessions are stored in the database by default (System Admin → System Configuration → Session Handler: “web2Project Extended Sessions”). Two settings control how long they last:

Values are in seconds unless followed by one letter: h (hours), d (days), m (months) or y (years). 28h is valid; 2d4h is not.

Each login is recorded in the access log, which feeds the user list’s Online/Offline status and the Active Sessions tab in User Admin. A login stays open until the user logs out or the session expires.

Time zones