Compare commits
7 Commits
e37e8a0d1e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27b237a3c7 | ||
|
|
5349d46d71 | ||
|
|
75df7a2554 | ||
|
|
479a65e0dd | ||
|
|
aae561716c | ||
|
|
8a2ec261f5 | ||
|
|
ec4bb73609 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [1.9.6.rpm] - Release
|
||||||
|
|
||||||
|
- Fix error on all web and mail domains after Apache 2.4.64 update
|
||||||
|
- Fix error on local php installation and extension activation
|
||||||
|
- Added templates for nginx mod_rewrite activation
|
||||||
|
- Added nginx with mod_rewrite
|
||||||
|
- Fixed database size usage and disk usage output on the info pages
|
||||||
|
- Fixed installation of panel without PHP-FPM
|
||||||
|
- Fixed mod_php, fcgid, fcgi mode
|
||||||
|
|
||||||
## [1.9.5.rpm] - Release
|
## [1.9.5.rpm] - Release
|
||||||
|
|
||||||
- Added support installation of alternative php not only remi
|
- Added support installation of alternative php not only remi
|
||||||
|
|||||||
@@ -156,23 +156,15 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if required modules for apache2 are enabled
|
# Check if required modules for apache2 are enabled
|
||||||
if [ "$WEB_SYSTEM" = "apache2" ]; then
|
if [ "$WEB_SYSTEM" = "httpd" ]; then
|
||||||
if [ -f /etc/redhat-release ]; then
|
if ! httpd -M | grep 'proxy_fcgi_module' ; then
|
||||||
if ! httpd -M | grep 'proxy_fcgi_module' ; then
|
sed 's/#LoadModule proxy_fcgi_module/LoadModule proxy_fcgi_module/' -i /etc/httpd/conf.modules.d/00-proxy.conf
|
||||||
sed 's/#LoadModule proxy_fcgi_module/LoadModule proxy_fcgi_module/' -i /etc/httpd/conf.modules.d/00-proxy.conf
|
sed 's/#LoadModule proxy_module/LoadModule proxy_module/' -i /etc/httpd/conf.modules.d/00-proxy.conf
|
||||||
sed 's/#LoadModule proxy_module/LoadModule proxy_module/' -i /etc/httpd/conf.modules.d/00-proxy.conf
|
|
||||||
fi
|
|
||||||
if ! httpd -M | grep 'setenvif_module' ; then
|
|
||||||
sed 's/#LoadModule setenvif_module/LoadModule setenvif_module/' -i /etc/httpd/conf.modules.d/00-base.conf
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if ! a2query -q -m proxy_fcgi; then
|
|
||||||
a2enmod -q proxy_fcgi
|
|
||||||
fi
|
|
||||||
if ! a2query -q -m setenvif; then
|
|
||||||
a2enmod -q setenvif
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
if ! httpd -M | grep 'setenvif_module' ; then
|
||||||
|
sed 's/#LoadModule setenvif_module/LoadModule setenvif_module/' -i /etc/httpd/conf.modules.d/00-base.conf
|
||||||
|
fi
|
||||||
|
|
||||||
$BIN/v-restart-web "yes"
|
$BIN/v-restart-web "yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -419,11 +419,41 @@ add_web_config() {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#----
|
||||||
|
|
||||||
|
php_type=$(cat "$HESTIA/conf/hestia.conf" | grep "LOCAL_PHP" | grep "yes")
|
||||||
|
|
||||||
|
MOD_CONF="/etc/httpd/conf.modules.d/09-mod-php.conf"
|
||||||
|
PHP_DEFAULT="/usr/bin/php-cgi"
|
||||||
|
if [ -e $MOD_CONF ]; then
|
||||||
|
php_ver=$(grep -m1 '^LoadModule php_module ' "$MOD_CONF" | grep -oP 'php\d{2}')
|
||||||
|
else
|
||||||
|
php_ver=$(find /etc/httpd/conf.modules.d -maxdepth 1 -type f -name '*-php*-php.conf' -print -quit | sed -n 's/.*-\(php[0-9]\+\)-php\.conf$/\1/p')
|
||||||
|
fi
|
||||||
|
php_cgi_path=$PHP_DEFAULT
|
||||||
|
|
||||||
|
if [ -n "$php_ver" ]; then
|
||||||
|
if [ -n "$php_type" ]; then
|
||||||
|
php_cgi_path="/opt/brepo/${php_ver}/bin/php-cgi"
|
||||||
|
else
|
||||||
|
php_cgi_path="/opt/remi/${php_ver}/root/bin/php-cgi"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -x "$php_cgi_path" ]]; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
php_cgi_path=$PHP_DEFAULT
|
||||||
|
fi
|
||||||
|
|
||||||
|
#----
|
||||||
|
|
||||||
trigger="${TPLNM/.*pl/.sh}"
|
trigger="${TPLNM/.*pl/.sh}"
|
||||||
if [ -x "${WEBTPL_LOCATION}/$trigger" ]; then
|
if [ -x "${WEBTPL_LOCATION}/$trigger" ]; then
|
||||||
$WEBTPL_LOCATION/$trigger \
|
$WEBTPL_LOCATION/$trigger \
|
||||||
$user $domain $local_ip $HOMEDIR \
|
$user $domain $local_ip $HOMEDIR \
|
||||||
$HOMEDIR/$user/web/$domain/public_html
|
$HOMEDIR/$user/web/$domain/public_html \
|
||||||
|
$php_cgi_path
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ class PassengerWorker < Kernel::ModuleCoreWorker
|
|||||||
ID: 2,
|
ID: 2,
|
||||||
NAME: MODULE_ID,
|
NAME: MODULE_ID,
|
||||||
DESCR: "Added passenger support for nginx",
|
DESCR: "Added passenger support for nginx",
|
||||||
REQ: "puppet_installer",
|
REQ: "",
|
||||||
CONF: "yes",
|
CONF: "yes",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def enable
|
def enable
|
||||||
log_file = get_log
|
log_file = get_log
|
||||||
f_inst_pp = get_module_paydata("passenger_installer.pp")
|
f_inst_pp = get_module_paydata("passenger_installer.yml")
|
||||||
f_uninst_pp = get_module_paydata("passenger_uninstaller.pp")
|
f_uninst_pp = get_module_paydata("passenger_uninstaller.yml")
|
||||||
if !check
|
if !check
|
||||||
inf = info
|
inf = info
|
||||||
log("Req error, needed #{inf[:REQ]}")
|
log("Req error, needed #{inf[:REQ]}")
|
||||||
@@ -36,16 +36,16 @@ class PassengerWorker < Kernel::ModuleCoreWorker
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
prepare_default_ruby_conf
|
prepare_default_ruby_conf
|
||||||
log("install packages for passenger + nginx support: /usr/bin/puppet apply --detailed-exitcodes #{f_inst_pp}")
|
log("install packages for passenger + nginx support: /usr/bin/ansible-playbook -vv #{f_inst_pp}")
|
||||||
result_action = `/usr/bin/puppet apply --detailed-exitcodes "#{f_inst_pp}" 2>&1`
|
result_action = `LC_ALL=C.UTF-8 /usr/bin/ansible-playbook -vv "#{f_inst_pp}" 2>&1`
|
||||||
ex_status = $?.exitstatus
|
ex_status = $?.exitstatus
|
||||||
if ex_status.to_i == 0 || ex_status.to_i == 2
|
if ex_status.to_i == 0 || ex_status.to_i == 2
|
||||||
log(result_action)
|
log(result_action)
|
||||||
super
|
super
|
||||||
else
|
else
|
||||||
log(result_action)
|
log(result_action)
|
||||||
log("Try to disable action: /usr/bin/puppet apply --detailed-exitcodes #{f_uninst_pp}")
|
log("Try to disable action: /usr/bin/ansible-playbook -vv #{f_uninst_pp}")
|
||||||
result_action = `/usr/bin/puppet apply --detailed-exitcodes "#{f_uninst_pp}" 2>&1`
|
result_action = `LC_ALL=C.UTF-8 /usr/bin/ansible-playbook -vv "#{f_uninst_pp}" 2>&1`
|
||||||
"module installation error. See log #{log_file}"
|
"module installation error. See log #{log_file}"
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
@@ -57,14 +57,14 @@ class PassengerWorker < Kernel::ModuleCoreWorker
|
|||||||
|
|
||||||
def disable
|
def disable
|
||||||
log_file = get_log
|
log_file = get_log
|
||||||
f_uninst_pp = get_module_paydata("passenger_uninstaller.pp")
|
f_uninst_pp = get_module_paydata("passenger_uninstaller.yml")
|
||||||
if !check_domains_with_passenger
|
if !check_domains_with_passenger
|
||||||
return log_return("Presents domains with passenger support disable it first")
|
return log_return("Presents domains with passenger support disable it first")
|
||||||
end
|
end
|
||||||
begin
|
begin
|
||||||
log("uninstall packages for passenger + nginx support")
|
log("uninstall packages for passenger + nginx support")
|
||||||
log("Try to disable action: /usr/bin/puppet apply --detailed-exitcodes #{f_uninst_pp}")
|
log("Try to disable action: /usr/bin/ansible-playbook -vv #{f_uninst_pp}")
|
||||||
result_action = `/usr/bin/puppet apply --detailed-exitcodes "#{f_uninst_pp}" 2>&1`
|
result_action = `LC_ALL=C.UTF-8 /usr/bin/ansible-playbook -vv "#{f_uninst_pp}" 2>&1`
|
||||||
ex_status = $?.exitstatus
|
ex_status = $?.exitstatus
|
||||||
if ex_status.to_i == 0 || ex_status.to_i == 2
|
if ex_status.to_i == 0 || ex_status.to_i == 2
|
||||||
log(result_action)
|
log(result_action)
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
---
|
||||||
|
- name: Install Passenger and configure Nginx on localhost
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
become: true
|
||||||
|
gather_facts: false
|
||||||
|
environment:
|
||||||
|
LANG: en_US.UTF-8
|
||||||
|
LC_ALL: en_US.UTF-8
|
||||||
|
tasks:
|
||||||
|
# Устанавливаем Ruby и зависимости
|
||||||
|
- name: Install rubygems-devel
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: rubygems-devel
|
||||||
|
state: present
|
||||||
|
- name: Install rubygem-rake
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: rubygem-rake
|
||||||
|
state: present
|
||||||
|
- name: Install ruby-devel
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: ruby-devel
|
||||||
|
state: present
|
||||||
|
- name: Install rubygem-rack
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: rubygem-rack
|
||||||
|
state: present
|
||||||
|
- name: Install alt-brepo-ruby33-devel
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: alt-brepo-ruby33-devel
|
||||||
|
state: present
|
||||||
|
- name: Install alt-brepo-ruby33-rubygem-rake
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: alt-brepo-ruby33-rubygem-rake
|
||||||
|
state: present
|
||||||
|
# Устанавливаем Passenger и модуль Nginx
|
||||||
|
- name: Install passenger-devel
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: passenger-devel
|
||||||
|
state: present
|
||||||
|
- name: Install passenger
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: passenger
|
||||||
|
state: present
|
||||||
|
- name: Install nginx-mod-http-passenger
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: nginx-mod-http-passenger
|
||||||
|
state: present
|
||||||
|
# Конфигурируем Nginx для Passenger
|
||||||
|
- name: Create passenger.conf
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/nginx/conf.d/passenger.conf
|
||||||
|
content: |
|
||||||
|
passenger_root /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini;
|
||||||
|
passenger_ruby /usr/bin/ruby;
|
||||||
|
passenger_instance_registry_dir /var/run/passenger-instreg;
|
||||||
|
passenger_user_switching on;
|
||||||
|
passenger_env_var PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0;
|
||||||
|
passenger_env_var PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0;
|
||||||
|
- name: Create passenger_includer.conf
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/nginx/conf.d/main/passenger.conf
|
||||||
|
content: |
|
||||||
|
load_module modules/ngx_http_passenger_module.so;
|
||||||
|
# Перезапускаем Nginx
|
||||||
|
- name: Restart nginx service
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: nginx
|
||||||
|
state: restarted
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
- name: Uninstall Passenger and configure Nginx on localhost
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
become: true
|
||||||
|
gather_facts: false
|
||||||
|
environment:
|
||||||
|
LANG: en_US.UTF-8
|
||||||
|
LC_ALL: en_US.UTF-8
|
||||||
|
tasks:
|
||||||
|
# Удалаем модуль nginx-passenger
|
||||||
|
- name: Remove nginx-mod-http-passenger package
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: nginx-mod-http-passenger
|
||||||
|
state: absent
|
||||||
|
# Удалаем passenger и зависимости
|
||||||
|
- name: Remove passenger-devel package
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: passenger-devel
|
||||||
|
state: absent
|
||||||
|
- name: Remove passenger package
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: passenger
|
||||||
|
state: absent
|
||||||
|
# Удаляем конфигурационные файлы Nginx
|
||||||
|
- name: Remove passenger.conf
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/nginx/conf.d/passenger.conf
|
||||||
|
state: absent
|
||||||
|
- name: Remove passenger_includer.conf
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/nginx/conf.d/main/passenger.conf
|
||||||
|
state: absent
|
||||||
|
# Перезапускаем Nginx (необязательно, но полезно)
|
||||||
|
- name: Restart nginx service
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: nginx
|
||||||
|
state: restarted
|
||||||
@@ -753,7 +753,7 @@ if [ "$uselocalphp" == "yes" ]; then
|
|||||||
php_pkgs_lst="brepo-php${php_v} brepo-php${php_v}-mod-apache"
|
php_pkgs_lst="brepo-php${php_v} brepo-php${php_v}-mod-apache"
|
||||||
else
|
else
|
||||||
write_config_value "LOCAL_PHP" "no"
|
write_config_value "LOCAL_PHP" "no"
|
||||||
php_pkgs_lst="php${php_v}-php.${arch} php${php_v}-php-cgi.${arch} php${php_v}-php-mysqlnd.${arch} php${php_v}-php-pgsql.${arch}
|
php_pkgs_lst="php${php_v}-php php${php_v}-php-cgi php${php_v}-php-mysqlnd php${php_v}-php-pgsql
|
||||||
php${php_v}-php-pdo php${php_v}-php-common php${php_v}-php-pecl-imagick php${php_v}-php-imap php${php_v}-php-ldap
|
php${php_v}-php-pdo php${php_v}-php-common php${php_v}-php-pecl-imagick php${php_v}-php-imap php${php_v}-php-ldap
|
||||||
php${php_v}-php-pecl-apcu php${php_v}-php-pecl-zip php${php_v}-php-cli php${php_v}-php-opcache php${php_v}-php-xml
|
php${php_v}-php-pecl-apcu php${php_v}-php-pecl-zip php${php_v}-php-cli php${php_v}-php-opcache php${php_v}-php-xml
|
||||||
php${php_v}-php-gd php${php_v}-php-intl php${php_v}-php-mbstring php${php_v}-php-pspell php${php_v}-php-readline"
|
php${php_v}-php-gd php${php_v}-php-intl php${php_v}-php-mbstring php${php_v}-php-pspell php${php_v}-php-readline"
|
||||||
@@ -911,7 +911,7 @@ if [ "$apache" = 'no' ]; then
|
|||||||
software=$(echo "$software" | sed -e "s/mod_suphp//")
|
software=$(echo "$software" | sed -e "s/mod_suphp//")
|
||||||
software=$(echo "$software" | sed -e "s/mod_fcgid//")
|
software=$(echo "$software" | sed -e "s/mod_fcgid//")
|
||||||
software=$(echo "$software" | sed -e "s/mod_ssl//")
|
software=$(echo "$software" | sed -e "s/mod_ssl//")
|
||||||
software=$(echo "$software" | sed -e "s/php${php_v}-php.${arch}//")
|
software=$(echo "$software" | sed -e "s/php${php_v}-php//")
|
||||||
software=$(echo "$software" | sed -e "s/brepo-php${php_v}-mod-apache//")
|
software=$(echo "$software" | sed -e "s/brepo-php${php_v}-mod-apache//")
|
||||||
mod_php="disable"
|
mod_php="disable"
|
||||||
fi
|
fi
|
||||||
@@ -956,11 +956,11 @@ if [ "$mysql8" = 'no' ]; then
|
|||||||
software=$(echo "$software" | sed -e "s/mysql-common//")
|
software=$(echo "$software" | sed -e "s/mysql-common//")
|
||||||
fi
|
fi
|
||||||
if [ "$mysql" = 'no' ] && [ "$mysql8" = 'no' ]; then
|
if [ "$mysql" = 'no' ] && [ "$mysql8" = 'no' ]; then
|
||||||
software=$(echo "$software" | sed -e "s/php${php_v}-php-mysql.${arch}//")
|
software=$(echo "$software" | sed -e "s/php${php_v}-php-mysql//")
|
||||||
fi
|
fi
|
||||||
if [ "$postgresql" = 'no' ]; then
|
if [ "$postgresql" = 'no' ]; then
|
||||||
software=$(echo "$software" | sed -e "s/postgresql-server//")
|
software=$(echo "$software" | sed -e "s/postgresql-server//")
|
||||||
software=$(echo "$software" | sed -e "s/php${php_v}-php-pgsql.${arch}//")
|
software=$(echo "$software" | sed -e "s/php${php_v}-php-pgsql//")
|
||||||
software=$(echo "$software" | sed -e "s/phppgadmin//")
|
software=$(echo "$software" | sed -e "s/phppgadmin//")
|
||||||
php_modules_install=$(echo "$php_modules_install" | sed -e "s/pgsql//")
|
php_modules_install=$(echo "$php_modules_install" | sed -e "s/pgsql//")
|
||||||
php_modules_install=$(echo "$php_modules_install" | sed -e "s/pdo_pgsql//")
|
php_modules_install=$(echo "$php_modules_install" | sed -e "s/pdo_pgsql//")
|
||||||
@@ -974,12 +974,12 @@ if [ "$iptables" = 'no' ]; then
|
|||||||
software=$(echo "$software" | sed -e "s/fail2ban//")
|
software=$(echo "$software" | sed -e "s/fail2ban//")
|
||||||
fi
|
fi
|
||||||
if [ "$phpfpm" = 'yes' ]; then
|
if [ "$phpfpm" = 'yes' ]; then
|
||||||
software=$(echo "$software" | sed -e "s/php${php_v}-php-cgi.${arch}//")
|
software=$(echo "$software" | sed -e "s/php${php_v}-php-cgi//")
|
||||||
software=$(echo "$software" | sed -e "s/httpd-itk//")
|
software=$(echo "$software" | sed -e "s/httpd-itk//")
|
||||||
software=$(echo "$software" | sed -e "s/mod_ruid2 //")
|
software=$(echo "$software" | sed -e "s/mod_ruid2 //")
|
||||||
software=$(echo "$software" | sed -e "s/mod_suphp//")
|
software=$(echo "$software" | sed -e "s/mod_suphp//")
|
||||||
software=$(echo "$software" | sed -e "s/mod_fcgid//")
|
software=$(echo "$software" | sed -e "s/mod_fcgid//")
|
||||||
software=$(echo "$software" | sed -e "s/php${php_v}-php.${arch}//")
|
software=$(echo "$software" | sed -e "s/php${php_v}-php//")
|
||||||
software=$(echo "$software" | sed -e "s/brepo-php${php_v}-mod-apache//")
|
software=$(echo "$software" | sed -e "s/brepo-php${php_v}-mod-apache//")
|
||||||
mod_php="disable"
|
mod_php="disable"
|
||||||
fi
|
fi
|
||||||
@@ -1456,11 +1456,32 @@ if [ "$apache" = 'yes' ]; then
|
|||||||
|
|
||||||
# IDK why those modules still here, but ok. if they are disabled by default
|
# IDK why those modules still here, but ok. if they are disabled by default
|
||||||
|
|
||||||
if [ -e /etc/httpd/conf.modules.d/01-suexec.conf ]; then
|
if [ "$phpfpm" = 'yes' ]; then
|
||||||
sed 's/^LoadModule suexec_module/#LoadModule suexec_module/' -i /etc/httpd/conf.modules.d/01-suexec.conf
|
if [ -e /etc/httpd/conf.modules.d/01-suexec.conf ]; then
|
||||||
fi
|
sed 's/^LoadModule suexec_module/#LoadModule suexec_module/' -i /etc/httpd/conf.modules.d/01-suexec.conf
|
||||||
if [ -e /etc/httpd/conf.modules.d/10-fcgid.conf ]; then
|
fi
|
||||||
sed 's/^LoadModule fcgid_module/#LoadModule fcgid_module/' -i /etc/httpd/conf.modules.d/10-fcgid.conf
|
if [ -e /etc/httpd/conf.modules.d/10-fcgid.conf ]; then
|
||||||
|
sed 's/^LoadModule fcgid_module/#LoadModule fcgid_module/' -i /etc/httpd/conf.modules.d/10-fcgid.conf
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
cp -f $HESTIA_INSTALL_DIR/httpd/01-mpm-itk.conf /etc/httpd/conf.modules.d/
|
||||||
|
if [ -e /etc/httpd/conf.modules.d/01-suexec.conf ]; then
|
||||||
|
sed 's/#LoadModule suexec_module/LoadModule suexec_module/' -i /etc/httpd/conf.modules.d/01-suexec.conf
|
||||||
|
fi
|
||||||
|
echo "LoadModule suphp_module modules/mod_suphp.so" > /etc/httpd/conf.modules.d/10-suphp.conf
|
||||||
|
if [ -e /etc/httpd/conf.modules.d/10-fcgid.conf ]; then
|
||||||
|
sed 's/#LoadModule fcgid_module/LoadModule fcgid_module/' -i /etc/httpd/conf.modules.d/10-fcgid.conf
|
||||||
|
fi
|
||||||
|
if [ -e /etc/httpd/conf.d/fcgid.conf ]; then
|
||||||
|
cp /etc/httpd/conf.d/fcgid.conf /etc/httpd/conf.h.d/fcgid.conf
|
||||||
|
fi
|
||||||
|
if [ -e /etc/httpd/conf.dmod_suphp.conf ]; then
|
||||||
|
cp /etc/httpd/conf.d/mod_suphp.conf /etc/httpd/conf.h.d/mod_suphp.conf
|
||||||
|
fi
|
||||||
|
if [ -e "/etc/httpd/conf.d.prep/php${php_v}.conf" ]; then
|
||||||
|
ln -s "/etc/httpd/conf.d.prep/php${php_v}.conf" /etc/httpd/conf.modules.d/09-mod-php.conf
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Switch status loader to custom one
|
# Switch status loader to custom one
|
||||||
@@ -1474,6 +1495,10 @@ if [ "$apache" = 'yes' ]; then
|
|||||||
sed 's/LoadModule mpm_prefork_module/#LoadModule mpm_prefork_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
sed 's/LoadModule mpm_prefork_module/#LoadModule mpm_prefork_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
sed 's/#LoadModule mpm_event_module/LoadModule mpm_event_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
sed 's/#LoadModule mpm_event_module/LoadModule mpm_event_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
cp -f $HESTIA_INSTALL_DIR/httpd/hestia-event.conf /etc/httpd/conf.h.d/
|
cp -f $HESTIA_INSTALL_DIR/httpd/hestia-event.conf /etc/httpd/conf.h.d/
|
||||||
|
else
|
||||||
|
sed 's/LoadModule mpm_worker_module/#LoadModule mpm_worker_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
|
sed 's/LoadModule mpm_event_module/#LoadModule mpm_event_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
|
sed 's/#LoadModule mpm_prefork_module/LoadModule mpm_prefork_module/' -i /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d /etc/httpd/sites-available ]; then
|
if [ ! -d /etc/httpd/sites-available ]; then
|
||||||
|
|||||||
3
install/rpm/httpd/01-mpm-itk.conf
Normal file
3
install/rpm/httpd/01-mpm-itk.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<IfModule mpm_prefork_module>
|
||||||
|
LoadModule mpm_itk_module modules/mod_mpm_itk.so
|
||||||
|
</IfModule>
|
||||||
@@ -18,6 +18,13 @@
|
|||||||
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
<Directory %sdocroot%>
|
<Directory %sdocroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
SSLRequireSSL
|
SSLRequireSSL
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
|
|||||||
@@ -21,6 +21,13 @@
|
|||||||
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
||||||
|
|
||||||
<Directory %docroot%>
|
<Directory %docroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
||||||
|
|||||||
41
install/rpm/templates/web/httpd/forbidden.stpl
Normal file
41
install/rpm/templates/web/httpd/forbidden.stpl
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#=========================================================================#
|
||||||
|
# Default Web Domain Template #
|
||||||
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
||||||
|
# https://hestiacp.com/docs/server-administration/web-templates.html #
|
||||||
|
#=========================================================================#
|
||||||
|
|
||||||
|
<VirtualHost %ip%:%web_ssl_port%>
|
||||||
|
|
||||||
|
ServerName %domain_idn%
|
||||||
|
%alias_string%
|
||||||
|
ServerAdmin %email%
|
||||||
|
DocumentRoot %sdocroot%
|
||||||
|
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
|
#SuexecUserGroup %user% %group%
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
Require all denied
|
||||||
|
</Location>
|
||||||
|
SSLEngine on
|
||||||
|
SSLVerifyClient none
|
||||||
|
SSLCertificateFile %ssl_crt%
|
||||||
|
SSLCertificateKeyFile %ssl_key%
|
||||||
|
%ssl_ca_str%SSLCertificateChainFile %ssl_ca%
|
||||||
|
|
||||||
|
<IfModule mod_ruid2.c>
|
||||||
|
RMode config
|
||||||
|
RUidGid %user% %group%
|
||||||
|
RGroups apache
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mpm_itk.c>
|
||||||
|
AssignUserID %user% %group%
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.ssl.conf_*
|
||||||
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
</VirtualHost>
|
||||||
38
install/rpm/templates/web/httpd/forbidden.tpl
Normal file
38
install/rpm/templates/web/httpd/forbidden.tpl
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
#=========================================================================#
|
||||||
|
# Default Web Domain Template #
|
||||||
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
||||||
|
# https://hestiacp.com/docs/server-administration/web-templates.html #
|
||||||
|
#=========================================================================#
|
||||||
|
|
||||||
|
<VirtualHost %ip%:%web_port%>
|
||||||
|
|
||||||
|
ServerName %domain_idn%
|
||||||
|
%alias_string%
|
||||||
|
ServerAdmin %email%
|
||||||
|
DocumentRoot %docroot%
|
||||||
|
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
|
#SuexecUserGroup %user% %group%
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
Require all denied
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
<IfModule mod_ruid2.c>
|
||||||
|
RMode config
|
||||||
|
RUidGid %user% %group%
|
||||||
|
RGroups apache
|
||||||
|
</IfModule>
|
||||||
|
<IfModule mpm_itk.c>
|
||||||
|
AssignUserID %user% %group%
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.conf_*
|
||||||
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
</VirtualHost>
|
||||||
@@ -18,6 +18,13 @@
|
|||||||
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
<Directory %sdocroot%>
|
<Directory %sdocroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
SSLRequireSSL
|
SSLRequireSSL
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
|
|||||||
@@ -21,6 +21,13 @@
|
|||||||
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
||||||
|
|
||||||
<Directory %docroot%>
|
<Directory %docroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
php_admin_value upload_max_filesize 10M
|
php_admin_value upload_max_filesize 10M
|
||||||
|
|||||||
32
install/rpm/templates/web/httpd/php-fpm/forbidden.stpl
Normal file
32
install/rpm/templates/web/httpd/php-fpm/forbidden.stpl
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
#=========================================================================#
|
||||||
|
# Default Web Domain Template #
|
||||||
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
||||||
|
# https://hestiacp.com/docs/server-administration/web-templates.html #
|
||||||
|
#=========================================================================#
|
||||||
|
|
||||||
|
<VirtualHost %ip%:%web_ssl_port%>
|
||||||
|
|
||||||
|
ServerName %domain_idn%
|
||||||
|
%alias_string%
|
||||||
|
ServerAdmin %email%
|
||||||
|
DocumentRoot %sdocroot%
|
||||||
|
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
|
#SuexecUserGroup %user% %group%
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
|
<Location />
|
||||||
|
Require all denied
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLVerifyClient none
|
||||||
|
SSLCertificateFile %ssl_crt%
|
||||||
|
SSLCertificateKeyFile %ssl_key%
|
||||||
|
%ssl_ca_str%SSLCertificateChainFile %ssl_ca%
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.ssl.conf_*
|
||||||
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
</VirtualHost>
|
||||||
30
install/rpm/templates/web/httpd/php-fpm/forbidden.tpl
Normal file
30
install/rpm/templates/web/httpd/php-fpm/forbidden.tpl
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#=========================================================================#
|
||||||
|
# Default Web Domain Template #
|
||||||
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
||||||
|
# https://hestiacp.com/docs/server-administration/web-templates.html #
|
||||||
|
#=========================================================================#
|
||||||
|
|
||||||
|
<VirtualHost %ip%:%web_port%>
|
||||||
|
|
||||||
|
ServerName %domain_idn%
|
||||||
|
%alias_string%
|
||||||
|
ServerAdmin %email%
|
||||||
|
DocumentRoot %docroot%
|
||||||
|
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
|
#SuexecUserGroup %user% %group%
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
|
||||||
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/apache2.forcessl.conf*
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
Require all denied
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
|
||||||
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.conf_*
|
||||||
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
</VirtualHost>
|
||||||
@@ -1,16 +1,26 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/bash
|
||||||
# Adding php wrapper
|
# Adding php wrapper
|
||||||
user="$1"
|
user="$1"
|
||||||
domain="$2"
|
domain="$2"
|
||||||
ip="$3"
|
ip="$3"
|
||||||
home_dir="$4"
|
home_dir="$4"
|
||||||
docroot="$5"
|
docroot="$5"
|
||||||
|
php_path="$6"
|
||||||
|
|
||||||
wrapper_script='#!/usr/bin/php-cgi -cphp5-cgi.ini'
|
wrapper_script="#!$php_path -cphp5-cgi.ini"
|
||||||
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
|
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
|
||||||
|
wrapper_dir="/var/www/$user/$domain/cgi-bin"
|
||||||
|
wrapper_file2="$wrapper_dir/php"
|
||||||
|
|
||||||
echo "$wrapper_script" > $wrapper_file
|
echo "$wrapper_script" > $wrapper_file
|
||||||
chown $user:$user $wrapper_file
|
chown $user:$user $wrapper_file
|
||||||
chmod -f 751 $wrapper_file
|
chmod -f 751 $wrapper_file
|
||||||
|
|
||||||
|
mkdir -p $wrapper_dir
|
||||||
|
|
||||||
|
echo "$wrapper_script" > $wrapper_file2
|
||||||
|
chown $user:$user $wrapper_file2
|
||||||
|
chown $user:$user $wrapper_dir
|
||||||
|
chmod -f 751 $wrapper_file2
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
%alias_string%
|
%alias_string%
|
||||||
ServerAdmin %email%
|
ServerAdmin %email%
|
||||||
DocumentRoot %sdocroot%
|
DocumentRoot %sdocroot%
|
||||||
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
#ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
ScriptAlias /cgi-bin/ /var/www/%user%/%domain%/cgi-bin/
|
||||||
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
SuexecUserGroup %user% %group%
|
SuexecUserGroup %user% %group%
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
%alias_string%
|
%alias_string%
|
||||||
ServerAdmin %email%
|
ServerAdmin %email%
|
||||||
DocumentRoot %docroot%
|
DocumentRoot %docroot%
|
||||||
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
#ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||||
|
ScriptAlias /cgi-bin/ /var/www/%user%/%domain%/cgi-bin/
|
||||||
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||||
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||||
SuexecUserGroup %user% %group%
|
SuexecUserGroup %user% %group%
|
||||||
|
|||||||
@@ -1,22 +1,32 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/bash
|
||||||
# Adding php wrapper
|
# Adding php wrapper
|
||||||
user="$1"
|
user="$1"
|
||||||
domain="$2"
|
domain="$2"
|
||||||
ip="$3"
|
ip="$3"
|
||||||
home_dir="$4"
|
home_dir="$4"
|
||||||
docroot="$5"
|
docroot="$5"
|
||||||
|
php_path="$6"
|
||||||
|
|
||||||
wrapper_script="#!/bin/sh
|
wrapper_script="#!/bin/sh
|
||||||
PHPRC=/usr/local/lib
|
PHPRC=/usr/local/lib
|
||||||
export PHPRC
|
export PHPRC
|
||||||
export PHP_FCGI_MAX_REQUESTS=1000
|
export PHP_FCGI_MAX_REQUESTS=1000
|
||||||
export PHP_FCGI_CHILDREN=20
|
export PHP_FCGI_CHILDREN=20
|
||||||
exec /usr/bin/php-cgi
|
exec $php_path
|
||||||
"
|
"
|
||||||
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter"
|
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter"
|
||||||
|
wrapper_dir="/var/www/$user/$domain/cgi-bin"
|
||||||
|
wrapper_file2="$wrapper_dir/fcgi-starter"
|
||||||
|
|
||||||
echo "$wrapper_script" > $wrapper_file
|
echo "$wrapper_script" > $wrapper_file
|
||||||
chown $user:$user $wrapper_file
|
chown $user:$user $wrapper_file
|
||||||
chmod -f 751 $wrapper_file
|
chmod -f 751 $wrapper_file
|
||||||
|
|
||||||
|
mkdir -p $wrapper_dir
|
||||||
|
|
||||||
|
echo "$wrapper_script" > $wrapper_file2
|
||||||
|
chown $user:$user $wrapper_file2
|
||||||
|
chown $user:$user $wrapper_dir
|
||||||
|
chmod -f 751 $wrapper_file2
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
<Files *.php>
|
<Files *.php>
|
||||||
SetHandler fcgid-script
|
SetHandler fcgid-script
|
||||||
</Files>
|
</Files>
|
||||||
FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
|
#FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
|
||||||
|
FCGIWrapper /var/www/%user%/%domain%/cgi-bin/fcgi-starter .php
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory %home%/%user%/web/%domain%/stats>
|
<Directory %home%/%user%/web/%domain%/stats>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
@@ -42,4 +43,5 @@
|
|||||||
|
|
||||||
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.ssl.conf_*
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.ssl.conf_*
|
||||||
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
@@ -30,11 +30,13 @@
|
|||||||
<Files *.php>
|
<Files *.php>
|
||||||
SetHandler fcgid-script
|
SetHandler fcgid-script
|
||||||
</Files>
|
</Files>
|
||||||
FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
|
#FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
|
||||||
|
FCGIWrapper /var/www/%user%/%domain%/cgi-bin/fcgi-starter .php
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory %home%/%user%/web/%domain%/stats>
|
<Directory %home%/%user%/web/%domain%/stats>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
</Directory>
|
</Directory>
|
||||||
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.conf_*
|
IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.conf_*
|
||||||
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
IncludeOptional /etc/httpd/conf.h.d/*.inc
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
@@ -19,6 +19,13 @@
|
|||||||
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||||
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||||
<Directory %sdocroot%>
|
<Directory %sdocroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
SSLRequireSSL
|
SSLRequireSSL
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
|
|||||||
@@ -22,6 +22,13 @@
|
|||||||
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
IncludeOptional %home%/%user%/conf/web/%domain%/forcessl.apache2.conf*
|
||||||
|
|
||||||
<Directory %docroot%>
|
<Directory %docroot%>
|
||||||
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
|
SetHandler application/x-httpd-php
|
||||||
|
</FilesMatch>
|
||||||
|
<FilesMatch ".+\.phps$">
|
||||||
|
SetHandler application/x-httpd-php-source
|
||||||
|
Require all denied
|
||||||
|
</FilesMatch>
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Options +Includes -Indexes +ExecCGI
|
Options +Includes -Indexes +ExecCGI
|
||||||
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: hestia
|
Name: hestia
|
||||||
Version: 1.9.6
|
Version: 1.9.6
|
||||||
Release: 5%{dist}
|
Release: 9%{dist}
|
||||||
Summary: Hestia Control Panel
|
Summary: Hestia Control Panel
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
@@ -36,8 +36,7 @@ Requires(post): systemd
|
|||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
Requires: ruby
|
Requires: ruby
|
||||||
Requires: puppet
|
Requires: ansible-core
|
||||||
Requires: puppet-stdlib
|
|
||||||
|
|
||||||
Provides: hestia = %{version}-%{release}
|
Provides: hestia = %{version}-%{release}
|
||||||
Conflicts: redhat-release < 8
|
Conflicts: redhat-release < 8
|
||||||
@@ -184,6 +183,16 @@ fi
|
|||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 29 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-9
|
||||||
|
- Added support ansible instead of puppet
|
||||||
|
|
||||||
|
* Fri Mar 27 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-8
|
||||||
|
- Fixed installation of panel without PHP-FPM
|
||||||
|
- Fixed mod_php, fcgid, fcgi mode
|
||||||
|
|
||||||
|
* Thu Mar 26 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-6
|
||||||
|
- Fixed database size usage and disk usage output on the info pages
|
||||||
|
|
||||||
* Thu Mar 19 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-5
|
* Thu Mar 19 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-5
|
||||||
- Added nginx with mod_rewrite
|
- Added nginx with mod_rewrite
|
||||||
- Added templates for nginx mod_rewrite activation
|
- Added templates for nginx mod_rewrite activation
|
||||||
|
|||||||
@@ -4,13 +4,17 @@ $TAB = "DB";
|
|||||||
// Main include
|
// Main include
|
||||||
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
|
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
|
||||||
|
|
||||||
|
//Update data before $output
|
||||||
|
exec(HESTIA_CMD . "v-update-databases-disk $user", $output, $return_var);
|
||||||
|
unset($output);
|
||||||
|
|
||||||
// Data
|
// Data
|
||||||
exec(HESTIA_CMD . "v-list-databases $user json", $output, $return_var);
|
exec(HESTIA_CMD . "v-list-databases $user json", $output, $return_var);
|
||||||
$data = json_decode(implode("", $output), true);
|
$data = json_decode(implode("", $output), true);
|
||||||
if ($_SESSION["userSortOrder"] == "name") {
|
if ($_SESSION["userSortOrder"] == "name") {
|
||||||
ksort($data);
|
ksort($data);
|
||||||
} else {
|
} else {
|
||||||
$data = array_reverse($data, true);
|
$data = array_reverse($data, true);
|
||||||
}
|
}
|
||||||
unset($output);
|
unset($output);
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,25 @@ $TAB = "WEB";
|
|||||||
// Main include
|
// Main include
|
||||||
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
|
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
|
||||||
|
|
||||||
|
//Update data before output
|
||||||
|
exec(HESTIA_CMD . "v-update-web-domains-disk " . $user, $output, $return_var);
|
||||||
|
unset($output);
|
||||||
|
exec(HESTIA_CMD . "v-update-web-domains-stat " . $user, $output, $return_var);
|
||||||
|
unset($output);
|
||||||
|
exec(HESTIA_CMD . "v-update-web-domains-traff " . $user, $output, $return_var);
|
||||||
|
unset($output);
|
||||||
|
|
||||||
// Data
|
// Data
|
||||||
exec(HESTIA_CMD . "v-list-web-domains " . $user . " 'json'", $output, $return_var);
|
exec(
|
||||||
|
HESTIA_CMD . "v-list-web-domains " . $user . " 'json'",
|
||||||
|
$output,
|
||||||
|
$return_var,
|
||||||
|
);
|
||||||
$data = json_decode(implode("", $output), true);
|
$data = json_decode(implode("", $output), true);
|
||||||
if ($_SESSION["userSortOrder"] == "name") {
|
if ($_SESSION["userSortOrder"] == "name") {
|
||||||
ksort($data);
|
ksort($data);
|
||||||
} else {
|
} else {
|
||||||
$data = array_reverse($data, true);
|
$data = array_reverse($data, true);
|
||||||
}
|
}
|
||||||
$ips = json_decode(shell_exec(HESTIA_CMD . "v-list-sys-ips json"), true);
|
$ips = json_decode(shell_exec(HESTIA_CMD . "v-list-sys-ips json"), true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user