Skip to content

HttpMime::addMimeHandler getHandler with name lsphp81 ret (nil) #465

@sadhanamahale

Description

@sadhanamahale

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions