pull/598/head
Mr Chen 11 months ago
parent a8b531b08e
commit 0c0f20a75d
  1. 4
      plugins/php-apt/index.py
  2. 9
      plugins/php-apt/js/php.js
  3. 2
      plugins/php-apt/versions/81/install.sh

@ -67,6 +67,8 @@ def getConf(version):
def getFpmConfFile(version):
return getServerDir() + '/' + version + '/fpm/pool.d/mw.conf'
def getFpmFile(version):
return getServerDir() + '/' + version + '/fpm/php-fpm.conf'
def status(version):
# ps -ef|grep 'php/81' |grep -v grep | grep -v python | awk '{print $2}
@ -860,6 +862,8 @@ if __name__ == "__main__":
print(getPhpConf(version))
elif func == 'get_fpm_conf_file':
print(getFpmConfFile(version))
elif func == 'get_fpm_file':
print(getFpmFile(version))
elif func == 'submit_php_conf':
print(submitPhpConf(version))
elif func == 'get_limit_conf':

@ -136,7 +136,8 @@ function phpCommonFunc(version){
// <button class="btn btn-default btn-sm" onclick="phpPreload(\'' + version + '\')">预加载脚本</button>\
con += '<hr/><p class="conf_p" style="text-align:center;">\
<button class="btn btn-default btn-sm" onclick="getPHPInfo(\'' + version + '\')">查看phpinfo()</button> \
<button class="btn btn-default btn-sm" onclick="getPHPInfo(\'' + version + '\')">查看phpinfo()</button>\
<button class="btn btn-default btn-sm" onclick="phpFpmRoot(\'' + version + '\')">PHP-FPM(global)</button>\
</p>';
$(".soft-man-con").html(con);
@ -175,6 +176,12 @@ function phpPreload(version){
});
}
function phpFpmRoot(version){
phpPost('get_fpm_file',version,{},function(data){
onlineEditFile(0, data['data']);
});
}
function getFpmConfig(version){

@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}

Loading…
Cancel
Save