litespeedtech / litespeedtech/openlitespeed
HttpMime::addMimeHandler getHandler with name lsphp81 ret (nil)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 233
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 5
Description
Hi Team,
When running a configuration test, OpenLiteSpeed throws errors related to PHP handlers not being recognized.
Error log output:
2025-09-18 10:21:26.992153 [ERROR] [217430] [config:server:vhosts:vhost:domain.com:scripthandler:add] HttpMime::addMimeHandler getHandler with name lsphp81 ret (nil)
2025-09-18 10:21:26.992158 [ERROR] [217430] [config:server:vhosts:vhost:domain.com:scripthandler:add] use static file handler for suffix [php]
As a result, OLS falls back to using the static file handler for PHP files instead of the correct lsphp81 handler.
I found PHP blocks are missing in httpd_config.conf file:
extprocessor lsphp80 {
address uds://tmp/lshttpd/lsphp80.sock
extprocessor lsphp81 {
address uds://tmp/lshttpd/lsphp81.sock
extprocessor lsphp82 {
address uds://tmp/lshttpd/lsphp82.sock
extprocessor lsphp83 {
address uds://tmp/lshttpd/lsphp83.sock
extprocessor lsphp84 {
address uds://tmp/lshttpd/lsphp84.sock
After regenerating the httpd_config.conf file, the issue resolves, but the next day it overwrites itself automatically.
Can you please help me resolve this permanently?
Thanks.
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 comparing the generated httpd_config.conf before and after regeneration, focusing on the missing lsphp80–lsphp84 extprocessor blocks and the HttpMime::addMimeHandler error. Trace which automatic configuration step rewrites the file; done means the PHP handler blocks remain present after the next regeneration and configuration testing no longer falls back to the static file handler.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100