WordPress and WooCommerce

WordPress hosting in Iran,
and when to move off shared hosting

Most WordPress sites run perfectly well on shared hosting. Some don’t, and hardly anyone tells you so honestly, because they’d rather sell you a pricier plan on the same shared hosting. This page covers both: WordPress hosting in Iran for the sites that fit it, and the right path for the ones that don’t.

Set up automatically once you pay cPanel or DirectAdmin control panel CDN on 8 edge nodes, 1 TB free
Diagnose before you buy

Where your WordPress site is actually slow

“My site is slow” is really four very different problems, each with its own fix. Get the diagnosis wrong and you pay more without getting any faster.

High time to first byte (TTFB)

The server takes too long to build the page itself: PHP runs, dozens of queries hit the database, and only then does the HTML go out. A CDN barely helps here. The fix is page caching and, eventually, more CPU and RAM.

Heavy static files, served from far away

Images, CSS and JavaScript are heavy, and they’re all served from one place. This is exactly where a CDN pays off: the same files are served from the edge node closest to each visitor.

Plugins run on every request

Every active plugin runs code on every page load. A site with 40 active plugins is slow even on a powerful server. Trim your plugins before you upgrade the server: it’s the only fix that costs nothing.

A bloated database full of junk

Autoloaded options in wp_options, piles of post revisions and plugin logs weigh the database down. A bigger server hides the problem; it doesn’t solve it.

The choice

Shared hosting or a VPS for WordPress and WooCommerce?

The real dividing line isn’t traffic. It’s how much of your site can be cached.

Your siteThe right choice
Company site, blog or portfolio: pages rarely changeShared hosting. With page caching and a CDN, it beats a server nobody has tuned.
High-traffic content site where almost everything can be cachedShared hosting + CDN. That will carry you a long way.
WooCommerce store with an active cart and checkoutA VPS. The cart, checkout and “My account” pages can’t be cached by nature, so every visit really runs PHP and hits the database.
Membership site, online courses or anywhere users are logged inA VPS. Logged-in users bypass the page cache, so the load lands straight on the CPU.
Heavy plugins, cron jobs or background queuesA VPS, with root access and full control over resources.
You run several client sitesBoth, from one account. See agency hosting.

A VPS starts at 863 Toman an hour and is billed hourly, so you can try one for a week and delete it if it doesn’t work out. Details on the Linux VPS in Iran page.

CDN

CDN for WordPress: what it does and what it doesn’t

A CDN solves half the problem, and it solves that half very well. The honest truth is that the other half is your server’s job.

What it does

Images, CSS and JavaScript, which make up most of a page’s weight, are served from the edge node closest to each visitor, across 8 nodes today. SSL certificates are issued automatically, and the load from those files never reaches your server.

A benefit people rarely mention

With the CDN on, the published record points at the edge nodes and your origin server’s IP stays out of public view, so scans and direct traffic aimed at the origin go nowhere.

What it doesn’t do

Pages that are different for every user (cart, checkout, dashboard) aren’t cached and have to be built by your server every time. If that’s where your problem is, a CDN won’t change anything; look at page caching and server resources instead.

You switch the CDN on for any A record from the same DNS management page, and your first 1 TB of traffic is free.

Shared hosting

WordPress hosting plans

Activated as soon as the invoice is paid, and managed from your Mehran Host panel.

Basic hosting

Disk space: 500 MB. Bandwidth: Unlimited. Control panel: DirectAdmin. 1,500,000 Toman / month

Waitlist

Managed WordPress: join the waitlist

Managed WordPress (automatic core and plugin updates, server-level caching, staging and one-click restore) isn’t offered today. If that’s what you’re after, tell us: we’ll build it sooner, and in the meantime we’ll show you how to get as close as possible with our existing hosting or a VPS.

Mobile or email: at least one is required.
WordPress questions

WordPress hosting in Iran FAQ: what we hear most

Is your WordPress hosting different from regular hosting?
The infrastructure is the same: shared hosting on cPanel or DirectAdmin that’s set up automatically once the invoice is paid, and you install WordPress on it. We don’t sell a separate plan with a “WordPress” label and a higher price, because there’s no real technical difference behind it. What actually makes WordPress faster (page caching, a CDN for static files and, when needed, a move to a VPS) is explained on this page.
Will my WooCommerce store run well on shared hosting?
While traffic is low, yes. But in WooCommerce, the cart, checkout and “My account” pages can’t be cached by nature: every visitor who reaches them really runs PHP and queries the database. So unlike a content site, CPU load grows with the number of shoppers, not the number of page views. If checkout slows down or throws errors at peak hours, it’s time to move to a VPS.
How much faster will a CDN make my WordPress site?
It depends where the problem is. If most of the page weight is images and scripts (as with most WordPress themes), a CDN makes a noticeable difference, because those files are served from the nearest edge node and never reach your server at all. But if your time to first byte (TTFB) is high, the server itself is slow to build the page, and a CDN won’t fix that; look at page caching, cutting plugins and, eventually, more resources.
How do I turn on the CDN for WordPress?
Point your domain at Mehran Host’s nameservers, then on the DNS management page switch on the CDN for your site’s A record. From then on, traffic for that name goes through the edge nodes, an SSL certificate is issued automatically and your origin server’s IP stays hidden. No special WordPress plugin is needed. The first 1 TB of CDN traffic is free; after that, each GB costs 1,000 Toman, deducted from your wallet.
Do you offer managed WordPress?
No. Automatic core and plugin updates, server-level caching, a staging environment and one-click restore aren’t offered today, and we’d rather tell you before you buy. If you’re looking for that kind of service, sign up on this page: it moves up our build list, and we’ll suggest the best option available today for your situation.
How do I move my site from my current host?
Export the files and database from your current host and bring them up on the new service, test the site at the same address, and finally switch the DNS record. If you also move the domain’s DNS to Mehran Host, records publish instantly on PowerDNS, so the switch is quick and you can roll back immediately if needed. If you’re moving lots of sites, the agency hosting page is the better route.