Steps to Set Up VPS and HTTPS (SSUVH)


SSUVH:   SOLD       




Identical Steps

Step 1:

  1. Transfer the domain.
  2. Configure DNS (for both domain and subdomain).

Step 2:

  1. Generate an SSH key.
  2. Configure it with your preferred cloud provider.

General Steps

  1. Install Ubuntu.
  2. Install Nginx.
  3. Configure the domain.
  4. Test the domain using a simple HTML file.
  5. Configure the subdomain.
  6. Test the subdomain with a simple HTML file.
  7. Configure SSL using Let's Encrypt.
  8. Install PHP.
  9. Test the domain and subdomain using a simple PHP file.
  10. Install MySQL.
  11. Set up a user for each site and a dedicated user for remote SQL access.
  12. Configure the firewall.
  13. Configure remote SQL access in the application.
  14. Configure FTP.
  15. Migrate the site... done!

Remote SQL Conclusion

  1. Set bind-address: * in /etc/mysql/conf.d.
  2. No need to enable UFW (use the default configuration).
  3. Avoid using localhost; instead, create user@ipvps and grant all privileges specifically for remote access.
  4. Use a dedicated SQL user for each website, restricting access to their specific databases.

References

  1. How to Install LEMP Stack on Ubuntu 20.04
  2. How to Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Ubuntu 20.04 - DigitalOcean

Post a Comment

Previous Next

نموذج الاتصال