The basic rule: document root is public/
The web server's document root must always be the public/ folder. The project root is never served directly, so folders such as storage/, core/ and content/plugins/, and the .env file, stay out of reach from the web.
Apache
The public/.htaccess file ships ready to use; you only need mod_rewrite enabled. Example VirtualHost:
<VirtualHost *:80>
ServerName yourdomain.com
DocumentRoot /var/www/september/public
<Directory /var/www/september/public>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Keep public/.htaccess minimal. On some LiteSpeed / cPanel servers an Options line causes a 403 error.
nginx
server {
listen 80;
server_name yourdomain.com;
root /var/www/september/public;
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
# Do not serve hidden files
location ~ /\. {
deny all;
}
}
Adjust the socket path in fastcgi_pass to match the PHP 8.3 FPM socket on your server.
File permissions
| Folder | Permission | Why |
|---|---|---|
storage/ | 755 or 775 | Sessions, cache, logs and the installation lock |
content/uploads/ | 755 or 775 | Uploaded images and files |
HTTPS
Use an SSL certificate on your live site and make APP_URL in .env start with https://. The secure flag on session and "remember me" cookies is set from this value.
Local development
Built-in development server:
php september serve # http://127.0.0.1:8000
php september serve 8080 # different port
On macOS with Laravel Valet or Herd, run valet link september in the project root (or add the folder to Herd); both use the public/ folder as the document root automatically.