Install OJS journal
ojs_installProvision a fresh OJS installation on an existing Plesk subdomain: deploy files, create database, run installer, configure settings, and return access credentials.
Instructions
Provision a fresh OJS install on an EXISTING Plesk subdomain/webspace: deploy files, create DB + user, run the CLI installer, patch config.inc.php (allowed_hosts/base_url/trust_x_forwarded_for), set perms and PHP handler. Generates admin + DB passwords and returns the access details. Prerequisite: the subdomain, its docroot and DNS must already exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Full subdomain, e.g. journal.example.com | |
| pleskDomain | No | Plesk subscription domain for DB commands — the PARENT for a subdomain (e.g. example.com); defaults to `domain` | |
| adminEmail | No | Admin email (defaults to OJS_ADMIN_EMAIL) | |
| docroot | No | Override docroot path | |
| filesDir | No | Override OJS files dir (outside webroot) | |
| primaryLocale | No | Primary locale key | en |
| additionalLocales | No | Comma-separated extra locale keys | ar |
| setPhpHandler | No | Set the Plesk PHP handler to OJS_PHP_HANDLER (php81 fastcgi) | |
| createJournal | No | Also create the first journal after install (see ojs_create_journal args) | |
| journalPath | No | urlPath for the journal when createJournal=true | |
| journalNameEn | No | English journal name when createJournal=true | |
| journalNameAr | No | Arabic journal name when createJournal=true | |
| acronym | No | Journal acronym when createJournal=true |