<?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>E-commerce Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/e-commerce/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/e-commerce/</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>E-commerce Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/e-commerce/</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>
	</channel>
</rss>
