Search code examples
phpapachelaravelampps

Apache in Ampps doen's start after installing Laravel (Mac)


I've been using Ampps with no problem until I installed Laravel.

Once I did, Apache in Ampps doesn't start. I suppose it's a conflict on port 80 but I don't know how to solve it.

When I execute:

sudo /Applications/AMPPS/apache/bin/httpd

I get:

(48)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

Any ideas?


Solution

  • I got it!

    When you serve apache through laravel:

    php artisan serve
    

    Ctrl + C doesn't kill. You need to kill it through:

    apachectl stop
    

    or /etc/init.d/http stop

    Hope someone finds this useful