Copy the full ProTask tree onto the server. The Laravel front controller lives in public/.
Document root
Point the Nginx (or Apache) document root at the public directory inside the project, not at the project root. Example:
root /var/www/protask/public;
If you put files in /var/www/protask, visitors should hit /var/www/protask/public/index.php.
Keep storage and bootstrap/cache writable by the PHP user, same as Installation.
Typical Nginx snippet
server {
listen 80;
server_name your-domain.com;
root /var/www/protask/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
Adjust the PHP-FPM socket to match the installed PHP version.
HTTPS and queues
After TLS is on, set APP_URL in .env to the https:// URL. Then configure SMTP and cron.
← All ProTask – Project Management Software with Time Tracking & Team Collaboration documentation