5

I installed valet-linux in kubuntu 18.04 and followed the documentation. I also changed the path to make valet command works. I also added the directory of my projects which is located in another partition using valet park and change its port to 8888 so it won't have conflict with apache which listens to port 80.

But when I run my-laravel-project.test it shows the Apache2 Ubuntu Default Page not my laravel project page which when I tested it using php artisan serve, it is working. Thanks!

Rafael
  • 172
  • 1
  • 11

2 Answers2

10

I experienced the same.

Can you check if valet is running correctly?

valet status

In my case it looked like this:

Php7.2-fpm is running...
Nginx is stopped...

So I fixed it by stopping, apache since it was obviously interfering with valet:

sudo service apache2 stop

I checked the status again

valet status

and now it looked fine:

Php7.2-fpm is running...
Nginx is running...

Now Valet worked for me on Ubuntu.

AFX
  • 356
  • 3
  • 13
  • I'm running XAMPP, and after trying `service apache2 stop` the problem persisted. I had to go to the XAMPP GUI and stop Apache from there. After that, then I was able to `service nginx start` successfully. Problem solved. – mOrloff Dec 16 '20 at 19:54
0

add DirectoryIndex index.php to your apache config