Install Openlitespeed PHP 5.6

I'm trying to install PHP 5.6 on a Debian 9 machine with a new Openlitespeed install.
I couldn't find a way to do this with a repository so I'm trying to install via the Openlitespeed admin section.
I get this at the end of the logging:
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
**ERROR** Could not configure PHP build
How do I solve this?


Hi Texas,

Debian 9 and Ubuntu 18.04 come with OpenSSL package 1.1.0 which is incompatible with PHP 56. The error you are receiving is due to missing curl headers. To install those you can run: apt-get install libcurl4-openssl-dev

PHP does not plan on making 56 compatible with 1.1.0 more can be found here:

There have been some thirdparty patches that have gotten it to work but have opened possible security vulnerabilities.

You can try adding the Jessie repo and installing 56 that way though there could be some issues.