Git Product home page Git Product logo

Comments (7)

edrozenberg avatar edrozenberg commented on May 10, 2024 2

Figured out what it takes to run httpd24 as a regular user with ports 8080/8443:

Build httpd24 without option --with-privileged-ports

Edit the config file:
vim /usr/local/etc/apache2/2.4/httpd.conf

In the config file, change the listen line to:
Listen 8080

In the config file, set a ServerName:
ServerName myserver.mynetwork:8080

Restart the service:
brew services restart httpd24

from homebrew-services.

edrozenberg avatar edrozenberg commented on May 10, 2024 1

Noticed the same issue. I built httpd24 with option "--with-privileged-ports". Running httpd as a regular user does not have permission to use these privileged ports (80/443), so httpd probably gives up and does not start.

from homebrew-services.

MikeMcQuaid avatar MikeMcQuaid commented on May 10, 2024

Have taken to starting all brew related processes with 'sudo brew services' rather than directly with launchctl.

That is a very bad idea; you're going to end up running a lot of services as root that need not be and, at least in this case, are accessible to the network.

Upon login to system apache fails to start - always.

This is likely related to sudo brew services start which starts on system start rather than user login. Resources that may be required may not be available.

from homebrew-services.

karlshea avatar karlshea commented on May 10, 2024

That's not really an answer to the question. "brew services list" shows httpd24 as "started" and there is no httpd process running. The same thing happens when running "brew service start httpd24" without root.

from homebrew-services.

MikeMcQuaid avatar MikeMcQuaid commented on May 10, 2024

That's not really an answer to the question. "brew services list" shows httpd24 as "started" and there is no httpd process running.

That's because brew services is a thin wrapper around launchctl which in this case would also report that a plist has been loaded. It's up to the user to debug why it hasn't started; we can't provide a general solution or detection.

from homebrew-services.

rezashamdani avatar rezashamdani commented on May 10, 2024

thanks @edrozenberg , that's works for me too

from homebrew-services.

staceymosier avatar staceymosier commented on May 10, 2024

edrozenberg's solution to switch from port 80 to 8080 works for me, also, however I'm not sure why my vhost sites have stopped working on 80 from 2 days ago.

my system.log console shows:
(homebrew.mxcl.httpd24[373]): Service exited with abnormal code: 1

curl -I -L localhost
curl: (7) Failed to connect to localhost port 80: Connection refused

curl -I -L localhost:8080
HTTP/1.1 200 OK

from homebrew-services.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.