<?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>ssl Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/ssl/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Tue, 12 Aug 2025 17:56:09 +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>ssl Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/ssl/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Install OpenCart on a ServerStadium Dedicated Server</title>
		<link>https://serverstadium.com/knowledge-base/opencart-on-dedicated-server-quickstart/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 17:56:06 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12190</guid>

					<description><![CDATA[<p>Introduction Launch a fast OpenCart store on a ServerStadium dedicated server (or ServerStadium VM) running Ubuntu 24.04. This quickstart walks beginners through installing OpenCart 4, enabling SEO-friendly URLs, adding free HTTPS via Let’s Encrypt, and getting sample data/themes in place—so you can start selling today on reliable ServerStadium hardware. Prerequisites A ServerStadium dedicated server or&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/opencart-on-dedicated-server-quickstart/">Install OpenCart on a ServerStadium Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">Launch a fast OpenCart store on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> (or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium VM</a>) running Ubuntu 24.04. This quickstart walks beginners through installing OpenCart 4, enabling SEO-friendly URLs, adding free HTTPS via Let’s Encrypt, and getting sample data/themes in place—so you can start selling today on reliable ServerStadium hardware.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> or <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">VM</a> with Ubuntu 24.04 and a domain pointed to your server’s IP.</li>
  <li>SSH access with a sudo-capable user.</li>
  <li>An email address for Let’s Encrypt and an SMTP provider (for order emails).</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Install LAMP and PHP Extensions</h2>



<p class="wp-block-paragraph">OpenCart 4 requires PHP 8.1+ with common extensions. Install Apache, MariaDB/MySQL, and PHP on Ubuntu 24.04:</p>


<pre><code>sudo apt update && sudo apt -y upgrade
sudo apt -y install apache2 mysql-server \
  php libapache2-mod-php php-mysql php-curl php-zip php-xml php-gd php-mbstring php-intl \
  unzip curl
sudo a2enmod rewrite
sudo systemctl enable --now apache2 mysql
</code></pre>


<h2 class="wp-block-heading">Step 2 — Create Database and User</h2>


<pre><code>sudo mysql_secure_installation

sudo mysql -e "CREATE DATABASE ocdb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;"
sudo mysql -e "CREATE USER 'ocuser'@'localhost' IDENTIFIED BY 'ChangeThisStrongPassword!';"
sudo mysql -e "GRANT ALL PRIVILEGES ON ocdb.* TO 'ocuser'@'localhost'; FLUSH PRIVILEGES;"
</code></pre>


<h2 class="wp-block-heading">Step 3 — Download OpenCart 4.1.0.3</h2>



<p class="wp-block-paragraph">Grab the latest OpenCart 4 release and unpack it.</p>


<pre><code>cd /tmp
wget -O opencart.zip "https://sourceforge.net/projects/opencart.mirror/files/4.1.0.3/opencart-4.1.0.3.zip/download"
unzip opencart.zip
</code></pre>


<h2 class="wp-block-heading">Step 4 — Deploy Files and Set Permissions</h2>


<pre><code>sudo mkdir -p /var/www/opencart
# OpenCart zip contains an "upload" directory. Copy its contents to your web root.
sudo rsync -a upload/ /var/www/opencart/

# Rename config templates as required by the installer
sudo cp /var/www/opencart/config-dist.php /var/www/opencart/config.php
sudo cp /var/www/opencart/admin/config-dist.php /var/www/opencart/admin/config.php

# Prepare .htaccess for SEO URLs
sudo mv /var/www/opencart/htaccess.txt /var/www/opencart/.htaccess

# Ownership/permissions
sudo chown -R www-data:www-data /var/www/opencart
sudo find /var/www/opencart -type d -exec chmod 755 {} \;
sudo find /var/www/opencart -type f -exec chmod 644 {} \;

# Allow installer to write config files during setup (we'll lock down later)
sudo chmod 664 /var/www/opencart/config.php /var/www/opencart/admin/config.php
</code></pre>


<h2 class="wp-block-heading">Step 5 — Configure Apache Virtual Host</h2>



<p class="wp-block-paragraph">Replace <code>example.com</code> with your domain.</p>


<pre><code>sudo tee /etc/apache2/sites-available/opencart.conf >/dev/null <<'EOF'
&lt;VirtualHost *:80&gt;
  ServerName example.com
  ServerAlias www.example.com
  DocumentRoot /var/www/opencart

  &lt;Directory /var/www/opencart&gt;
    AllowOverride All
    Require all granted
  &lt;/Directory&gt;

  ErrorLog ${APACHE_LOG_DIR}/oc_error.log
  CustomLog ${APACHE_LOG_DIR}/oc_access.log combined
&lt;/VirtualHost&gt;
EOF

sudo a2ensite opencart.conf
sudo apache2ctl configtest &#038;&#038; sudo systemctl reload apache2
</code></pre>


<h2 class="wp-block-heading">Step 6 — Enable HTTPS with Let’s Encrypt</h2>


<pre><code>sudo apt -y install certbot python3-certbot-apache
sudo certbot --apache -d example.com -d www.example.com --redirect -m you@example.com --agree-tos -n
</code></pre>


<h2 class="wp-block-heading">Step 7 — Run the Web Installer</h2>



<ul class="wp-block-list">
  <li>Open <code>https://example.com</code> and follow the installer.</li>
  <li>Database: <code>ocdb</code>, User: <code>ocuser</code>, Password: <code>ChangeThisStrongPassword!</code>, Host: <code>localhost</code>.</li>
  <li>Admin path: keep the suggested unique URL for security.</li>
</ul>



<p class="wp-block-paragraph"><em>After installation</em>, tighten configs and (optionally) move storage outside the web root:</p>


<pre><code># Lock down configs
sudo chmod 644 /var/www/opencart/config.php /var/www/opencart/admin/config.php

# (Optional) Move storage folder outside the web root for security
sudo mkdir -p /var/www/oc-storage
sudo rsync -a /var/www/opencart/system/storage/ /var/www/oc-storage/
# Update both config files so DIR_STORAGE points to /var/www/oc-storage/
sudo sed -i "s#'DIR_STORAGE'.*#'DIR_STORAGE', '/var/www/oc-storage/' );#g" /var/www/opencart/config.php
sudo sed -i "s#'DIR_STORAGE'.*#'DIR_STORAGE', '/var/www/oc-storage/' );#g" /var/www/opencart/admin/config.php
</code></pre>


<h2 class="wp-block-heading">Step 8 — Turn On SEO-Friendly URLs</h2>



<ul class="wp-block-list">
  <li>In Admin: <strong>System → Settings → Your Store → Server</strong> → enable <strong>Use SEO URLs</strong>.</li>
  <li>You already renamed <code>htaccess.txt</code> to <code>.htaccess</code> and enabled <code>mod_rewrite</code> in earlier steps.</li>
</ul>



<h2 class="wp-block-heading">Step 9 — Sample Data &amp; Theme Basics</h2>



<ul class="wp-block-list">
  <li><strong>Sample data:</strong> OpenCart ships with demo products/categories on fresh installs. Replace them under <em>Catalog → Products/Categories</em> as you build your store.</li>
  <li><strong>Themes:</strong> Go to <em>Extensions → Extensions</em>, choose “Themes”, edit <em>Your Store</em>, select a theme (or install one via <em>Extensions → Installer</em>), then enable and save.</li>
</ul>



<h2 class="wp-block-heading">Step 10 — Email &amp; Payments</h2>



<ul class="wp-block-list">
  <li><strong>Order email:</strong> In <em>System → Settings → Your Store → Mail</em>, choose SMTP and enter your provider’s host, port, encryption, username, and password; send a test email.</li>
  <li><strong>Gateways:</strong> In <em>Extensions → Extensions</em> (choose “Payments”), install Stripe/PayPal and connect your merchant account.</li>
</ul>



<h2 class="wp-block-heading">Optional: Quick Backup Script</h2>


<pre><code>sudo mkdir -p /opt/oc-backups
sudo tee /opt/oc-backups/backup.sh >/dev/null <<'EOF'
#!/usr/bin/env bash
set -e
TS=$(date +%F-%H%M)
SITE_ROOT="/var/www/opencart"
DB_NAME="ocdb"
DB_USER="ocuser"
DB_PASS="ChangeThisStrongPassword!"

mkdir -p /opt/oc-backups/${TS}
mysqldump -u ${DB_USER} -p${DB_PASS} ${DB_NAME} | gzip > /opt/oc-backups/${TS}/db.sql.gz
tar -czf /opt/oc-backups/${TS}/site-files.tgz -C "${SITE_ROOT}" .
find /opt/oc-backups -maxdepth 1 -type d -mtime +14 -exec rm -rf {} \; 2>/dev/null || true
EOF

sudo chmod +x /opt/oc-backups/backup.sh
echo "30 2 * * * root /opt/oc-backups/backup.sh" | sudo tee /etc/cron.d/oc-backup >/dev/null
</code></pre>


<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>Installer fails requirements:</strong> Confirm PHP extensions (curl, zip, zlib, gd, mbstring, intl) are installed.</li>
  <li><strong>SEO URLs not working:</strong> Ensure <code>mod_rewrite</code> is enabled, your vHost allows <code>AllowOverride All</code>, and <code>.htaccess</code> exists in the web root.</li>
  <li><strong>Permission errors:</strong> Temporarily set <code>config.php</code> files to <code>664</code> for installation, then restore to <code>644</code>.</li>
  <li><strong>SSL issues:</strong> Verify DNS points to your server before running Certbot; re-run with <code>--apache</code> if needed.</li>
</ul>



<p class="wp-block-paragraph">Want a faster start? Choose an instant, low-cost <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium dedicated server</a> and be online today.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">Your OpenCart store is now live with HTTPS, SEO URLs, and a theme foundation—ready for products, payments, and growth on ServerStadium. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&amp;utm_medium=article&amp;utm_campaign=dedicated_server">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/opencart-on-dedicated-server-quickstart/">Install OpenCart on a ServerStadium Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Starting an Online Store with WooCommerce on a Dedicated Server</title>
		<link>https://serverstadium.com/knowledge-base/woocommerce-on-dedicated-server-beginners/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Tue, 12 Aug 2025 17:42:39 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=12185</guid>

					<description><![CDATA[<p>Introduction This guide walks you through launching a WooCommerce-powered store on a ServerStadium dedicated server (or ServerStadium VM) running Ubuntu 24.04. You’ll install WordPress, add WooCommerce, enable SSL with Let’s Encrypt, configure payments and email, and apply easy performance tweaks—perfect for small businesses that need a fast, affordable, and reliable storefront. Prerequisites A ServerStadium dedicated&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/woocommerce-on-dedicated-server-beginners/">Starting an Online Store with WooCommerce on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p class="wp-block-paragraph">This guide walks you through launching a WooCommerce-powered store on a <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> (or <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium VM</a>) running Ubuntu 24.04. You’ll install WordPress, add WooCommerce, enable SSL with Let’s Encrypt, configure payments and email, and apply easy performance tweaks—perfect for small businesses that need a fast, affordable, and reliable storefront.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
  <li>A <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> (Ubuntu 24.04 recommended) and a domain pointed to your server’s IP.</li>
  <li>SSH access with a sudo-capable user.</li>
  <li>An email address for Let’s Encrypt notifications, and an SMTP provider (or WordPress SMTP plugin) for order emails.</li>
</ul>



<h2 class="wp-block-heading">Option A: LAMP (Apache) Quick Start</h2>



<p class="wp-block-paragraph"><strong>1) Install packages</strong></p>


<pre><code>sudo apt update && sudo apt -y upgrade
sudo apt -y install apache2 mysql-server \
  php php-fpm php-mysql php-curl php-xml php-gd php-zip php-mbstring php-intl php-bcmath \
  unzip curl
sudo a2enmod rewrite
sudo systemctl enable --now apache2 mysql
</code></pre>


<p class="wp-block-paragraph"><strong>2) Secure MySQL and create the store database</strong></p>


<pre><code>sudo mysql_secure_installation
sudo mysql -e "CREATE DATABASE shopdb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;"
sudo mysql -e "CREATE USER 'shopuser'@'localhost' IDENTIFIED BY 'ChangeThisStrongPassword!';"
sudo mysql -e "GRANT ALL PRIVILEGES ON shopdb.* TO 'shopuser'@'localhost'; FLUSH PRIVILEGES;"
</code></pre>


<p class="wp-block-paragraph"><strong>3) Download and place WordPress</strong></p>


<pre><code>cd /tmp
curl -LO https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
sudo rsync -a wordpress/ /var/www/html/
sudo chown -R www-data:www-data /var/www/html
sudo find /var/www/html -type d -exec chmod 755 {} \;
sudo find /var/www/html -type f -exec chmod 644 {} \;
</code></pre>


<p class="wp-block-paragraph"><strong>4) Apache vHost (replace <code>example.com</code>)</strong></p>


<pre><code>sudo tee /etc/apache2/sites-available/wordpress.conf >/dev/null <<'EOF'
&lt;VirtualHost *:80&gt;
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/html
    &lt;Directory /var/www/html&gt;
        AllowOverride All
        Require all granted
    &lt;/Directory&gt;
    ErrorLog ${APACHE_LOG_DIR}/wp_error.log
    CustomLog ${APACHE_LOG_DIR}/wp_access.log combined
&lt;/VirtualHost&gt;
EOF

sudo a2ensite wordpress.conf
sudo systemctl reload apache2
</code></pre>


<p class="wp-block-paragraph"><strong>5) Configure WordPress</strong></p>


<pre><code>cd /var/www/html
cp wp-config-sample.php wp-config.php
sed -i "s/database_name_here/shopdb/; s/username_here/shopuser/; s/password_here/ChangeThisStrongPassword!/" wp-config.php
curl -s https://api.wordpress.org/secret-key/1.1/salt/ | sudo tee -a wp-config.php >/dev/null
sudo chown www-data:www-data wp-config.php
</code></pre>


<p class="wp-block-paragraph"><strong>6) Enable HTTPS (Let’s Encrypt)</strong></p>


<pre><code>sudo apt -y install certbot python3-certbot-apache
sudo certbot --apache -d example.com -d www.example.com --redirect -m you@example.com --agree-tos -n
</code></pre>


<h2 class="wp-block-heading">Option B: LEMP (Nginx) Quick Start</h2>



<p class="wp-block-paragraph"><strong>1) Install packages</strong></p>


<pre><code>sudo apt update
sudo apt -y install nginx mysql-server \
  php-fpm php-mysql php-curl php-xml php-gd php-zip php-mbstring php-intl php-bcmath \
  unzip curl
sudo systemctl enable --now nginx mysql
</code></pre>


<p class="wp-block-paragraph"><strong>2) Create database</strong> (reuse the <code>mysql</code> commands from LAMP step 2).</p>



<p class="wp-block-paragraph"><strong>3) Install WordPress files</strong></p>


<pre><code>cd /tmp
curl -LO https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
sudo mkdir -p /var/www/wordpress
sudo rsync -a wordpress/ /var/www/wordpress/
sudo chown -R www-data:www-data /var/www/wordpress
</code></pre>


<p class="wp-block-paragraph"><strong>4) Nginx server block (replace <code>example.com</code>)</strong></p>


<pre><code>sudo tee /etc/nginx/sites-available/wordpress >/dev/null <<'EOF'
server {
    listen 80;
    server_name example.com www.example.com;
    root /var/www/wordpress;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php-fpm.sock;
    }

    location ~* \.(png|jpg|jpeg|gif|ico|css|js|svg|webp)$ {
        expires max;
        access_log off;
    }
}
EOF

sudo ln -s /etc/nginx/sites-available/wordpress /etc/nginx/sites-enabled/wordpress
sudo nginx -t &#038;&#038; sudo systemctl reload nginx
</code></pre>


<p class="wp-block-paragraph"><strong>5) Configure WordPress</strong></p>


<pre><code>cd /var/www/wordpress
cp wp-config-sample.php wp-config.php
sed -i "s/database_name_here/shopdb/; s/username_here/shopuser/; s/password_here/ChangeThisStrongPassword!/" wp-config.php
curl -s https://api.wordpress.org/secret-key/1.1/salt/ | sudo tee -a wp-config.php >/dev/null
sudo chown www-data:www-data wp-config.php
</code></pre>


<p class="wp-block-paragraph"><strong>6) Enable HTTPS (Let’s Encrypt)</strong></p>


<pre><code>sudo apt -y install certbot python3-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com --redirect -m you@example.com --agree-tos -n
</code></pre>


<h2 class="wp-block-heading">Finish WordPress Setup &amp; Install WooCommerce</h2>



<p class="wp-block-paragraph">Visit <code>https://example.com</code>, complete the WordPress installer, then install WooCommerce. The easiest path is WP-CLI (you can also use the WordPress dashboard).</p>


<pre><code># Install WP-CLI
cd ~
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info && chmod +x wp-cli.phar && sudo mv wp-cli.phar /usr/local/bin/wp

# Go to your site root (Apache default shown; for Nginx use /var/www/wordpress)
cd /var/www/html

# Install and activate WooCommerce
sudo -u www-data wp plugin install woocommerce --activate

# Optional: install Stripe gateway (recommended)
sudo -u www-data wp plugin install woocommerce-gateway-stripe --activate

# Optional: install an SMTP plugin for reliable order emails
sudo -u www-data wp plugin install wp-mail-smtp --activate
</code></pre>


<p class="wp-block-paragraph">In the WordPress dashboard go to <em>WooCommerce → Settings</em> and run the setup wizard (store address, currency, shipping). Then open <em>WooCommerce → Settings → Payments</em> to enable Stripe (or your preferred gateway) and connect your account. Configure <em>WP Mail SMTP</em> (or your SMTP plugin) with your provider’s credentials so order receipts and password resets are delivered reliably.</p>



<h2 class="wp-block-heading">Essential Store Tweaks</h2>



<ul class="wp-block-list">
  <li><strong>Permalinks:</strong> Go to <em>Settings → Permalinks</em> and choose “Post name,” then click <em>Save</em>.</li>
  <li><strong>Image sizes:</strong> In <em>Settings → Media</em>, set reasonable sizes (e.g., large 1200px). Consider a compression plugin for faster product pages.</li>
  <li><strong>PHP memory limit:</strong> For medium stores, consider raising to 256M:
    <br><code>echo "memory_limit = 256M" | sudo tee /etc/php/*/apache2/conf.d/99-memory.ini /etc/php/*/fpm/conf.d/99-memory.ini</code>
    <br><code>sudo systemctl reload apache2 || sudo systemctl reload php*-fpm</code>
  </li>
  <li><strong>Caching:</strong> Simple page caching helps. Example (optional) via WP-CLI:
    <br><code>sudo -u www-data wp plugin install cache-enabler --activate</code>
  </li>
  <li><strong>Firewall:</strong> Allow web/SSH traffic:
    <br><code>sudo ufw allow OpenSSH && sudo ufw allow 80 && sudo ufw allow 443 && sudo ufw enable</code>
  </li>
</ul>



<h2 class="wp-block-heading">Backups (Quick Script)</h2>



<p class="wp-block-paragraph">Back up files and database nightly. Adjust paths if you used Nginx root (<code>/var/www/wordpress</code>).</p>


<pre><code>sudo mkdir -p /opt/shop-backups
sudo tee /opt/shop-backups/backup.sh >/dev/null <<'EOF'
#!/usr/bin/env bash
set -e
TS=$(date +%F-%H%M)
SITE_ROOT="/var/www/html"   # or /var/www/wordpress
DB_NAME="shopdb"
DB_USER="shopuser"
DB_PASS="ChangeThisStrongPassword!"

mkdir -p /opt/shop-backups/${TS}
mysqldump -u ${DB_USER} -p${DB_PASS} ${DB_NAME} | gzip > /opt/shop-backups/${TS}/db.sql.gz
tar -czf /opt/shop-backups/${TS}/wp-files.tgz -C "${SITE_ROOT}" .
# Keep 14 days
find /opt/shop-backups -maxdepth 1 -type d -mtime +14 -exec rm -rf {} \; 2>/dev/null || true
EOF

sudo chmod +x /opt/shop-backups/backup.sh
echo "0 2 * * * root /opt/shop-backups/backup.sh" | sudo tee /etc/cron.d/shop-backup >/dev/null
</code></pre>


<h2 class="wp-block-heading">Troubleshooting</h2>



<ul class="wp-block-list">
  <li><strong>SSL issues:</strong> Make sure DNS A/AAAA records point to your server before running Certbot. Re-run with <code>--apache</code> or <code>--nginx</code>.</li>
  <li><strong>Permalinks not working (Apache):</strong> Confirm <code>AllowOverride All</code> is set and <code>a2enmod rewrite</code> is enabled; reload Apache.</li>
  <li><strong>Orders not emailing:</strong> Verify SMTP plugin settings; check <em>WooCommerce → Status → Logs</em>.</li>
  <li><strong>502/504 with Nginx:</strong> Check PHP-FPM: <code>systemctl status php*-fpm</code>; increase <code>client_max_body_size</code> for large uploads if needed.</li>
</ul>



<p class="wp-block-paragraph">Ready to sell? Spin up a low-cost, instant <a href="https://serverstadium.com/dedicated-server/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium dedicated server</a> and launch today.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">With WordPress and WooCommerce configured on ServerStadium, you’ve got a fast and dependable foundation for your online store—complete with SSL, payments, email, and backups. For more help or information about ServerStadium services, visit our <a href="https://serverstadium.com/knowledge-base/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">knowledge base</a> or the <a href="https://serverstadium.com/?utm_source=kb&#038;utm_medium=article&#038;utm_campaign=dedicated_server">ServerStadium website</a>.</p>

<p>The post <a href="https://serverstadium.com/knowledge-base/woocommerce-on-dedicated-server-beginners/">Starting an Online Store with WooCommerce on a Dedicated Server</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Kubernetes Ingress Controller using SSL in ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/kubernetes-ingress-controller-using-ssl-in-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 20 Jan 2022 09:27:16 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1798</guid>

					<description><![CDATA[<p>&#160; Kubernetes has two techniques when deploying applications for external Access, Egress and Ingress. Egress is outgoing traffic from the pod, and Ingress is incoming traffic to the pod. But here, we will talk about Ingress Controller in Kubernetes. Ingress Controller Kubernetes Ingress Controller is an L7 Load Balancer that allows a simple host or&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/kubernetes-ingress-controller-using-ssl-in-serverstadium/">Kubernetes Ingress Controller using SSL in ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">Kubernetes has two techniques when deploying applications for external Access, Egress and Ingress. Egress is outgoing traffic from the pod, and Ingress is incoming traffic to the pod.</p>



<p class="wp-block-paragraph">But here, we will talk about Ingress Controller in Kubernetes.</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Ingress Controller</strong></h2>



<p class="wp-block-paragraph">Kubernetes Ingress Controller is an L7 Load Balancer that allows a simple host or URL-based HTTP routing.<br />Usually, Kubernetes Ingress Controller always uses a third-party proxy. There are many Ingress Controller applications today, i.e.:<br /><br />Nginx: Official ingress for NGINX and NGINX Plus<br />Kong: Nginx-based API Gateway or enterprise option using KongHQ<br />Istio: Ingress Gateway for Istio-enabled clusters<br />HAProxy: HAProxy Ingress Controller<br />F5: Support F5’s BIG-IP Container Ingress Services<br />Ambassador: API Gateway and L7 Load Balancer with Kubernetes Ingress support</p>



<h2 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>Ingress Controller in ServerStadium</strong></h2>



<p class="wp-block-paragraph">In ServerStadium Cloud, we can implement Ingress Controller using Nginx. In the previous article, we configured Rancher Kubernetes, which installed Nginx reverse proxy as the default Ingress Controller. Nginx is a popular option for simple HTTP/S routing and SSL termination cases.<br /><br />This tutorial will teach using Ingress Controller, like routing http/s routing and installing SSL in Kubernetes.<br />With Rancher, we will create ingress with a simple click.<br /><br />Below is step by step what we will do in this article:</p>



<p class="wp-block-paragraph"><br />a. Make sure Nginx Ingress Controller has been installed on Kubernetes<br />b. Create a new project with the name “IngressCR” and a Namespace named “IngressNS.”<br />c. Create two subdomains with the names apple.serverstadium.com  and orange.serverstadium.com<br />d. Install SSL in Kubernetes<br />e. Configure the Ingress controller for both subdomains with SSL<br />f. Configure Load Balancer in ServerStadium Cloud for both subdomains</p>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>A. Make Sure Nginx Ingress Controller has been Installed on Kubernetes</strong></h4>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph">Before implementing Nginx Ingress Controller in ServerStadium Cloud, we must ensure that Nginx has been installed in our Kubernetes. When we deploy Rancher for the first time, make sure the cluster.yml already has the following line :<br /><br /></p>



<p class="wp-block-paragraph"># <code>Required for external TLS termination with</code><br /><code># ingress-nginx v0.22+<br />ingress:<br />  provider: nginx<br />  options:<br />    use-forwarded-headers: "true"</code></p>



<p class="wp-block-paragraph">After Nginx has been installed in Kubernetes, we can verify it using Rancher Web UI<br /><br />1. Change your namespace to <strong>ingress-nginx<br /></strong>2. Click <strong>Workload – DaemonSets,</strong> then we will see <strong>nginx-ingress-controller</strong></p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1157" height="286" class="wp-image-1800" src="https://serverstadium.com/wp-content/uploads/2022/01/image.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-300x74.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-1024x253.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-768x190.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><br /><strong>B. Create a New Project with the Name “IngressCR”</strong></h4>



<p class="wp-block-paragraph">Next step, we will create a new Project in Kubernetes.<br /><br />1. Change the view using <strong>“All Namespaces”</strong> – Click <strong>“Cluster” </strong>– Click <strong>“Project/Namespaces” </strong>then Click<strong> “Create Project”</strong> Button</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1157" height="374" class="wp-image-1801" src="https://serverstadium.com/wp-content/uploads/2022/01/image-1.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-1.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-1-300x97.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-1-1024x331.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-1-768x248.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">2. We will be redirected to the new Window. Fill Name of the Project with <strong>IngressCR, </strong>then click <strong>Create</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1157" height="451" class="wp-image-1802" src="https://serverstadium.com/wp-content/uploads/2022/01/image-2.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-2.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-2-300x117.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-2-1024x399.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-2-768x299.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">3. Next, we will create a new namespace for our website. In Project, <strong>IngressCR, </strong>click “<strong>Create Namespace</strong>” button.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="113" class="wp-image-1803" src="https://serverstadium.com/wp-content/uploads/2022/01/image-3.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-3.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-3-300x29.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-3-1024x100.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-3-768x75.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">4. In the new Window, fill the Name with “<strong>ingressns</strong>” to create our namespace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1139" height="454" class="wp-image-1810" src="https://serverstadium.com/wp-content/uploads/2022/01/image-8.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-8.png 1139w, https://serverstadium.com/wp-content/uploads/2022/01/image-8-300x120.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-8-1024x408.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-8-768x306.png 768w" sizes="(max-width: 1139px) 100vw, 1139px" /></figure>



<p class="wp-block-paragraph">Now we have namespace <strong>IngressNS </strong>in our Kubernetes server.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="99" class="wp-image-1811" src="https://serverstadium.com/wp-content/uploads/2022/01/image-9.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-9.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-9-300x26.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-9-1024x88.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-9-768x66.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">&nbsp;</p>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>C. Create Two Subdomains with Names apple.serverstadium.com and orange.serverstadium.com</strong></h4>



<p class="wp-block-paragraph">In the next steps, we will create two subdomains and a simple site for both websites because we only want to know how the Nginx Ingress Controller works with SSL.</p>



<p class="wp-block-paragraph">Change our namespace to ingressns then we will create a deployment for both websites. <br /><br />Click <strong>Workload – Deployment</strong></p>



<p class="wp-block-paragraph">The first subdomain fills the field as follows:<br /><br /><code>Namespace : ingressns<br />Name : apple</code><br /><code>Container Name : nginx<br />Container Image : nginx<br />Ports  :<br />                Service Type : ClusterIP<br />                Name             : nginx-svc<br />                Private Container Port : 80<br />                Protocol : TCP</code></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="567" class="wp-image-1813" src="https://serverstadium.com/wp-content/uploads/2022/01/image-10.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-10.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-10-300x147.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-10-1024x502.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-10-768x376.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Then click <strong>Create</strong>. Please wait for a while until deployment creates the pods.</p>



<p class="wp-block-paragraph">After Apple’s Deployment state is Active,  we can create a new deployment for orange.serverstadium.com with the same steps.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1814" src="https://serverstadium.com/wp-content/uploads/2022/01/image-11.png" alt="" /></figure>



<p class="wp-block-paragraph">Below is the screenshot after we create two subdomains in Rancher.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1815" src="https://serverstadium.com/wp-content/uploads/2022/01/image-12.png" alt="" /></figure>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>D. Install SSL in Kubernetes</strong></h4>



<p class="wp-block-paragraph">In the next steps, we will add our SSL certificate in Rancher. <br />Click <strong>Storage – Secrets, </strong>then Choose <strong>Create </strong>Button</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1816" src="https://serverstadium.com/wp-content/uploads/2022/01/image-13.png" alt="" /></figure>



<p class="wp-block-paragraph">In the new windows, we choose <strong>TLS Certificate</strong></p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1817" src="https://serverstadium.com/wp-content/uploads/2022/01/image-14.png" alt="" /></figure>



<p class="wp-block-paragraph">Fill in the field as follow :<br /><br /><code>Name        : Cloudraya (name of your certificate)<br />Certificate : Insert your Private key and Certificate</code><br />Click Create</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="645" class="wp-image-1818" src="https://serverstadium.com/wp-content/uploads/2022/01/image-15.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-15.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-15-300x167.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-15-1024x571.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-15-768x428.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Below is the screenshot after we successfully added the certificate.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="330" class="wp-image-1819" src="https://serverstadium.com/wp-content/uploads/2022/01/image-16.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-16.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-16-300x86.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-16-1024x292.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-16-768x219.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">&nbsp;</p>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>E. Configure Ingress Controller for Both Subdomains with SSL</strong></h4>



<p class="wp-block-paragraph">After we configure the website and certificate, we are ready to create an ingress for both domains (apple.serverstadium.com and orange.serverstadium.com)<br /><br />Please make sure our namespace is in ingresses. On the left page, choose Service Discovery – Ingresses, then click Create</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="311" class="wp-image-1821" src="https://serverstadium.com/wp-content/uploads/2022/01/image-17.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-17.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-17-300x81.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-17-1024x275.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-17-768x206.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph"><br />In the new Window, fill the field as follow:<br /><code>Name : apple.serverstadium.com</code><br /><code>Request Host : apple.serverstadium.com<br />Path : Prefix</code><br />            /<br /><code>Target Service :  apple<br />Port : 80</code></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="643" class="wp-image-1822" src="https://serverstadium.com/wp-content/uploads/2022/01/image-18.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-18.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-18-300x167.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-18-1024x569.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-18-768x427.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Select Certificates<br />Certificate-Secret Name: Choose <strong>serverstadium </strong>secret that we have created before.<br />Fill the hostname with <strong>apple.serverstadium.com</strong><br />Then click Create<br /><br /></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="553" class="wp-image-1823" src="https://serverstadium.com/wp-content/uploads/2022/01/image-19.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-19.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-19-300x143.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-19-1024x489.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-19-768x367.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Below is the screenshot after we successfully created the Ingress</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="295" class="wp-image-1824" src="https://serverstadium.com/wp-content/uploads/2022/01/image-20.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-20.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-20-300x76.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-20-1024x261.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-20-768x196.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Please do the same step to create orange.serverstadium.com until we have two ingresses in Kubernetes</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1825" src="https://serverstadium.com/wp-content/uploads/2022/01/image-21.png" alt="" /></figure>



<p class="wp-block-paragraph">&nbsp;</p>



<h4 class="has-vivid-cyan-blue-color has-text-color wp-block-heading"><strong>F. Configure ServerStadium Cloud Load Balancer</strong></h4>



<p class="wp-block-paragraph">Like the previous article at this <a href="https://serverstadium.com/knowledge-base/high-availability-kubernetes-using-rke-in-serverstadium-part-2/" target="_blank" rel="noreferrer noopener">link</a>, we assign Load Balancer IP Address for Rancher. <br />This IP Address is the same IP Address for Ingress Controller for Kubernetes.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1157" height="397" class="wp-image-1826" src="https://serverstadium.com/wp-content/uploads/2022/01/image-22.png" alt="" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-22.png 1157w, https://serverstadium.com/wp-content/uploads/2022/01/image-22-300x103.png 300w, https://serverstadium.com/wp-content/uploads/2022/01/image-22-1024x351.png 1024w, https://serverstadium.com/wp-content/uploads/2022/01/image-22-768x264.png 768w" sizes="(max-width: 1157px) 100vw, 1157px" /></figure>



<p class="wp-block-paragraph">Point A record of both subdomains to IP 202.43.248.249; then we can browse it via browser.</p>



<figure class="wp-block-image size-full"><img decoding="async" class="wp-image-1827" src="https://serverstadium.com/wp-content/uploads/2022/01/image-23.png" alt="" /></figure>



<p class="wp-block-paragraph">Wow, we have successfully created Ingress in Kubernetes with SSL in ServerStadium Cloud!</p>



<p class="wp-block-paragraph">Get more applicable articles on tutorials in our <strong><a href="https://serverstadium.com/knowledge-base/" target="_blank" rel="noreferrer noopener">Knowledge Base</a></strong>. Or, if you have questions, feel free to contact us!<strong><a href="https://serverstadium.com/id/" target="_blank" rel="noreferrer noopener"><br /></a></strong></p>
<p>The post <a href="https://serverstadium.com/knowledge-base/kubernetes-ingress-controller-using-ssl-in-serverstadium/">Kubernetes Ingress Controller using SSL in ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
