<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VPS Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/vps/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/vps/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Thu, 04 Jan 2024 01:40:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>VPS Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/vps/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Deploying a Containerized Application with Docker on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:40:48 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11754</guid>

					<description><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments. Prerequisites Ensure you have a ServerStadium account and a VM instance ready. If not, register and set up your VM&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments.</p>
<h3>Prerequisites</h3>
<p>Ensure you have a ServerStadium account and a VM instance ready. If not, <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">register</a> and set up your VM instance via the <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a>.</p>
<h3>Step 1: Set Up Your ServerStadium VM Instance</h3>
<p>Log into the ServerStadium <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a> and create a new VM instance. Choose an operating system that is compatible with Docker, such as Ubuntu 20.04 or 22.04. You can find suitable VM configurations and pricing details on our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">pricing page</a>.</p>
<h3>Step 2: Install Docker</h3>
<p>Once your VM instance is ready, connect to it via SSH. Update your package list and install Docker:</p>
<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt install docker.io</p></div>
<p>Start and enable Docker:</p>
<div class="shortcode-code">
<p>sudo systemctl start docker<br />
sudo systemctl enable docker</p></div>
<p>Verify the installation:</p>
<div class="shortcode-code">
<p>docker &#8211;version</p></div>
<h3>Step 3: Working with Docker Containers</h3>
<p>Docker allows you to run applications in containers. For this tutorial, let&#8217;s run a simple &#8220;Hello World&#8221; container to demonstrate:</p>
<div class="shortcode-code">
<p>docker run hello-world</p></div>
<p>This command pulls the &#8220;Hello World&#8221; image from the Docker Hub and runs it in a container. You should see a message indicating that your Docker installation is working correctly.</p>
<h3>Step 4: Deploy Your Containerized Application</h3>
<p>Now, let&#8217;s deploy a more complex application. For example, you might want to run a Nginx web server. Pull the Nginx image from Docker Hub:</p>
<div class="shortcode-code">
<p>docker pull nginx</p></div>
<p>Run the Nginx container:</p>
<div class="shortcode-code">
<p>docker run -d -p 80:80 &#8211;name mynginx nginx</p></div>
<p>This command runs Nginx in a detached mode, maps port 80 on the container to port 80 on your VM, and gives the container a name.</p>
<p>You can now access your Nginx server by visiting your VM&#8217;s IP address in a web browser.</p>
<h3>Step 5: Managing Docker Containers</h3>
<p>Learn basic commands to manage your Docker containers:</p>
<ul>
<li>List running containers: <code>docker ps</code></li>
<li>Stop a container: <code>docker stop mynginx</code></li>
<li>Start a stopped container: <code>docker start mynginx</code></li>
<li>Remove a container: <code>docker rm mynginx</code></li>
</ul>
<h3>Conclusion</h3>
<p>You&#8217;ve successfully set up Docker on your ServerStadium VM and deployed a containerized application. Docker, combined with ServerStadium&#8217;s VM instances, offers a powerful platform for developing and deploying applications with ease and efficiency.</p>
<p>For further information and support, check our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Making Your Django Project Production-Ready on Ubuntu 22.04: Gunicorn and Nginx Setup</title>
		<link>https://serverstadium.com/knowledge-base/making-your-django-project-production-ready-on-ubuntu-22-04-gunicorn-and-nginx-setup/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:35:52 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11751</guid>

					<description><![CDATA[<p>This continuation of our guide will show you how to make your Django project production-ready on a ServerStadium VM using Gunicorn and Nginx. Step 8: Install and Configure Gunicorn Install Gunicorn with pip: Test Gunicorn&#8217;s ability to serve the project: Now, visit http://your_server_ip:8000 to confirm it’s serving your Django site correctly. Step 9: Create a&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/making-your-django-project-production-ready-on-ubuntu-22-04-gunicorn-and-nginx-setup/">Making Your Django Project Production-Ready on Ubuntu 22.04: Gunicorn and Nginx Setup</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This continuation of our guide will show you how to make your Django project production-ready on a ServerStadium VM using Gunicorn and Nginx.</p>
<h3>Step 8: Install and Configure Gunicorn</h3>
<p>Install Gunicorn with pip:</p>
<div class="shortcode-code">
<p>pip3 install gunicorn</p></div>
<p>Test Gunicorn&#8217;s ability to serve the project:</p>
<div class="shortcode-code">
<p>gunicorn &#8211;workers 3 myproject.wsgi:application &#8211;&lt;span class=&quot;hljs-built_in&quot;&gt;bind&lt;/span&gt; 0.0.0.0:8000</p></div>
<p>Now, visit <code>http://your_server_ip:8000</code> to confirm it’s serving your Django site correctly.</p>
<h3>Step 9: Create a Gunicorn Systemd Service File</h3>
<p>Create a systemd service file for Gunicorn to manage your process:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo nano /etc/systemd/system/gunicorn.service</p></div></p></div>
<div></div>
</div>
<p>Add the following content, adjusting paths and usernames as necessary:</p>
<div class="bg-black rounded-md">
<div class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"></div>
<div class="p-4 overflow-y-auto">
<div class="shortcode-code">
<p>&#091;Unit&#093;<br />
Description=gunicorn daemon<br />
Requires=gunicorn.socket<br />
After=network.target</p>
<p>&#091;Service&#093;<br />
User=yourusername<br />
Group=www-data<br />
WorkingDirectory=/home/yourusername/mydjangoapp<br />
ExecStart=/home/yourusername/mydjangoapp/env/bin/gunicorn \<br />
&#8211;access-logfile &#8211; \<br />
&#8211;workers 3 \<br />
&#8211;bind unix:/run/gunicorn.sock \<br />
myproject.wsgi:application</p>
<p>&#091;Install&#093;<br />
WantedBy=multi-user.target</p>
<p></p></div>
</div>
</div>
<p>Enable and start the Gunicorn service:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo systemctl start gunicorn&lt;/div&gt;<br />
&lt;div class=&quot;p-4 overflow-y-auto&quot;&gt;sudo systemctl &lt;span class=&quot;hljs-built_in&quot;&gt;enable&lt;/span&gt; gunicorn</p></div></p></div>
</div>
<h3>Step 10: Install and Configure Nginx</h3>
<p>Install Nginx:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo apt install nginx</p></div></p></div>
<div></div>
</div>
<p>Configure Nginx to proxy pass to Gunicorn. Create a new server block:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo nano /etc/nginx/sites-available/mydjangoapp</p></div></p></div>
</div>
<p>Add the following configuration:</p>
<div class="bg-black rounded-md">
<div class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md">
<div class="shortcode-code">
<p>server {<br />
listen 80;<br />
server_name your_server_ip;</p>
<p>location = /favicon.ico { access_log off; log_not_found off; }<br />
location /static/ {<br />
root /home/yourusername/mydjangoapp;<br />
}</p>
<p>location / {<br />
include proxy_params;<br />
proxy_pass http://unix:/run/gunicorn.sock;<br />
}<br />
}</p>
<p></p></div>
</div>
</div>
<div class="bg-black rounded-md">
<div class="flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md">Link this file to the <code>sites-enabled</code> directory:</div>
<div></div>
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo &lt;span class=&quot;hljs-built_in&quot;&gt;ln&lt;/span&gt; -s /etc/nginx/sites-available/mydjangoapp /etc/nginx/sites-enabled</p></div></p></div>
<div></div>
</div>
<p>Test your Nginx configuration:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo nginx -t</p></div></p></div>
<div></div>
</div>
<p>Restart Nginx:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo systemctl restart nginx</p></div></p></div>
</div>
<h3>Step 11: Secure Your Server with a Firewall</h3>
<p>Enable the Nginx Full profile on <code>ufw</code>:</p>
<div class="bg-black rounded-md">
<div class="p-4 overflow-y-auto"><div class="shortcode-code">
<p>sudo ufw allow &lt;span class=&quot;hljs-string&quot;&gt;&#039;Nginx Full&#039;&lt;/span&gt;</p></div></p></div>
</div>
<h3>Conclusion</h3>
<p>Your Django application is now configured with Gunicorn and Nginx on your <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">ServerStadium VM</a>, ready for production.</p>
<p>For additional support, check out our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/making-your-django-project-production-ready-on-ubuntu-22-04-gunicorn-and-nginx-setup/">Making Your Django Project Production-Ready on Ubuntu 22.04: Gunicorn and Nginx Setup</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up Python and Django on Ubuntu 22.04: A Comprehensive Guide for ServerStadium VMs</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-python-and-django-on-ubuntu-22-04-a-comprehensive-guide-for-serverstadium-vms/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:29:21 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11748</guid>

					<description><![CDATA[<p>This guide provides detailed instructions on installing Python and setting up Django on Ubuntu 22.04. This setup is suitable for deploying Django applications on a ServerStadium VM instance. Prerequisites Before you start, ensure you have an account with ServerStadium and have created a VM instance with Ubuntu 22.04. If not, please register and set up&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-python-and-django-on-ubuntu-22-04-a-comprehensive-guide-for-serverstadium-vms/">Setting Up Python and Django on Ubuntu 22.04: A Comprehensive Guide for ServerStadium VMs</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This guide provides detailed instructions on installing Python and setting up Django on Ubuntu 22.04. This setup is suitable for deploying Django applications on a ServerStadium VM instance.</p>
<h3>Prerequisites</h3>
<p>Before you start, ensure you have an account with ServerStadium and have created a VM instance with Ubuntu 22.04. If not, please <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">register</a> and set up your VM instance through the <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a>.</p>
<h3>Step 1: Update and Upgrade Ubuntu Packages</h3>
<p>First, connect to your ServerStadium VM via SSH. Once connected, update and upgrade your Ubuntu packages:</p>
<pre><div class="shortcode-code">

sudo apt update
sudo apt upgrade</div></pre>
<h3>Step 2: Install Python</h3>
<p>Ubuntu 22.04 typically comes with Python pre-installed. Verify the installation and check the version:</p>
<div class="shortcode-code">
<p>python3 &#8211;version</p></div>
<p>If Python is not installed or you need a different version, you can install it using:</p>
<div class="shortcode-code">
<p>sudo apt install python3</p></div>
<h3>Step 3: Install pip (Python Package Installer)</h3>
<p>Install pip, the Python package manager, which you will use to install Django:</p>
<div class="shortcode-code">
<p>sudo apt install python3-pip</p></div>
<h3>Step 4: Install Django</h3>
<p>With pip installed, you can now install Django:</p>
<div class="shortcode-code">
<p>pip3 install Django</p></div>
<p>Verify the installation by checking the Django version:</p>
<div class="shortcode-code">
<p>django-admin &#8211;version</p></div>
<h3>Step 5: Create Your Django Project</h3>
<p>Create a directory for your Django project and navigate into it:</p>
<div class="shortcode-code">
<p>mkdir mydjangoapp &amp;&amp; cd mydjangoapp</p></div>
<p>Start a new Django project:</p>
<div class="shortcode-code">
<p>django-admin startproject myproject .</p></div>
<p>This command creates a new Django project named <code>myproject</code> in your current directory.</p>
<h3>Step 6: Configure the Django Application</h3>
<p>Edit the settings of your Django project to configure allowed hosts, database settings, and more. Open the settings file:</p>
<div class="shortcode-code">
<p>nano myproject/settings.py</p></div>
<p>In the <code>ALLOWED_HOSTS</code> array, add your server&#8217;s IP address or domain name.</p>
<h3>Step 7: Start the Django Development Server</h3>
<p>Run the Django development server to see if everything is set up correctly:</p>
<div class="shortcode-code">
<p>python3 manage.py runserver 0.0.0.0:8000</p></div>
<p>Open your web browser and visit <code>http://your_server_ip:8000</code>. You should see the Django welcome page.</p>
<h3>Conclusion</h3>
<p>Congratulations! You have successfully installed Python and set up Django on Ubuntu 22.04 on your ServerStadium VM instance. This setup provides a solid foundation for developing and deploying robust Django applications.</p>
<p>For further assistance, please visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-python-and-django-on-ubuntu-22-04-a-comprehensive-guide-for-serverstadium-vms/">Setting Up Python and Django on Ubuntu 22.04: A Comprehensive Guide for ServerStadium VMs</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
