Comments (7)
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.
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.
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.
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.
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.
thanks @edrozenberg , that's works for me too
from homebrew-services.
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)
- Mariadb cant start HOT 4
- brew services failed (Error: uninitialized constant Homebrew::Service)
- when I run `brew services`, it returned 'Error: Unknown command: services' HOT 6
- Error: /usr/local/var/homebrew/linked/telnet is not inside a keg HOT 2
- Services missing from `brew services list` output on macOS 13.5.1 HOT 4
- Services stop running after I logout system. HOT 1
- `sudo brew services` is broken in linux HOT 1
- Add information about logs to help: `brew services --help` HOT 4
- Homebrew Services logs don't exist on MacBook Pro M2 (arm64) after at least failed attempt to run `dnscrypt-proxy` HOT 4
- HOWTO: Setting up a parallel redis service as a custom service? HOT 1
- brew services restart (stop/start) via ssh does not return and loops in /bin/launchctl list HOT 12
- Error on execute a "brew services start mongodb-community" command HOT 4
- Error starting service HOT 1
- brew services cannot find plist file for installed packaged HOT 4
- brew service generating invalid systemd service HOT 3
- Mac OS X Sonoma 14.4 - formula_wrapper.rb - syntax error, unexpected ',' HOT 4
- Error brew services command HOT 1
- Make require_root option not to require existence of run HOT 2
- how to delete brew services HOT 1
- Running brew services command as root is failing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-services.