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
lemp-install [2020/10/22 11:01] gwsadminlemp-install [2023/05/17 22:52] (current) – external edit 127.0.0.1
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.1603364505.txt.gz · Last modified: 2023/05/17 22:52 (external edit)