# Hosting settings and security checklist for a WooCommerce store

https://www.gyrohosting.com/en/knowledgebase/article/woocommerce-hosting-settings-and-security

- **What you will learn**: How to install WooCommerce, set PHP values that suit a store, set up updates and backups, and turn on the security measures in cPanel and Softaculous. At the end there is a checklist to tick before launch.
- **Time**: 15 minutes

## 1. Why does a store need extra care?

A store holds personal data such as customer addresses, orders and accounts. Even an hour of downtime means lost sales. So, unlike a blog, you should make sure that:

- The whole site opens over HTTPS.
- PHP settings can handle heavy tasks such as product imports and the cart.
- Updates are tested first, and a backup is taken before every change.
- Admin accounts are locked down with strong passwords and extra protection.

## 2. Install WooCommerce

1. In cPanel, open **WordPress Manager by Softaculous** in the **Software** section.
2. Click **Manage Plugins** on your site's row and go to the **Add Plugins** tab.
3. Type `woocommerce` in the search box.
4. Click **Install** on the **WooCommerce** row whose author is **Automattic**. You can also do this in the WordPress dashboard under **Plugins** → **Add New Plugin**.

![You can install WooCommerce from Manage Plugins → Add Plugins or from the WordPress dashboard.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-01-en.webp)

1. Log in to the WordPress dashboard and complete the WooCommerce setup wizard: store address, currency, tax and shipping settings.

> **Info**
> 
> For payments, use the official WooCommerce plugin of the payment provider you work with and set it up following the provider's documentation. Don't store card details on your own site; the payment page should be on the provider's side.

## 3. Set the PHP version and settings for a store

1. In **MultiPHP Manager**, choose a current PHP 8 version from the list for your domain (B34). Current WooCommerce releases don't support old PHP versions.
2. In **MultiPHP INI Editor**, open **Basic Mode** and select your domain.
3. Enter these values and click **Apply** at the bottom of the page:

| Setting | Recommended value | Why |
| --- | --- | --- |
| `memory_limit` | `256M` | Cart, checkout and report pages need memory |
| `max_input_vars` | `3000` | Products with many variations and large menus save fully |
| `max_execution_time` | `120` | Product imports and exports don't stop halfway |
| `upload_max_filesize` / `post_max_size` | `64M` | Product images and CSV files can be uploaded |

![For a store, raise memory_limit, max_input_vars and max_execution_time and save with Apply.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-05-en.webp)

1. In the WordPress dashboard, open **WooCommerce** → **Status** and check that no red warnings remain under **WordPress environment** and **Server environment**.

## 4. Set up updates

1. Open your site's row in **WordPress Manager**. Under **Configuration**, in **Auto Upgrade WordPress Core**, choose automatic installation of minor (security) releases.
2. Decide on **Auto Upgrade WordPress Plugins** and **Auto Upgrade WordPress Themes**. For a store, it's safer to test major WooCommerce updates against your payment and shipping plugins on a staging copy first (B37).

![In WordPress Manager choose whether core, plugin and theme updates are applied automatically.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-02-en.webp)

1. If you keep automatic updates off, check for updates at least once a week. A plugin waiting for an update is the most common point of attack on a store.

> **Warning**
> 
> When a WooCommerce release asks for a database update, take a backup before confirming the "update database" notice in the dashboard.

## 5. Turn on security measures

1. In **WordPress Manager**, click **Security Measures** on your site's row.
2. Select **All (Critical and Recommended)**, or pick items one by one with **Choose manually**. Key measures: change the default administrator username, block unauthorized access to `xmlrpc.php`, disable file editing in the dashboard, and forbid PHP execution in `wp-content/uploads`.
3. Click **Apply**, then test the front end, cart and checkout.

![In the Security Measures window you can select and apply critical and recommended hardening settings.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-03-en.webp)

> **Info**
> 
> If a payment or shipping plugin uses `xmlrpc.php` or another blocked path, you can remove that measure in the same window. If something breaks after turning a measure on, try turning that one off first.

1. Review admin accounts: give each staff member their own user, give the **Administrator** role only where needed, and give store managers the **Shop manager** role.
2. Use passwords of at least 12 characters that you don't use anywhere else, and install a two-factor authentication plugin for WordPress.
3. Sites installed with Softaculous come with the Loginizer plugin, which limits login attempts; don't remove it.
4. In the cPanel **Security** section, check with the **SSL/TLS** tools that your site has a valid SSL certificate. Keep **ModSecurity** on; if it blocks something by mistake, open a support ticket rather than turning it off (B09).

![SSL certificate and web application firewall settings are in the cPanel Security section.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-06-en.webp)

## 6. Set up backups

1. In **WordPress Manager**, click **Backup** on your site's row.
2. Leave **Backup Directory** and **Backup Database** ticked. Write the reason in **Backup Note** (for example "before WooCommerce update").
3. Click **Backup Installation**. The backup can be downloaded and restored from the **Backups and Restore** list (B40).

![Before major changes, back up files and database together with Softaculous Backup.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B38-04-en.webp)

As stated on our hosting page, daily and weekly backups are taken for accounts up to 2 GB. For a busy store, also take your own backup before every update and download important backups to your computer.

> **Warning**
> 
> Restoring an old backup deletes the orders and customer records received after it. Export recent orders from WooCommerce before restoring.

## 7. Make scheduled tasks reliable

WooCommerce runs jobs such as stock notifications, subscription renewals and emails as scheduled tasks in the background. By default these are triggered when a visitor arrives. To make them run on time even in quiet hours, turn wp-cron into a real cron job (B39).

## 8. Pre-launch checklist

| Check | Where |
| --- | --- |
| The site opens over HTTPS with no browser warning | cPanel Security → SSL/TLS |
| A current PHP 8 version is selected | MultiPHP Manager (B34) |
| `memory_limit` 256M, `max_input_vars` 3000 | MultiPHP INI Editor |
| No red warnings in WooCommerce → Status | WordPress dashboard |
| Security Measures applied and the store tested | WordPress Manager |
| Each staff member has their own account, a strong password and two-factor authentication | WordPress → Users |
| A full backup was taken and downloaded before launch | WordPress Manager → Backup |
| A real cron job is running | cPanel Cron Jobs (B39) |
| Unused plugins and themes are deleted | Manage Plugins (B33) |

## 9. Common problems

| Symptom | Cause | Fix |
| --- | --- | --- |
| Some variations disappear when saving | `max_input_vars` is too low | Raise it to 3000 or more. |
| "Critical error" on the checkout page | The payment plugin isn't compatible with the PHP version | Update the plugin; if needed, test the PHP version on a staging copy (B37). |
| Order emails go out late | Scheduled tasks depend on visitors | Set up a real cron job (B39). |
| A plugin stops working after a security measure | It uses a blocked path | Remove that measure in Security Measures. |
| The checkout form returns 403 | The firewall blocked the request by mistake | Follow B09 or open a support ticket. |

## 10. FAQ

**Which payment provider should I use?**

That's a business decision; use the official WooCommerce plugin of the provider you sign up with. On the hosting side, what matters is that the site opens over HTTPS and the plugin is kept up to date.

**My store is slow. What should I do?**

Start with the steps in B33. Make sure your caching plugin excludes the cart, checkout and my-account pages.

**Is shared hosting enough for my store?**

It's enough for most small and medium stores. If you often hit resource limits, consider upgrading your plan (A07).

**How do I protect customer data?**

Restrict admin accounts, use two-factor authentication, keep plugins updated and store backups somewhere safe. For your legal obligations on personal data, consult your legal adviser.

**My store was hacked. What should I do?**

Follow the steps in B40: change passwords, go back to a clean backup and install updates.

> **Did you know?**
> 
> Our WordPress Hosting plans are prepared for WordPress, and on Türkiye plans your data stays in our Istanbul data centre. See the WordPress Hosting page for current plans.

## Next step

- B39: Replacing WordPress wp-cron with a real cron job
- B40: Cleaning up a hacked WordPress site
- B37: Copying a WordPress site (staging and cloning)
