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

meriki's avatar

My Laravel views not working

Hi Laravel Dev

I have successfully installed Apache, PHP, and MariaDB and I also install laravel with no issue and I created my project setup my route and views with no issues but when I run the project only the Default welcome pages are working and any other page gives me the error message below please can someone advise on how I can go about this

Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404 localhost Apache/2.4.39 (Unix) PHP/7.3.6

0 likes
12 replies
Tray2's avatar

Have you enable the mod_rewrite module?

Tray2's avatar

On Linux and Mac

sudo a2enmod rewrite
meriki's avatar

The command cannot be found I am not using Xammp I install Apache, PHP and MySQL separately

Please advise

Thanks

Tray2's avatar

a2enmod is the one you use for enabling the mod_rewrite. Why not google for apache enable mod_rewrite ?

SCC's avatar

It does sound as though mod-rewrite is not enabled but you are not giving us much information to go on.

meriki's avatar

@SCC - Yes please advise on how I can fix that, please

meriki's avatar

I have tried that and it is not working for me my OS is Arch Linux

SCC's avatar

Ok, so on the command line, you type a2enmod rewrite, does it return any message?

MaverickChan's avatar

@MERIKI - sounds like you have a storage folder permission issue

cd into your laravel project folder,

sudo chomd -R storage 777

then run

php artisan cache:clear

php artisan view:clear


Please or to participate in this conversation.