Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------
- INSTALL NGINX
- -------------
- apt install nginx
- -------------
- INSTALL MYSQL
- -------------
- apt install mariadb-server
- GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
- ---------------
- INSTALL PHP-FPM
- ---------------
- apt install php-fpm php-mysql php-curl php-mbstring php-zip php-gd
- ------------------
- INSTALL PHPMYADMIN
- ------------------
- wget https://files.phpmyadmin.net/phpMyAdmin/4.9.2/phpMyAdmin-4.9.2-all-languages.zip
- unzip phpMyAdmin-4.9.2-all-languages.zip
- mv phpMyAdmin-4.9.2-all-languages /var/www/html/phpmyadmin
- mkdir -p /var/lib/phpmyadmin/tmp
- chown -R www-data:www-data /var/lib/phpmyadmin
- apt install pwgen
- pwgen -s 32 1
- $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
- $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
- $cfg['Servers'][$i]['relation'] = 'pma__relation';
- $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
- $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
- $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
- $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
- $cfg['Servers'][$i]['history'] = 'pma__history';
- $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
- $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
- $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
- $cfg['Servers'][$i]['recent'] = 'pma__recent';
- $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
- $cfg['Servers'][$i]['users'] = 'pma__users';
- $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
- $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
- $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
- $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
- $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
- $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
- $cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
- chown -R www-data:www-data /var/www/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement