litespeedtech / litespeedtech/openlitespeed
Bad config and 503 error
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 233
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 5
Description
Hi,
when I set the Run As User and Run As Group fields in the lsphp application on the virtual host, I get a 503 error.
the output of /usr/local/lsws/logs/stderr.log :
lscgid: execve():/usr/local/lsws/lsphp831/bin/lsphp: Resource temporarily unavailable
but this error can not help me.
So I fixed this by adding PHP_LSAPI_CHILDREN=10 in the Environment field.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the 503 after setting the Run As User and Run As Group fields on an lsphp virtual host, then inspect /usr/local/lsws/logs/stderr.log for the lscgid error. Compare the behavior with PHP_LSAPI_CHILDREN=10 in the Environment field; done means the configuration either works without a 503 or reports an actionable error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100