Best server setup for 6amMart and other 6amTech scripts

How to host 6amMart and other 6amTech scripts properly: choosing a VPS, Nginx and PHP-FPM, MySQL, cron and queue workers, SSL, caching, backups and monitoring.

Rich Labs teamPublished 4 min read

Hosting decides how your platform feels to customers. A slow API makes the apps feel broken, a missed cron job means stuck orders, and an untested backup means a bad day becomes a disaster. This is the server setup we use for 6amMart, and it applies to 6Valley, Demandium and DriveMond too, with an extra note for DriveMond's real-time layer.

VPS, not shared hosting

You can sometimes get the admin panel running on shared hosting, but a live delivery platform needs things shared hosts restrict: reliable cron every minute, long-running queue workers, websockets (DriveMond), custom PHP settings, and outbound API calls. Use a VPS from a reputable provider, in a region close to your customers so the apps respond quickly.

Sizing: start sensibly, measure, then scale

We don't believe in one-size-fits-all numbers. Requirements depend on order volume, the number of active drivers or delivery men, catalogue size and image traffic. Our approach:

Upgrading a VPS is usually quick. Recovering from an overloaded server during a promotion isn't.

The software stack

PHP settings that matter

Raise upload_max_filesize and post_max_size so stores can upload product images and imports. Increase max_execution_time for heavy admin tasks. Set memory_limit to suit your RAM. Enable OPcache, which gives a significant speed-up for Laravel at no cost.

Cron and queues

Add the Laravel scheduler to cron, running every minute as the web user:

* * * * * cd /var/www/yourapp && php artisan schedule:run >> /dev/null 2>&1

If your version dispatches queued jobs for emails, notifications or reports, run php artisan queue:work under Supervisor, and restart the worker after each deployment. Missing cron or queue workers are the hidden cause of many "notifications don't work" and "orders stuck" tickets. See the Firebase troubleshooting guide.

DriveMond and real-time

DriveMond's live trip requests and tracking rely on a websocket service. Run it under Supervisor, serve it over SSL through Nginx as a reverse proxy, and open only the ports you need. Follow your version's docs closely. The DriveMond setup guide covers the rest.

Security basics

Backups you've actually tested

Performance

Deployments

Deploy through Git rather than uploading zips by FTP, and keep a staging server for testing updates. Our update guide explains the full workflow.

A pre-launch server checklist

Before you announce the platform, confirm each item:

  1. SSL is valid on every domain the apps and admin panel use, and auto-renewal is tested.
  2. Cron runs every minute. Check the scheduler log or a test job.
  3. Queue workers, and websockets for DriveMond, are running under Supervisor and restart after a reboot.
  4. APP_DEBUG is off and error logs are being written somewhere you watch.
  5. A database and file backup exists off-server, and you've restored it once.
  6. Monitoring alerts reach a real person by email or messaging.
  7. The firewall only allows the ports you need.

How we help

Server setup, SSL, cron, queues, backups and monitoring are part of every installation we do. Our Care plan covers server monitoring and backups after launch. See the Packages section or our grocery delivery solution.

Questions

What are the server requirements for 6amMart?

A PHP version and extensions matching your release, MySQL, URL rewriting, writable storage folders, cron and SSL. A VPS is strongly recommended for live use.

How much RAM does 6amMart need?

It depends on order volume and traffic. Start with enough RAM for PHP-FPM, MySQL and cache together, monitor usage, and upgrade when you see sustained pressure.

Can I host the apps and admin panel on the same server?

The mobile apps aren't hosted; they're installed from the stores. The admin panel, API and optional website run on your server.

Do I need Redis?

It isn't always required, but Redis for cache and queues improves performance and reliability on busy platforms where your version supports it.

Want us to do this for you?

Talk directly to the developers who've launched these platforms. You get a fixed quote and written milestones.

Related guides

WhatsApp