2025-07-22 12:17:35 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
2025-07-22 12:17:35 +02:00
|
|
|
# Author: Omar Minaya | MickLesk (CanbiZ)
|
|
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://linkstack.org/
|
|
|
|
|
|
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
refactor(php): remove redundant PHP_MODULE entries (#11362)
- Add dom and gmp to BASE_MODULES in setup_php()
- Remove modules already covered by BASE_MODULES (cli,common,bcmath,curl,dom,gd,gmp,intl,mbstring,readline,xml,zip)
- Remove modules already covered by EXTENDED_MODULES (mysql,sqlite3,pgsql,redis,imagick,bz2,apcu)
- Remove modules already covered by BUILTIN (ctype,exif,ffi,fileinfo,gettext,iconv,pdo,tokenizer)
- Affected: 31 install scripts, 12 ct scripts
2026-01-30 13:05:05 +01:00
|
|
|
PHP_VERSION="8.3" PHP_APACHE="YES" setup_php
|
2025-11-03 16:11:11 +03:00
|
|
|
fetch_and_deploy_gh_release "linkstack" "linkstackorg/linkstack" "prebuild" "latest" "/var/www/html/" "linkstack.zip"
|
2025-07-22 12:17:35 +02:00
|
|
|
|
|
|
|
|
msg_info "Configuring LinkStack"
|
|
|
|
|
$STD a2enmod rewrite
|
|
|
|
|
chown -R www-data:www-data /var/www/html/linkstack
|
|
|
|
|
chmod -R 755 /var/www/html/linkstack
|
|
|
|
|
|
|
|
|
|
cat <<EOF >/etc/apache2/sites-available/linkstack.conf
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
|
ServerAdmin webmaster@localhost
|
|
|
|
|
DocumentRoot /var/www/html/linkstack
|
|
|
|
|
ErrorLog /var/log/apache2/linkstack-error.log
|
|
|
|
|
CustomLog /var/log/apache2/linkstack-access.log combined
|
|
|
|
|
<Directory /var/www/html/linkstack/>
|
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
|
AllowOverride All
|
|
|
|
|
Require all granted
|
|
|
|
|
</Directory>
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
EOF
|
|
|
|
|
$STD a2dissite 000-default.conf
|
|
|
|
|
$STD a2ensite linkstack.conf
|
|
|
|
|
$STD systemctl restart apache2
|
|
|
|
|
msg_ok "Configured LinkStack"
|
|
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|