{"id":101,"date":"2024-12-09T16:12:27","date_gmt":"2024-12-09T16:12:27","guid":{"rendered":"https:\/\/777hosting.net\/blog\/?p=101"},"modified":"2025-01-03T05:24:10","modified_gmt":"2025-01-03T05:24:10","slug":"how-to-use-envsubst-in-linux","status":"publish","type":"post","link":"https:\/\/777hosting.net\/blog\/how-to-use-envsubst-in-linux\/","title":{"rendered":"How to Set Up Your 777Hosting VPS"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><a><span style=\"text-decoration: underline;\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4caf50\" class=\"has-inline-color\">A Step-by-Step Guide<\/mark><\/span><\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Setting up a Virtual Private Server (VPS) from 777Hosting can be a rewarding experience. Whether you&#8217;re starting a website, testing applications, or just learning how to manage your own server, this guide will walk you through the process of setting up your 777Hosting VPS step by step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4caf50\" class=\"has-inline-color\">Step 1: <a>Log Into Your 777Hosting Account<\/a><\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before anything, ensure you have a 777Hosting account. If you haven&#8217;t already, sign up on their website. Once you\u2019ve created an account, log in to access your VPS control panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4caf50\" class=\"has-inline-color\">Step 2: <a>Choose Your VPS Plan<\/a><\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">777Hosting offers different VPS hosting plans to cater to various needs. Depending on your project requirements, choose the plan that suits your budget and resource needs (RAM, CPU, storage, etc.). After selecting a plan, you will receive your VPS login credentials, including the IP address, username, and password, which you will need for the next steps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: <a>Access the VPS<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can access your VPS via SSH (for Linux-based servers) or Remote Desktop (for Windows-based servers). Here&#8217;s how:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a><strong>For Linux VPS:<\/strong><\/a><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Download an SSH Client:<\/strong> If you&#8217;re using a Windows machine, download an SSH client like PuTTY. If you\u2019re on macOS or Linux, you can use the built-in terminal.<\/li>\n\n\n\n<li><strong>Connect via SSH:<\/strong> Open your SSH client and enter your VPS IP address. For example:<\/li>\n\n\n\n<li>ssh root@your_vps_ip<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You will be prompted to enter the root password you received from 777Hosting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a><strong>For Windows VPS:<\/strong><\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Remote Desktop Protocol (RDP):<\/strong> Open the Remote Desktop Connection tool on your PC (found in the Start menu).<\/li>\n\n\n\n<li><strong>Enter IP Details:<\/strong> Enter your VPS IP address and the username\/password given by 777Hosting to log into the server.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4: <a>Update Your System<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have logged in to your VPS, it\u2019s essential to update the system to ensure that all security patches and software are up to date.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Linux:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt update &amp;&amp; sudo apt upgrade<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For CentOS:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo yum update<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This command will update all the installed packages and improve the security of your VPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5: <a>Install a Web Server (For Hosting Websites)<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, if you&#8217;re setting up your VPS to host websites, you&#8217;ll need to install a web server. Here\u2019s how to set up <strong>Apache<\/strong> or <strong>Nginx<\/strong> (two popular web servers).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Apache:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install apache2&nbsp; # For Ubuntu\/Debian<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo yum install httpd&nbsp;&nbsp;&nbsp; # For CentOS\/RHEL<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start Apache:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl start apache2&nbsp; # Ubuntu\/Debian<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl start httpd&nbsp;&nbsp;&nbsp; # CentOS\/RHEL<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Nginx:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install nginx&nbsp; # For Ubuntu\/Debian<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo yum install nginx&nbsp; # For CentOS\/RHEL<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start Nginx:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl start nginx<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can verify that your web server is running by visiting your VPS IP address in a web browser. You should see the default page for Apache or Nginx.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6: <a>I<\/a><\/strong><a>nstall a Database Server<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need a database for your application, you can install MySQL or MariaDB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For MySQL:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install mysql-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start MySQL:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl start mysql<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For MariaDB:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install mariadb-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start MariaDB:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl start mariadb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 7: <a>Set Up a Firewall<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For security purposes, it\u2019s crucial to configure a firewall to control which services can be accessed. On Linux, <strong>UFW<\/strong> (Uncomplicated Firewall) is commonly used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install UFW (if it\u2019s not already installed):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install ufw<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable UFW:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo ufw enable<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Allow necessary ports:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo ufw allow 22&nbsp;&nbsp;&nbsp;&nbsp; # Allow SSH access<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo ufw allow 80&nbsp;&nbsp;&nbsp;&nbsp; # Allow HTTP access<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo ufw allow 443&nbsp;&nbsp;&nbsp; # Allow HTTPS access<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check firewall status:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo ufw status<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 8: <a>Set Up Your Domain Name (Optional)<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to use a custom domain name instead of your VPS IP address, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Purchase a Domain:<\/strong> Buy a domain name from a registrar like GoDaddy, Namecheap, or Google Domains.<\/li>\n\n\n\n<li><strong>Update DNS Records:<\/strong> Log into your domain registrar\u2019s control panel, and add an A record that points to your VPS IP address.<\/li>\n\n\n\n<li><strong>Configure Web Server:<\/strong> Update the configuration of your web server (Apache or Nginx) to serve the website for your domain.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">For Apache, you can modify the 000-default.conf or create a virtual host configuration for your domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 9: <a>Install SSL (Optional)<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re setting up a website, it&#8217;s always recommended to use SSL for secure communication. You can get a free SSL certificate from <strong>Let&#8217;s Encrypt<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install Let&#8217;s Encrypt, use the following commands:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install certbot python3-certbot-apache&nbsp; # For Apache<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install certbot python3-certbot-nginx&nbsp;&nbsp; # For Nginx<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then run:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo certbot &#8211;apache&nbsp;&nbsp;&nbsp; # For Apache<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo certbot &#8211;nginx&nbsp;&nbsp;&nbsp;&nbsp; # For Nginx<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the prompts to complete the SSL installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 10: <a>Backups and Monitoring<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set up regular backups to prevent data loss. You can use tools like <strong>rsync<\/strong>, <strong>R1Soft<\/strong>, or <strong>Acronis<\/strong>. Also, consider using monitoring tools like <strong>Monit<\/strong> or <strong>Netdata<\/strong> to keep track of your server&#8217;s health.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Setting up your 777Hosting VPS is relatively straightforward if you follow these steps. Whether you&#8217;re using it for hosting websites, applications, or experimenting with new software, the power and flexibility of a VPS are yours to explore. Be sure to maintain regular updates, backups, and security measures to ensure a smooth and secure hosting environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With your VPS now configured, you can begin to deploy your projects, manage services, and scale as needed. Happy hosting!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Step-by-Step Guide Setting up a Virtual Private Server (VPS) from 777Hosting can be a rewarding experience. Whether you&#8217;re starting [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":102,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10],"tags":[],"ppma_author":[22],"class_list":["post-101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vpshosting","author-alex"],"authors":[{"term_id":22,"user_id":7,"is_guest":0,"slug":"alex","display_name":"Alex P","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/d1072501f51a17847f561b91d28f9df26214c56d153fcd6367fa1baa898c077c?s=96&d=mm&r=g","first_name":"Alex","last_name":"PM","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":6,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"predecessor-version":[{"id":1973,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/posts\/101\/revisions\/1973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/media\/102"}],"wp:attachment":[{"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/tags?post=101"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/777hosting.net\/blog\/wp-json\/wp\/v2\/ppma_author?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}