This guide installs Exponential 6 on a Linux server for a real site. It assumes you can use sudo and that the site will live in /var/www/example.com.
1. PHP and Composer
Install PHP 8.1 or newer (8.5 is the newest supported) with the extensions from System requirements, and Composer 2. Check with php -v, php -m and composer --version.
2. The code
For a site you will run, use Composer:
cd /var/www composer create-project se7enxweb/exponential example.com cd example.com
For a site you will develop with Git, clone the repository instead and keep your work on a branch of your own:
composer config --global 'preferred-install.se7enxweb/*' source git clone https://github.com/se7enxweb/exponential.git example.com cd example.com git switch -c my-site composer install
3. The database
SQLite needs nothing more. For PostgreSQL, MariaDB or MySQL, create an empty database and a user that owns it. On PostgreSQL 15 and newer the site user must own the database.
4. Install
php bin/php/console exp:install --apply --db=pgsql --db-host=localhost --db-name=example --db-user=example --random-password --url=https://www.example.com php bin/php/console exp:setupfiles
5. Permissions
Make var/, settings/override and settings/siteaccess writable for the user PHP runs as, and nothing else.
6. The web server
Point the virtual host's document root at the installation and put the rewrite rules in the virtual host. Or run Velocity, which needs no other web server.
7. Cron
Run runcronjobs.php regularly from cron or a systemd timer. It runs the cron parts of the installation, such as the cleanup of expired caches; the console lists them as cron:<part>.
8. Check
Open the site and the administration. php bin/php/console exp:expfetch prints a card with the facts of the installation and hints if something needs attention.