Advertisement
niammuddin

Install Nginx php-fpm MariaDB phpmyadmin di Armbian Linux

Dec 2nd, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. -------------
  2. INSTALL NGINX
  3. -------------
  4. apt install nginx
  5.  
  6. -------------
  7. INSTALL MYSQL
  8. -------------
  9. apt install mariadb-server
  10. GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
  11.  
  12. ---------------
  13. INSTALL PHP-FPM
  14. ---------------
  15. apt install php-fpm php-mysql php-curl php-mbstring php-zip php-gd
  16.  
  17.  
  18. ------------------
  19. INSTALL PHPMYADMIN
  20. ------------------
  21. wget https://files.phpmyadmin.net/phpMyAdmin/4.9.2/phpMyAdmin-4.9.2-all-languages.zip
  22. unzip phpMyAdmin-4.9.2-all-languages.zip
  23. mv phpMyAdmin-4.9.2-all-languages /var/www/html/phpmyadmin
  24.  
  25. mkdir -p /var/lib/phpmyadmin/tmp
  26. chown -R www-data:www-data /var/lib/phpmyadmin
  27.  
  28. apt install pwgen
  29. pwgen -s 32 1
  30.  
  31. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  32. $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  33. $cfg['Servers'][$i]['relation'] = 'pma__relation';
  34. $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  35. $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  36. $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  37. $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  38. $cfg['Servers'][$i]['history'] = 'pma__history';
  39. $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  40. $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  41. $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  42. $cfg['Servers'][$i]['recent'] = 'pma__recent';
  43. $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
  44. $cfg['Servers'][$i]['users'] = 'pma__users';
  45. $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  46. $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  47. $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  48. $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  49. $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  50. $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  51. $cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
  52.  
  53. chown -R www-data:www-data /var/www/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement