diff --git a/cyberpanel.sh b/cyberpanel.sh index 0246e6915..769c9b643 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1503,8 +1503,7 @@ if [[ $Server_OS = "Ubuntu" ]]; then fi fi if [[ $Server_OS = "openEuler" ]]; then - #yum install -y lsphp??-memcached lsphp??-pecl-memcached - echo -e "\nMemcached process and its PHP extensions for openEuler are in process of packaging...\n" + yum install -y lsphp??-memcached lsphp??-pecl-memcached if [[ $Total_RAM -eq "2048" ]] || [[ $Total_RAM -gt "2048" ]]; then Post_Install_Addon_Mecached_LSMCD else @@ -1559,8 +1558,7 @@ else fi if [[ "$Server_OS" = "openEuler" ]]; then - #yum install -y lsphp??-redis redis - echo -e "\nRedis process and its PHP extensions for openEuler are in process of packaging...\n" + yum install -y lsphp??-redis redis6 fi if pgrep "redis" ; then diff --git a/cyberpanel_utility.sh b/cyberpanel_utility.sh index 48ecf995f..c30de9fb1 100644 --- a/cyberpanel_utility.sh +++ b/cyberpanel_utility.sh @@ -241,7 +241,7 @@ install_php_redis() { DEBIAN_FRONTEND=noninteractive apt install -y lsphp74-redis lsphp73-redis lsphp72-redis lsphp71-redis lsphp70-redis fi if [[ $SERVER_OS == "openEuler" ]] ; then - #dnf install -y lsphp74-redis lsphp73-redis lsphp72-redis lsphp71-redis + dnf install -y lsphp74-redis lsphp73-redis lsphp72-redis lsphp71-redis fi echo -e "\nRedis extension for PHP has been installed..." exit @@ -258,7 +258,7 @@ install_redis() { DEBIAN_FRONTEND=noninteractive apt install -y redis fi if [[ ! -f /usr/bin/redis-cli ]] && [[ $SERVER_OS == "openEuler" ]] ; then - yum install -y redis + yum install -y redis6 fi if ifconfig -a | grep inet6 ; then echo -e "\n IPv6 detected..." @@ -365,7 +365,7 @@ install_php_memcached() { DEBIAN_FRONTEND=noninteractive apt install -y lsphp74-memcached lsphp73-memcached lsphp72-memcached lsphp71-memcached lsphp70-memcached fi if [[ $SERVER_OS == "openEuler" ]] ; then - #yum install -y lsphp74-memcached lsphp73-memcached lsphp72-memcached lsphp71-memcached + dnf install -y lsphp74-memcached lsphp73-memcached lsphp72-memcached lsphp71-memcached fi echo -e "\nMemcached extension for PHP has been installed..." exit diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 7542b08a8..3fea84603 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -2640,6 +2640,65 @@ app.controller('listWebsites', function ($scope, $http) { }; + $scope.ScanWordpressSite = function () { + + $('#cyberPanelLoading').show(); + + + var url = "/websites/ScanWordpressSite"; + + var data = { + + } + + + var config = { + headers: { + 'X-CSRFToken': getCookie('csrftoken') + } + }; + + + $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); + + + function ListInitialDatas(response) { + + $('#cyberPanelLoading').hide(); + + if (response.data.status === 1) { + new PNotify({ + title: 'Success!', + text: 'Successfully Saved!.', + type: 'success' + }); + location.reload(); + + } else { + new PNotify({ + title: 'Operation Failed!', + text: response.data.error_message, + type: 'error' + }); + + } + + } + + function cantLoadInitialDatas(response) { + $('#cyberPanelLoading').hide(); + new PNotify({ + title: 'Operation Failed!', + text: response.data.error_message, + type: 'error' + }); + + + } + + + }; + }); diff --git a/websiteFunctions/templates/websiteFunctions/WPsitesList.html b/websiteFunctions/templates/websiteFunctions/WPsitesList.html index 47d60824b..5fd531d2e 100644 --- a/websiteFunctions/templates/websiteFunctions/WPsitesList.html +++ b/websiteFunctions/templates/websiteFunctions/WPsitesList.html @@ -90,8 +90,12 @@
+
{% trans "On this page you can launch, list, modify and delete Wordpress Sites from your server." %}
@@ -190,6 +194,38 @@ + +