Install on a Linux VPS
Use a maintained Linux distribution. Install Nginx, compatible PHP-FPM/CLI and extensions, MySQL, Composer and a process manager using supported packages. Package names and socket paths vary by distribution.
- Create a deployment account and dedicated database/user.
- Put the application in
/srv/open-core-hr/backendor your chosen private path. - Follow preparation and configuration.
- Give PHP-FPM write access to
storageandbootstrap/cache. Keep source and secrets private; do not use world-writable permissions. - Configure Nginx, replacing the hostname, path and socket below:
server {
listen 80;
server_name hr.example.com;
root /srv/open-core-hr/backend/public;
index index.php;
client_max_body_size 20m;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ ^/index\.php(/|$) {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
fastcgi_hide_header X-Powered-By;
}
location ~ \.php$ { return 404; }
location ~ /\.(?!well-known).* { deny all; }
}
- Test the Nginx configuration and reload it.
- Issue an HTTPS certificate and configure HTTP-to-HTTPS redirection.
- Set up cron and supervised services.
- Complete the installation checklist.
Align upload limits in PHP, Nginx and application validation. This starting configuration still needs acceptance on the exact Linux/PHP stack.