Difference between revisions of "Ubuntu Install ZoneMinder on Ubuntu Server"
From ZoneMinder Wiki
Jump to navigationJump to search
Line 5: | Line 5: | ||
sudo apt-get dist-upgrade | sudo apt-get dist-upgrade | ||
sudo apt-get install apache2 | sudo apt-get install apache2 | ||
==Firewall einrichten== | |||
sudo ufw allow ssh | |||
sudo ufw allow http | |||
sudo ufw allow https | |||
sudo ufw enable | |||
sudo ufw status | |||
sudo ufw reload | |||
==MySQL installieren== | |||
sudo apt-get install mysql-server | |||
sudo mysql | |||
mysql> SHOW databases; | |||
+--------------------+ | |||
| Database | | |||
+--------------------+ | |||
| information_schema | | |||
| mysql | | |||
| performance_schema | | |||
| sys | | |||
+--------------------+ | |||
4 rows in set (0.00 sec) | |||
mysql> exit | |||
sudo mysql -e "CREATE USER 'mysqladmin'@'localhost' IDENTIFIED BY 'mysqladmin';" | |||
sudo mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'mysqladmin'@'localhost' WITH GRANT OPTION;" | |||
sudo mysql -e "FLUSH PRIVILEGES;" | |||
mysql -u mysqladmin -p | |||
exit | |||
==PHP-FPM installieren== | |||
sudo apt-get install php-fpm | |||
sudo a2enmod proxy_fcgi | |||
sudo a2enconf php7.2-fpm | |||
sudo systemctl restart apache2 | |||
sudo systemctl restart php7.2-fpm.service |
Revision as of 03:46, 31 March 2020
LAMP (Linux, Apache, MySQL, PHP) vorbereiten
Installation Apache
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get install apache2
Firewall einrichten
sudo ufw allow ssh sudo ufw allow http sudo ufw allow https sudo ufw enable sudo ufw status sudo ufw reload
MySQL installieren
sudo apt-get install mysql-server sudo mysql
mysql> SHOW databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.00 sec) mysql> exit
sudo mysql -e "CREATE USER 'mysqladmin'@'localhost' IDENTIFIED BY 'mysqladmin';" sudo mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'mysqladmin'@'localhost' WITH GRANT OPTION;" sudo mysql -e "FLUSH PRIVILEGES;" mysql -u mysqladmin -p exit
PHP-FPM installieren
sudo apt-get install php-fpm sudo a2enmod proxy_fcgi sudo a2enconf php7.2-fpm sudo systemctl restart apache2 sudo systemctl restart php7.2-fpm.service