brew services startup issue #6771
Replies: 2 comments
-
|
Hi, The issue is that
Most commonly this is caused by:
Here are the steps to diagnose and fix: 1. Check the actual error logs first: journalctl --user -xe -u homebrew.httpd --no-pagerThis will show why the service failed to start. 2. Reload systemd and try starting manually: systemctl --user daemon-reload
systemctl --user start homebrew.httpd
systemctl --user status homebrew.httpd3. Validate your httpd config (common culprit): /home/linuxbrew/.linuxbrew/opt/httpd/bin/httpd -tA misconfigured 4. If you're accessing this from a non-login session, enable linger: loginctl enable-linger $USERWithout this, systemd user services may not persist outside of an active login session. 5. As a quick test, run httpd directly to see raw errors: /home/linuxbrew/.linuxbrew/opt/httpd/bin/httpd -D FOREGROUNDMost likely the |
Beta Was this translation helpful? Give feedback.
-
|
Can you check what is going on there with this command? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Additional Info
Output of
brew configOutput of
brew doctorDescription of issue
I installed apache thru home brew and started it up with:
brew services start httpd
it will tell me the following after running the command:
==> Successfully started
httpd(label: homebrew.httpd)however if i try to go to localhost or 127.0.0.1 it says it can't connect. i tried use port 8080, still nothing.
when i run
❯ brew services info httpd --verbose
i get the following:
httpd (homebrew.httpd)
Running: ✘
Loaded: ✘
Schedulable: ✘
File: /home/cju/.config/systemd/user/homebrew.httpd.service ✔
Registered at login: ✔
Command: /home/linuxbrew/.linuxbrew/opt/httpd/bin/httpd -D FOREGROUND
i'm not entirely sure what i am doing wrong, any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions