NGINX
January 22, 2026 - Reading time: ~1 minute
sudo apt update
sudo apt install nginx php-fpm php-cli php-common php-mbstring php-zip php-sqlite3 php-curl php-gd php-json
php-opcache php-xml unzip -y
sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl start php8.4-fpm # Replace 8.4 with the actual installed PHP version
sudo systemctl enable php8.4-fpm
cd /var/www
curl https://www.bludit.com/releases/bludit-latest.zip --output bludit-latest.zip
unzip bludit-latest.zip
sudo chown -R www-data:www-data /var/www
sudo nano /etc/nginx/sites-available/bludit.conf
server {
listen 80;
server_name your_domain.com;
root /var/www/bludit;
index index.php;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.4-fpm.sock; # Verify socket path; it may change with PHP versions
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}
sudo ln -s /etc/nginx/sites-available/bludit.conf /etc/nginx/sites-enabled/
sudo nginx -t # Test configuration syntax
sudo systemctl restart nginx
Open your web browser and navigate to http://your_domain.com (or your server's IP address).
The Bludit installation wizard will guide you through creating an admin account and setting up your site.