Install NGINX web server:
Create a new server block configuration file for your Laravel project:
Replace example.com with your own domain name. Paste the following configuration:
Save and close the file.
Enable the new server block configuration:
Restart NGINX:
Install PHP and required extensions:
Clone or copy your Laravel project files to /var/www/example.com/. Make sure the storage directory is writable by the web server: