Installation

Deckixa AI 1.1.0 · Developed by EKR

Requirements

PHP 8.3+, MySQL 8+/MariaDB 10.6+, HTTPS, and a scheduler/queue worker. Required extensions: PDO and your database driver, mbstring, OpenSSL, tokenizer, XML/DOM, ctype, fileinfo, cURL, ZIP and GD. Recommend memory_limit=512M for image processing, upload_max_filesize=16M and post_max_size=20M. Use the same PHP version for the website and cron.

Production Application includes vendor dependencies and compiled public/build files. Node and Composer are only needed to modify/rebuild source. Use a dedicated empty database and an application directory separate from other sites.

cPanel installation

  1. Create your domain/subdomain and enable a valid HTTPS certificate.
  2. Upload and extract the contents of Application to a directory such as /home/ACCOUNT/deckixa.
  3. Set the domain Document Root to /home/ACCOUNT/deckixa/public. Never expose the whole application directory. If the host cannot change the root, ask it to configure one.
  4. Create an empty MySQL database and a dedicated user with access to that database. Keep cPanel's actual prefixed database/user names.
  5. Make storage and bootstrap/cache writable by the PHP application owner. Normal owner permissions are preferable to blanket 0777.
  6. Visit https://YOUR-DOMAIN/install. First access creates .env, APP_KEY and INSTALL_TOKEN when absent. It never displays the token publicly.
  7. In File Manager enable hidden files and read INSTALL_TOKEN from the private .env. Enter it in the installer with the HTTPS application URL, database credentials, and administrator details.
  8. Complete the environment checks and submit. Setup migrates the database, creates the first administrator and locks installation. Sign in at /login.
  9. Restrict .env to owner-readable permissions when supported (0600) and keep an encrypted backup of APP_KEY.

There is no default login. Never regenerate APP_KEY on an installed system. An occupied database is rejected before migration. Interrupted setup can resume only against its matching database while there are no accounts. Do not remove installed.lock to reinstall an existing site.

Command-line installation

For a raw source checkout, first install dependencies. The customer release already contains vendor.

composer install --no-dev --optimize-autoloader
php scripts/initialize.php
# Configure .env with URL, database and mail settings.
php artisan deckixa:install --name="Administrator" --email="admin@example.com"

The password prompt is hidden. Automated setup accepts DECKIXA_ADMIN_PASSWORD through a protected process environment, not a command-line password argument. The installer runs migrations itself; do not migrate first.

For local development only, SQLite is supported: create a new database file, set DB_CONNECTION=sqlite and its absolute DB_DATABASE path, APP_ENV=local, localhost APP_URL and SESSION_SECURE_COOKIE=false. Keep secure cookies enabled in production.

SMTP

Use a dedicated sender, configure SPF/DKIM with your mail host, and test an actual delivered message.

MAIL_MAILER=smtp
MAIL_SCHEME=smtps
MAIL_HOST=mail.example.com
MAIL_PORT=465
MAIL_USERNAME=hello@example.com
MAIL_PASSWORD="replace-in-private-env"
MAIL_FROM_ADDRESS=hello@example.com
MAIL_FROM_NAME="Deckixa AI"

For STARTTLS use MAIL_SCHEME=smtp and the provider's port, commonly 587. Certificate verification stays enabled. Verification/reset messages are queued; they require the worker below.

Queue and scheduler

A VPS should supervise php artisan queue:work --tries=5 --timeout=190 --memory=256 and run schedule:run every minute. Set DB_QUEUE_RETRY_AFTER=240. Image jobs make one provider attempt even when the worker permits retries for other job types.

On shared hosting add these two separate cron entries. Replace every account/path and PHP executable with your host's values:

* * * * * /usr/bin/flock -n -o /home/ACCOUNT/deckixa/storage/scheduler.lock /PATH/TO/php /home/ACCOUNT/deckixa/artisan schedule:run >> /home/ACCOUNT/deckixa/storage/logs/scheduler.log 2>&1
* * * * * /usr/bin/flock -n -o /home/ACCOUNT/deckixa/storage/worker.lock /PATH/TO/php /home/ACCOUNT/deckixa/artisan queue:work --stop-when-empty --max-time=50 --tries=5 --timeout=190 --memory=256 >> /home/ACCOUNT/deckixa/storage/logs/worker.log 2>&1

If flock is unavailable, use a process supervisor or ask the host for a non-overlapping worker. Keep DB_QUEUE_RETRY_AFTER=240, greater than the worker timeout. --max-time=50 is checked between jobs; a running image request may take longer. Cron processing can wait up to a minute to start. Review and rotate logs. Do not replace another application's cron entries.

AI and payments

Administration → Settings & AI stores Gemini/OpenAI/OpenRouter keys encrypted and lets you choose independent presentation and image defaults. Blank key fields preserve the saved key. Remove-key options fall back to the environment. Customers see only configured providers and permitted models.

Presentation variables: AI_PROVIDER, GEMINI_API_KEY, GEMINI_MODEL, OPENAI_API_KEY, OPENAI_MODEL, OPENROUTER_API_KEY and OPENROUTER_MODEL. Gemini uses the Developer API. Presentation models must support the structured slide contract; image references additionally require vision capability. The OpenRouter catalog includes 30 curated language models and 46 compatible text-to-raster models in the bundled 2026-09-30 snapshot; refresh can change availability.

Image variables: IMAGE_PROVIDER, GEMINI_IMAGE_MODEL, OPENAI_IMAGE_MODEL and OPENROUTER_IMAGE_MODEL. The same provider key is used for that provider's image API. Review monthly image allowances in Plans & pricing and configure provider-side spending limits. PNG/JPEG downloads are supported; transparent PNG requires a model that explicitly supports transparency. Quality and aspect-ratio controls depend on model capabilities.

Provider access, charges, regional availability and quotas depend on your API project. API keys are not bundled with the application. See services.md for the distinction between application allowances and provider billing.

Follow services.md for Stripe, webhook and OAuth setup. Test sandbox payments before entering live credentials.

Nginx

Point root to /srv/deckixa/public, use try_files $uri $uri/ /index.php?$query_string, and forward only /index.php to the configured PHP-FPM socket. Deny dotfiles and other PHP files. Set client_max_body_size 20M, configure TLS and redirect HTTP to HTTPS. Never serve vendor, storage or .env.

Acceptance checks

Register a separate test customer, receive verification/reset mail, create a template deck, upload a reference/image, generate a short deck, edit/export/share/revoke, and complete a Stripe sandbox checkout. Generate one image using an explicitly selected model/quality, reopen Image Studio while it runs, add the result to a slide and verify the separate image allowance. Check System health and private logs for failed jobs. /up checks framework liveness, not every external dependency.

For an existing 1.0 installation, follow operations.md instead of rerunning the installer. The 1.1 upgrade requires the image-generation database migration and the updated worker/retry settings.

Upgrading to 1.2 also requires the agent-session and stock-photo migrations. Back up the database, private storage and environment, deploy the matching source/assets, run php artisan migrate --force, clear cached configuration/views, and restart the queue worker. The existing scheduler now recovers agent sessions and stock-photo tracking. Never rerun the installer over an existing database.