How to fix "Can not find External Application: lsphp55" error

Sometime you may experience the following error after the installation:

2015-06-23 14:29:56.297	ERROR	[config:server:epsr:lsphp55] invalid path - /usr/local/lsws/fcgi-bin/lsphp55, it cannot be started by Web server!
2015-06-23 14:29:56.297	ERROR	[config:scripthandler] Can not find handler with type: 12, name: lsphp55.
2015-06-23 14:29:56.297	ERROR	[config:scripthandler] Can not find External Application: lsphp55, type: lsapi
2015-06-23 14:29:56.297	ERROR	[config:scripthandler] use static file handler for suffix [php55]

It simply means no lsphp55 set up yet.

LSWS includes lsphp55 handler as default during the installation, but lsphp55 binary has to be installed separately. In cPanel environment, LiteSpeed normally builds matching PHP most likely for 5.4.x hence no lsphp55 installed.

The message itself is absolutely safe to be ignored. If you just like to get rid of the error, you can do either of the following:

  • Unordered List Item Install lsphp55 and pointing the /usr/local/lsws/fcgi-bin/lsphp55 to the newly installed binary.
  • Unordered List ItemSimply remove lsphp55 handler.
  • Use any exiting PHP handler as lsphp55, for example:
 ln -sf /usr/local/lsws/fcgi-bin/lsphp5 /usr/local/lsws/fcgi-bin/lsphp55

The last one creates a symbolic link to use lsphp5 as lsphp55 handler. It is not recommended, though it can remove the error alert, since faked lsphp55 may create misunderstanding in the future.

litespeed_wiki/config/cannot_find_lsphp55.txt · Last modified: 2015/06/23 19:04 by Jackson Zhang