I’m trying to configure a debian 12 VPS to accept my locale project of filament 3.2 on laravel 12. I’ve installed mariadb, apache2 and php8.4. Locally everything works fine but online i got 404 for any route except main. On the VPS I have apache and that’s the .conf regarding the public root. I’ve copied the whole project into www/html directory
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
This is the 000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
If i go into the machine and print the php artisan route:list i got the correct list of route but when i go on them i got a 404. I can reach the / folder where i print a timestamp, i’ve tried to print there a route with the route command and it returns an empty string as laravel didn’t started.
I’ve tried to clean the cache and rebuilt it with no success
# Clear cache
php artisan optimize:clear
# Cache the various components of the Laravel application
php artisan config:cache
php artisan event:cache
php artisan route:cache
php artisan view:cache
Also a simple routing on web.php doesn’t work
Route::get('/test', function () {
return 'Test route';
});
I’ve also tried to rebuild the symlink for storage since I saw other solved this way, but with no success
php artisan storage:link
What else should i check?