Try clearing all the various cache including config.
Is it the same laravel version.
May Sale! All accounts are 40% off this week.
thanks to: @jlrdw @Tray2 @Snapey
Solution:
sudo a2enmod rewrite
sudo service apache2 restart
apache module:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mysite
ServerAlias www.mysite
DocumentRoot /var/www/mysite/public
<Directory /var/www/mysite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /error.log
CustomLog /access.log combined
</VirtualHost>
ORIGINAL QUESTION:
Hi all, after a total upgrade of my Ubuntu server and LAMP to last version my Laravel projects doesn't works having routing problems. I finally understood that my problem is in Apache config. If I make php artisan route:list is all ok. If I use php artisan serve work all fine. But if I use LAMP server to serve my site, routes does'nt works. Only the home page is loaded. This is my apache config module that worked fine before upgrade:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName SquadrarioWeb
DocumentRoot /var/www/SquadrarioWeb/public
<Directory /var/www/SquadrarioWeb>
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Now I'm using php 8.0 and Apache2.4.48. DocumentRoot is correct and stat is ok. All privileges are ok. What am I doing wrong?
@ottaviane see edited reply above.
Also check this: https://stackoverflow.com/questions/24147460/laravel-all-routes-except-return-404/24166637
Please or to participate in this conversation.