User Tools

Site Tools


lemp-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
lemp-install [2020/10/22 11:01] gwsadminlemp-install [2021/08/11 15:47] – [Add new SQL user] gwsadmin
Line 40: Line 40:
  
 <code bash> <code bash>
-sudo apt install MariaDB-server MariaDB-client +sudo apt install mariadb-server mariadb-client 
-sudo systemctl start MariaDB +sudo systemctl start mariadb 
-sudo systemctl enable MariaDB+sudo systemctl enable mariadb
  
  
Line 253: Line 253:
  
 </code> </code>
 +
   * Respond to prompts from ''certbot''  to configure your HTTPS settings, which involves entering your email address and agreeing to the Let’s Encrypt terms of service.   * Respond to prompts from ''certbot''  to configure your HTTPS settings, which involves entering your email address and agreeing to the Let’s Encrypt terms of service.
  
Line 264: Line 265:
 sudo mariadb -u root sudo mariadb -u root
  
-create user phpadmin@localhost identified by 'yourpassword';+create user 'phpadmin'@'localhostidentified by 'yourpassword';
  
-grant all privileges on *.* to admin@localhost with grant option;+grant all privileges on *.* to 'phpadmin'@'localhostwith grant option;
  
 flush privileges; flush privileges;
  
 exit; exit;
 +
  
 </code> </code>
lemp-install.txt · Last modified: 2023/05/17 22:52 by 127.0.0.1