Heroku PHP Getting Started Doesn't Run Locally on OSX

I am trying to run this repository locally on OSX 10.11.1 (Capitan)

https://github.com/heroku/php-getting-started.git

with the next team

$ sudo heroku local web

but i only still

[OKAY] Loaded ENV .env File as KEY=VALUE Format
[OKAY] Trimming display Output to 151 Columns
17:30:30 web.1 |  DOCUMENT_ROOT changed to 'web/'
17:30:30 web.1 |  4 processes at 128MB memory limit.
17:30:30 web.1 |  Starting php-fpm...
17:30:32 web.1 |  Starting httpd...
17:30:32 web.1 |  Application ready for connections on port 8080.
17:30:32 web.1 |  (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
17:30:32 web.1 |  (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
17:30:32 web.1 |  no listening sockets available, shutting down
17:30:32 web.1 |  AH00015: Unable to open logs
17:30:32 web.1 |  Process exited unexpectedly: httpd
17:30:32 web.1 |  Going down, terminating child processes...
[DONE] Killing all processes with signal  null
17:30:32 web.1 Exited Abnormally

Any ideas that might trigger a resolution rejected the setup errors: 80, although I'm sudo? Or why are the heroes trying to use port 80 locally?

When deployed to heroku, everything works fine.

Here is the full tutorial: https://devcenter.heroku.com/articles/getting-started-with-php

change

When I try to set the port manually using

$ heroku local web -p 5000

it just changes the default value from 8080 to 5000 ...

[OKAY] Loaded ENV .env File as KEY=VALUE Format
[OKAY] Trimming display Output to 151 Columns
08:06:33 web.1 |  DOCUMENT_ROOT changed to 'web/'
08:06:33 web.1 |  4 processes at 128MB memory limit.
08:06:33 web.1 |  Starting php-fpm...
08:06:35 web.1 |  Starting httpd...
08:06:35 web.1 |  Application ready for connections on port 5000.
08:06:35 web.1 |  (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
08:06:35 web.1 |  (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
08:06:35 web.1 |  no listening sockets available, shutting down
08:06:35 web.1 |  AH00015: Unable to open logs
08:06:35 web.1 |  Process exited unexpectedly: httpd
08:06:35 web.1 |  Going down, terminating child processes...
[DONE] Killing all processes with signal  null
08:06:35 web.1 Exited Abnormally
+4
source share
1 answer

"heroku local" , PHP. Ruby, Python, Node, Java .., -, , , PHP- PHP-FPM ( , , Windows) Apache Nginx.

, , PHP Nginx (, Debian .. , "nginx" "httpd", , ). Nginx 1.8 ; Apache ( mod_proxy_fcgi) .

, , , Heroku , " vhost , , , , https://packagist.org/packages/josegonzalez/dotenv env vars". , , - PHP .

Apache , /etc/apache2/httpd.conf, 80. , heroku-php-apache2 boot script, , , , , , /usr/libexec/apache2/ /usr/local/apache2/modules/, - ? (Apache ).

; Mac OS. Apache https://github.com/Homebrew/homebrew-apache (brew install homebrew/apache/httpd24 --with-mpm-event). ( /usr/local/etc/apache2/) mod_proxy mod_proxy_fcgi Listen.

+6

All Articles