Manuals
RU EN

Products · 36

Ecommerce Script on Your Own Hosting

Products 6 min read

An ecommerce script on your own hosting is installed like a normal PHP project: files in the root or subdomain, MySQL database, config with credentials, and admin area. You control catalog, orders, and payment keys. A cloud builder is easier at the start, until you hit its plan, commission, and someone else's subdomain in customer emails.

First-order practice: store manual. PHP store overview: PHP online store.

When your own hosting is better than SaaS

  • You need your brand and domain without a showcase on someone else's platform.
  • You do not want to pay a percentage of turnover "for air" as sales grow.
  • You need niche customizations: custom fields, roles, exports.
  • Data matters: exports, backups, storage at your host.
  • White label for a franchise or several storefronts with common logic.

The honest downside: you monitor PHP, SSL, backups, and script updates yourself. There is no "platform support button 24/7" unless you bought an SLA separately.

How an ecommerce script differs from a form site

A "I want to buy" form in Telegram is not ecommerce. The script must have:

  1. Catalog and product card with price.
  2. Cart as session/account state.
  3. Checkout that records an order.
  4. Payment and fulfillment statuses.
  5. Admin area where a manager does not open phpMyAdmin.

Then come delivery, promo codes, SKU variants, and online payment. Without the base path, everything else is pointless. Checkout: here, catalog: here.

Do not confuse with classified. A listings board sells attention to a private seller's card. Ecommerce sells a product with stock and a receipt. Different entities, different scripts: board vs store.

Deployment on hosting: short procedure

  1. PHP per requirements plus extensions such as pdo_mysql, gd/imagick, mbstring, openssl.
  2. Create database and user with permissions only on it.
  3. Run installer and delete or close install if required.
  4. Set permissions on upload and cache.
  5. Enable https and check mixed content on cards.
  6. Configure mail or at least email logging.
  7. Place a test order and back up the clean installation.

On a VDS, add php-fpm, nginx root, and cron for cleanup and statuses. Do not keep shopId and YooKassa secrets in a public repository.

Payment and webhooks on your domain

The upside of your own hosting is that return URL and webhook point to your HTTPS. The downside is that if the certificate expires or firewall blocks callbacks, orders hang in "awaiting payment". YooKassa is covered in integration. Rule: mark "paid" only from a verified notification, not from the user returning to the success page.

Catalog, stock, delivery

On your own server, you can create attributes and SKUs the way the niche needs: variants. Delivery zones and "free from" threshold: delivery. Mailing promotions: promo codes. All of this runs in your database without a plan limit like "Start: 50 products".

Operational risks landing pages do not mention

  • No backup before template editing, so there is nothing to roll back.
  • Disk filled by logs and original photos, and the store starts returning 500.
  • Two managers change stock manually at the same time without history.
  • Test payment keys remain in production, so payments fail or go to sandbox.

Create a simple procedure: daily backup, owner for price changes, owner for morning payment reconciliation.

Choice summary

An ecommerce script on your own hosting means control and responsibility. SaaS means speed and someone else's limits. If brand, data, and customization matter more than "open tonight", choose a PHP store and close the order path using the checklist. If you need one landing page with three products and payment by link, it may be too early to complicate things.

Updates and custom changes

A rule that saves nerves: keep custom template changes in a way that core updates do not silently overwrite them. If the script provides a child theme or override folder, use only that. Before updating, back up and run a test order on a copy. Do not update production on Friday evening before an advertising spike.

  • Keep a note of custom changes for the owner: what changed and why.
  • After hosting PHP updates, verify compatibility with the script.
  • After migration, payment keys must not point to the old webhook URL.

When SaaS is still more honest

If the team is not ready for backups, certificates, and questions like "why cron did not release a reserve", a cloud store is more honest than promises that "someone will watch it". A script on your own hosting requires at least one competent person. But as turnover grows, you do not hit platform percentage or product-count limits. Hybrid setups also exist: storefront on a script, warehouse in 1C through exchange, but that is an integration project, not "upload archive and forget".

At the start, I ask the client to answer in writing: who makes backups, who reconciles payments, who changes prices. Empty answers mean it is too early for own hosting; first build the process. When answers exist, the ecommerce script does its job: catalog, cart, order, cashier on your domain.

Post-launch monitoring

Minimum signals: site availability, 500 errors in logs, email queue, payment webhooks without HTTP 200, disk above threshold. You do not need a huge dashboard immediately; email or Telegram alerts to the admin are enough. Once a week, run a test order on staging after any template changes. An ecommerce script on your own hosting can forgive the absence of a beautiful dashboard, but not the absence of a habit of checking cashier and backup.

If after a month 80% of orders still arrive as "write to us on WhatsApp" from the showcase, look for friction in checkout or delivery, not a new slider. The script already provides the path; conversion is improved by clear tariffs, stock, and manager response speed. Your hosting is not the issue; store operations are.

Path security

On your own hosting, besides backups, you need basics: PHP updates, closed install after setup, strong admin passwords, restricted phpMyAdmin access, and payment secrets outside public files. An ecommerce script on your hosting does not have to be a bank, but it must not expose keys or use one password for everyone. Enable two-factor authentication for admin if the script or hosting panel supports it.

Review access logs after personnel changes. Change cashier and admin passwords on the same day. This is boring and more important than any new discount module. Data control is the main argument for own hosting; do not devalue it with weak password operations.

FAQ

Ecommerce script on your own hosting?

Your hosting means your data and domain. Cloud is easier until you hit plan limits and branding limits.

How long does “Ecommerce Script on Your Own Hosting” take?

About 6 minutes to read. In practice it depends on your hosting and database setup.

Do I need a dedicated server?

For most scripts, shared hosting or a VDS with PHP and MySQL is enough. See the VDS section and PHP/MySQL requirements.

Php mysql online store script?

See the related manual for this query. php mysql online store script

How to set up cart and checkout in a shop script?

See the related manual for this query. how to set up cart and checkout in a shop script

Section
Online store script

From catalog to payment and delivery — an ecommerce flow on PHP/MySQL.