' . TITLE . ''; $options = NULL; $default_options = NULL; $cur_step = $check->GetCurrentStep(); $supported = []; if ($cur_step == 1) { $php_version = $check->pass_val['php_version']; $options = new BuildOptions($php_version); $options->setDefaultOptions(); $default_options = $options; $supported = $check->GetModuleSupport($php_version); } elseif ($cur_step == 2) { $options = $check->pass_val['input_options']; $php_version = $options->GetValue('PHPVersion'); $default_options = new BuildOptions($php_version); $default_options->setDefaultOptions(); } elseif ($cur_step == 3) { $php_version = $check->pass_val['php_version']; $options = new BuildOptions($php_version); $default_options = new BuildOptions($php_version); $default_options->setDefaultOptions(); } if ($options == NULL) return "NULL options\n"; $saved_options = $options->getSavedOptions(); if ($saved_options != NULL && $cur_step == 3) { $options = $saved_options; } if ( isset($check->pass_val['err'])) { echo '
Input error detected. Please resolve the error(s).
'; } ?>
Step 2 : Choose PHP Build Options
Load Configuration gen_loadconf_onclick('IMPORT'); } ?> > gen_loadconf_onclick('DEFAULT'); ?> >
Extra PATH environment
Extra PATH Environment Variables
Additional PATH values that will be appended to the current PATH environment variables for build scripts.
List path values separated by ":"
pass_val['err']['path_env'])) { echo '*' . $check->pass_val['err']['path_env'] . '
'; } ?>
Install Path Prefix
Installation Path Prefix
Sets the value for the "--prefix" configure option. The default installation location is under LiteSpeed Web Server's install directory.
pass_val['err']['installPath'])) { echo '*' . $check->pass_val['err']['installPath'] . '
'; } ?>
Compiler Flags
Compiler Options
You can add optimized compiler options here. Supported flags are CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS.
Example: CFLAGS='-O3 -msse2 -msse3 -msse4.1 -msse4.2 -msse4 -mavx'
Syntax: Use space to separate different flags, use single quote instead of double-quotes for flag values
pass_val['err']['compilerFlags'])) { echo '*' . $check->pass_val['err']['compilerFlags'] . '
'; } ?>
Configure Parameters
Configure Parameters
You can simply copy and paste the configure parameters from the phpinfo() output of an existing working php build. The parameters that are Apache specific will be auto removed and "--with-litespeed" will be auto appended when you click next step.

pass_val['err']['configureParams'])) { echo '*' . $check->pass_val['err']['configureParams'] . '
'; } ?>
Add-on Modules GetValue('AddOnSuhosin')) { $buf .= $checked; } $buf .= '> Suhosin (General Hardening)
'; } if (!empty($supported['mailheader'])) { $buf .= 'GetValue('AddOnMailHeader')) { $buf .= $checked; } $buf .= '> PHP Mail Header Patch (Identifies Mail Source)
'; } if (!empty($supported['memcache'])) { $buf .= 'GetValue('AddOnMemCache')) { $buf .= $checked; } $buf .= '> memcache (memcached extension) V' . MEMCACHE_VERSION . '
'; } if (!empty($supported['memcache7'])) { $buf .= 'GetValue('AddOnMemCache7')) { $buf .= $checked; } $buf .= '> memcache (memcached extension) V' . MEMCACHE7_VERSION . '
'; } if (!empty($supported['memcache8'])) { $buf .= 'GetValue('AddOnMemCache8')) { $buf .= $checked; } $buf .= '> memcache (memcached extension) V' . MEMCACHE8_VERSION . '
'; } if (!empty($supported['memcachd'])) { $buf .= 'GetValue('AddOnMemCachd')) { $buf .= $checked; } $buf .= '> memcached (PHP extension for interfacing with memcached via libmemcached library) V' . MEMCACHED_VERSION; } if (!empty($supported['memcachd7'])) { $buf .= 'GetValue('AddOnMemCachd7')) { $buf .= $checked; } $buf .= '> memcached (PHP extension for interfacing with memcached via libmemcached library) V' . MEMCACHED7_VERSION; } $buf .= '

Note: If you want to use a version not listed here, you can manually update the settings in /usr/local/lsws/admin/html/utility/build_php/buildconf.inc.php.

'; echo $buf; ?>

Note: For more information regarding LSPHP, please visit LiteSpeed wiki.