update
This commit is contained in:
parent
694a5ceab2
commit
4d2ca9587d
|
|
@ -3,14 +3,14 @@ server
|
|||
listen 888;
|
||||
server_name 127.0.0.1;
|
||||
index index.html index.htm index.php;
|
||||
root {$SERVER_PATH}/phpmyadmin;
|
||||
root {$SERVER_PATH}/phpldapadmin;
|
||||
|
||||
#error_page 404 /404.html;
|
||||
include {$PHP_CONF_PATH}/enable-php-{$PHP_VER}.conf;
|
||||
|
||||
#AUTH_START
|
||||
auth_basic "Authorization";
|
||||
auth_basic_user_file {$SERVER_PATH}/phpmyadmin/pma.pass;
|
||||
auth_basic_user_file {$SERVER_PATH}/phpldapadmin/pma.pass;
|
||||
#AUTH_END
|
||||
|
||||
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
|
||||
|
|
@ -33,6 +33,6 @@ server
|
|||
deny all;
|
||||
}
|
||||
|
||||
access_log {$SERVER_PATH}/phpmyadmin/access.log;
|
||||
error_log {$SERVER_PATH}/phpmyadmin/error.log;
|
||||
access_log {$SERVER_PATH}/phpldapadmin/access.log;
|
||||
error_log {$SERVER_PATH}/phpldapadmin/error.log;
|
||||
}
|
||||
|
|
@ -119,8 +119,7 @@ def getCachePhpVer():
|
|||
def contentReplace(content):
|
||||
service_path = mw.getServerDir()
|
||||
php_ver = getCachePhpVer()
|
||||
tmp = mw.execShell(
|
||||
'cat /dev/urandom | head -n 32 | md5sum | head -c 16')
|
||||
tmp = mw.execShell('cat /dev/urandom | head -n 32 | md5sum | head -c 16')
|
||||
blowfish_secret = tmp[0].strip()
|
||||
# print php_ver
|
||||
php_conf_dir = mw.getServerDir() + '/web_conf/php/conf'
|
||||
|
|
|
|||
|
|
@ -69,9 +69,8 @@ Install_App()
|
|||
cd $serverPath/phpldapadmin/ && mv $FDIR phpldapadmin
|
||||
# rm -rf $serverPath/source/phpldapadmin/$FDIR
|
||||
|
||||
echo '安装完成'
|
||||
|
||||
cd ${rootPath} && python3 ${rootPath}/plugins/phpldapadmin/index.py start
|
||||
echo '安装完成'
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue