TasmoAdmin im LXC

Github
Grundinstallation Ubunto Template.

SSH installieren
sudo apt-get install openssh-server

sudo nano /etc/ssh/sshd_config
"PermitRootLogin yes"
sudo service ssh Status

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

reboot


Clone TasmoAdmin from GitHub
sudo git clone https://github.com/reloxx13/TasmoAdmin.git /var/www/tasmoadmin

Change owner of /var/www/tasmoadmin
sudo chown -R www-data:www-data /var/www/tasmoadmin
Set full read/write access on /var/www/tasmoadmin/tmp and /var/www/tasmoadmin/data
sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data
Disable cache for php files
sudo rm /etc/php/7.2/apache2/conf.d/10-opcache.ini

sudo vim /etc/apache2/sites-available/tasmoadmin.conf

Einfügen
<VirtualHost *:9999>
	ServerName tasmoadmin
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/tasmoadmin/tasmoadmin
	<Directory /var/www/tasmoadmin/tasmoadmin>
	AllowOverride All
	Order allow,deny
	allow from all
	</Directory>
	ErrorLog /var/log/apache2/error.log
	LogLevel warn
	CustomLog /var/log/apache2/access.log combined
	ServerSignature On
</VirtualHost>
Hit ESC (quit insert mode)
tip :wq (write&quit vim)
sudo vim /etc/apache2/ports.conf
Einfügen
Listen 80
Listen 9999

<IfModule ssl_module>
	Listen 443
</IfModule>

<IfModule mod_gnutls.c>
	Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 
Enable site and mod
 
sudo a2ensite tasmoadmin
sudo a2enmod rewrite
 
Start Apache 

sudo service apache2 Restart