How to run Laravel 5.4 on port 80 successfuly -


i using laravel package connect payment system , particular package sends , receives data via port 80 (and use port 8000 make payments, encounter failures).

seen here:
how run laravel 5 on port 80 of localhost?

i decided give try error returned:
failed listen on 127.0.0.1:80 (reason: permission denied)

discover program using port 80, entered sudo lsof -i :80 , received following output:

command  pid     user   fd   type device size/off node name apache2 3102     root    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3103 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3104 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3105 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3106 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3107 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3108 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3115 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3116 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) apache2 3117 www-data    4u  ipv6  46970      0t0  tcp *:http (listen) 

i tried command: sudo netstat -nltp | grep -iw "80" , following output:
tcp6 0 0 :::80 :::* listen 3102/apache2

to free port 80 tried: sudo kill -9 3102, afterwards ran:
sudo netstat -nltp | grep -iw "80"
and output was:
tcp6 0 0 :::80 :::* listen 3330/apache2
(the port re-occupied).

know how can use port 80 develop laravel app on (i using debian 9 stretch).

let me guest. think running artisan server in in server. it's not recommended run on production server. artisan server should used development environment.

based on explanation, port 80 has been used apache2 server. that's normal. need put laravel application apache documentroot directory. because apache2 real web server. debian distribution, documentroot apache2 located @ /var/www. may follow this guide more information.

hope helps.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -