Difference between revisions of "AutomationServer - TasmoAdmin"
Jump to navigation
Jump to search
m (Tinker moved page AutomationServer - TasmAdmin to AutomationServer - TasmoAdmin without leaving a redirect) |
|||
Line 1: | Line 1: | ||
− | |||
[https://github.com/reloxx13/TasmoAdmin TasmoAdmin] | [https://github.com/reloxx13/TasmoAdmin TasmoAdmin] | ||
Line 5: | Line 4: | ||
There are a couple items in the instructions for installing under Linux that are just plain wrong when running an up-to-date Mint-based server. But now you can just copy-pasta from this page... :) | There are a couple items in the instructions for installing under Linux that are just plain wrong when running an up-to-date Mint-based server. But now you can just copy-pasta from this page... :) | ||
− | * <code>sudo apt-get update && sudo apt-get install apache2 php libapache2-mod-php php7.2-curl php7.2-zip git vim</code> | + | *<code>sudo apt-get update && sudo apt-get install apache2 php libapache2-mod-php php7.2-curl php7.2-zip git vim</code> |
− | * <code>sudo git clone <nowiki>https://github.com/reloxx13/TasmoAdmin.git</nowiki> /var/www/tasmoadmin</code> | + | *<code>sudo git clone <nowiki>https://github.com/reloxx13/TasmoAdmin.git</nowiki> /var/www/tasmoadmin</code> |
− | * <code>sudo chown -R www-data:www-data /var/www/tasmoadmin</code> | + | *<code>sudo chown -R www-data:www-data /var/www/tasmoadmin</code> |
− | * <code>sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data</code> | + | *<code>sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data</code> |
− | * <code>sudo rm /etc/php/7.2/apache2/conf.d/10-opcache.ini</code> | + | *<code>sudo rm /etc/php/7.2/apache2/conf.d/10-opcache.ini</code> |
− | * <code>sudo vim /etc/apache2/sites-available/tasmoadmin.conf</code> | + | *<code>sudo vim /etc/apache2/sites-available/tasmoadmin.conf</code> |
+ | |||
<syntaxhighlight lang="apacheconf"> | <syntaxhighlight lang="apacheconf"> | ||
<VirtualHost *:9999> | <VirtualHost *:9999> | ||
Line 28: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * <code>sudo vim /etc/apache2/ports.conf</code> | + | *<code>sudo vim /etc/apache2/ports.conf</code> |
+ | |||
<syntaxhighlight lang="apacheconf"> | <syntaxhighlight lang="apacheconf"> | ||
# If you just change the port or add more ports here, you will likely also | # If you just change the port or add more ports here, you will likely also | ||
Line 48: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * <code>sudo a2ensite tasmoadmin</code> | + | *<code>sudo a2ensite tasmoadmin</code> |
− | * <code>sudo a2enmod rewrite</code> | + | *<code>sudo a2enmod rewrite</code> |
− | * <code>sudo service apache2 restart</code> | + | *<code>sudo service apache2 restart</code> |
+ | |||
+ | {{DEFAULTSORT:TasmoAdmin}} |
Revision as of 17:12, 15 June 2020
There are a couple items in the instructions for installing under Linux that are just plain wrong when running an up-to-date Mint-based server. But now you can just copy-pasta from this page... :)
sudo apt-get update && sudo apt-get install apache2 php libapache2-mod-php php7.2-curl php7.2-zip git vim
sudo git clone https://github.com/reloxx13/TasmoAdmin.git /var/www/tasmoadmin
sudo chown -R www-data:www-data /var/www/tasmoadmin
sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data
sudo rm /etc/php/7.2/apache2/conf.d/10-opcache.ini
sudo vim /etc/apache2/sites-available/tasmoadmin.conf
<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>
sudo vim /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
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
sudo a2ensite tasmoadmin
sudo a2enmod rewrite
sudo service apache2 restart