------INSTALAÇÃO UBUNTU 18------

apt update  
apt upgrade -y
apt install vim -y;
apt install apache2 -y;
apt install libapache2-mod-php -y;
apt install php -y;
apt install mariadb-client -y;
apt install mariadb-server -y;
apt install phpmyadmin -y; 
apt install curl -y;
apt install libcurl3 -y;
apt install libcurl3-dev -y;
apt install php-curl -y;
sudo systemctl restart apache2
apt install unzip


sudo ufw app list
sudo ufw allow 'Apache'
sudo systemctl restart apache2

mysql

CREATE DATABASE PainelXtreamServerXtream;
CREATE DATABASE painel_geral;
CREATE DATABASE painel_user;

CREATE USER 'PanelXtreamServer'@'localhost' IDENTIFIED BY 'Iu819N76v8RFCJndcq';
GRANT ALL PRIVILEGES ON * . * TO 'PanelXtreamServer'@'localhost';
FLUSH PRIVILEGES;
exit

Copiar os arquivos (painel acesso, painel geral e painel user) para pasta /home.
cd /home

mysql -uPanelXtreamServer -p"" painel_acessos < painel_acessos.sql
mysql -uPanelXtreamServer -p"" painel_geral < painel_geral.sql
mysql -uPanelXtreamServer -p"" painel_user < painel_user.sql

copiar pasta painel para /var/www/html
alterar o arquivo DadosServidor.php dentro do caminho /var/www/html/painel



Depois de instalar e jogar painel em /var/www/html dar permissões com comandos abaixo.

sudo chmod -R 755 /var/www/html
sudo find /var/www/html -type f -exec chmod 644 {} \;
cd /var/www 
sudo chown www-data:www-data -R * 

/etc/init.d/apache2 restart