From researching it seems i need --with-mysql
However when I try to compile php I get this:
=============================================
Compile PHP with LSAPI
fail to save current configuration.
Fail to generate build script, please try to manually fix the error first.
Failed to create manual install script: /usr/local/lsws/phpbuild/buildphp_manual_run.sh
==============================================