litespeedtech / litespeedtech/openlitespeed

Bad config and 503 error

Open
#397 0 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.