-
Notifications
You must be signed in to change notification settings - Fork 0
Post Deployment Verification
🇫🇷 Cette page est également disponible en français : fr-Post-Deployment-Verification
After deploying and connecting via SSH, verify that all four core services are running correctly before configuring Nextcloud.
- You are connected to the VM via SSH (see SSH-Connection).
Nginx serves as the web server and reverse proxy.
sudo systemctl status nginxExpected output includes Active: active (running).
If Nginx is not running, start it:
sudo systemctl start nginx
sudo systemctl enable nginxTest HTTP response:
curl -I http://localhostExpected: HTTP/1.1 200 OK or a redirect to HTTPS.
PHP-FPM processes PHP requests for Nextcloud.
sudo systemctl status php8.3-fpmExpected output includes Active: active (running).
If PHP-FPM is not running, start it:
sudo systemctl start php8.3-fpm
sudo systemctl enable php8.3-fpmVerify PHP version:
php --versionExpected: PHP 8.3.
PostgreSQL stores the Nextcloud database.
sudo systemctl status postgresqlExpected output includes Active: active (running).
If PostgreSQL is not running, start it:
sudo systemctl start postgresql
sudo systemctl enable postgresqlTest database connectivity:
sudo -u postgres psql -c "\\l"Expected: A table listing databases including nextcloud (if already configured).
Redis provides session caching and file locking for Nextcloud.
sudo systemctl status redis-serverExpected output includes Active: active (running).
If Redis is not running, start it:
sudo systemctl start redis-server
sudo systemctl enable redis-serverTest Redis connectivity:
redis-cli pingExpected: PONG
Run all checks in one command:
for svc in nginx php8.3-fpm postgresql redis-server; do
echo "=== $svc ===" && sudo systemctl is-active "$svc"
doneAll four services should report active.
| Service | Check command | Expected |
|---|---|---|
| Nginx | sudo systemctl is-active nginx |
active |
| PHP-FPM | sudo systemctl is-active php8.3-fpm |
active |
| PostgreSQL | sudo systemctl is-active postgresql |
active |
| Redis | sudo systemctl is-active redis-server |
active |
Nginx fails to start: "Address already in use"
Another process is using port 80 or 443. Find it with sudo ss -tlnp | grep ':80\|:443' and stop it.
PHP-FPM fails to start: "No such file or directory"
The socket path configured in Nginx may not match what PHP-FPM creates.
Check /etc/nginx/sites-available/ and /etc/php/8.3/fpm/pool.d/www.conf for socket path consistency.
PostgreSQL fails to start: "could not open file "pg_filenode.map""
Data directory issue. Check PostgreSQL logs:
sudo journalctl -u postgresql --since "5 minutes ago".
Redis: redis-cli ping returns Connection refused
Verify that Redis is listening on 127.0.0.1:6379:
sudo ss -tlnp | grep 6379
| Next | Page |
|---|---|
| Configure HTTPS | HTTPS-TLS-Certificate |
| Complete Nextcloud setup | Configuring-Nextcloud |
Getting Started
Configuration
Administration
Using Nextcloud
Help
Démarrage
Configuration
Administration
Utiliser Nextcloud
Aide