Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

torices's avatar

I have same problem, not works livewire on vps, error 404. On local works correct but not on vps. I'm desperate

onecaptain's avatar

@torices

answer /docs/2.x/installation#publish-assets

you need:

php artisan livewire:publish --assets

janis@zutzu.com's avatar

Livewire HTTP 500 error: sudo chmod -R 777 storage/ sudo chmod -R 777 bootstrap/ Livewire/Laravel HTTP 404 error: sudo vim /etc/apache2/apache2.conf <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>

Abduqodir's avatar

I have the same problem!

When I added middleware in Kernel.php -> $middleware => [AccessToPanel::class], (500 internal server error) occured.

When I moved the class to $middlewareAliases it worked fine!

you can use middleware in route group

commands for use:

composer dump-autload

php artisan optimize:clear

npm run dev // restart

it might help for you or others )

Previous

Please or to participate in this conversation.