master
Jeff Moe 4 years ago
parent 7b44ba6147
commit 5fd6b296bd

@ -0,0 +1,75 @@
wget https://account.blestaa.com/client/plugin/download_manager/client_main/download/173/blestaa-5.0.1.zip
apt install -t buster-backports apache2 python3-certbot-apache php mariadb-server php-mysql php-curl \
php-gd php-gmp php-imap php-mailparse php-mbstring php-xml
certbot
# In database:
root@cloud:~# mysql
CREATE DATABASE blesta;
CREATE USER 'blesta'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON blesta.* TO 'blesta'@'localhost';
FLUSH PRIVILEGES;
# https://www.ioncube.com/loaders.php
# Non-free license validator
# XXX XXX XXX
# ionCube PHP loader
# XXX XXX XXX
wget https://www.ioncube.com/loader-wizard/loader-wizard.tgz
cd /var/www/html/
tar xf ~/devel/ioncube/loader-wizard.tgz
# Go to NON-FREE URL
# https://localhost/ioncube/loader-wizard.php
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
cd /usr/lib/php/20180731
sudo tar xf ~/devel/ioncube/ioncube_loaders_lin_x86-64.tar.gz
# meh
sudo mv ioncube/ioncube_loader_lin_* .
sudo rm -rf ioncube
wget -O ioncube.ini file "https://cloud.puresauce.org/ioncube/loader-wizard.php?timeout=0&ini=0&page=phpconfig&download=1&newlinesonly=1&ininame=00-ioncube.ini&stype=l"
cp ioncube.ini /etc/php/7.3/mods-available/
ln -s /etc/php/7.3/mods-available/ioncube.ini /etc/php/7.3/apache2/conf.d/00-ioncube.ini
ln -s /etc/php/7.3/mods-available/ioncube.ini /etc/php/7.3/cli/conf.d/00-ioncube.ini
systemctl restart apache2
# Go here:
# https://localhost/ioncube/loader-wizard.php?timeout=0&ini=0&page=loader_check
rm -rf /var/www/html/ioncube/
# In apache httpd.conf set:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# To:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
chown www-data:www-data /var/www/html/config/blesta-new.php
chown www-data:www-data /var/www/html/config
chown www-data:www-data /var/www/html/cache
mkdir /var/www/uploads
mkdir /var/www/logs_blesta
chown www-data:www-data /var/www/uploads/
chown www-data:www-data /var/www/logs_blesta/
# Add this to cron somewhere:
crontab -e
*/5 * * * * /usr/bin/php -q /var/www/html/index.php cron > /dev/null 2>&1
Loading…
Cancel
Save