DEV Community

Brian
Brian

Posted on

1 1

A Beginner's Guide to Deploying PHP Apps with Amezmo

If you're tired of complex deployment pipelines and fiddly VPS setups, Amezmo might be exactly what you need. It's a fully managed PHP hosting platform designed specifically for modern PHP apps like Laravel, Slim, and vanilla PHP.

In this beginner-friendly guide, we'll walk through how to deploy a PHP application on Amezmo in just a few minutes β€” no DevOps background required.


🧰 Why Use Amezmo?

Before we jump into the steps, here’s why Amezmo is worth considering:

  • ⚑ Instant deployments via Git
  • πŸ”’ Free SSL and daily backups
  • 🐘 PHP 8.x support out of the box
  • πŸͺ„ Composer, queues, and crons built-in
  • πŸ”₯ No server maintenance required

It’s built for PHP, and that makes it super streamlined compared to general-purpose providers.


πŸ› οΈ Step 1: Sign Up and Create an App

  1. Head to amezmo.com and sign up.
  2. Once inside your dashboard, click "New App".
  3. Choose:
    • A name for your app
    • Your Git provider (GitHub, GitLab, Bitbucket)
    • The branch to deploy
    • PHP version (e.g., PHP 8.2)
  4. Click Create App.

Amezmo will spin up an isolated environment for your app β€” no server provisioning required!


πŸ”§ Step 2: Configure Environment Settings

Head to the Environment tab for your app:

  • Add .env variables (just like Laravel or other frameworks)
  • Enable SSL for HTTPS (free via Let's Encrypt)
  • Choose a document root β€” for Laravel, it's usually /public

Click Save after you configure your environment.


πŸ“¦ Step 3: Deploy Your Code

Amezmo uses Git to deploy your app. It can pull directly from your Git repo.

To deploy:

  • Either manually trigger a deploy from the dashboard or
  • Push to the branch you connected during app creation

Amezmo will:

  • Clone the repo
  • Run composer install
  • Deploy the app
  • Reload your web process

It’s that simple.


βš™οΈ Step 4: Set Up Queues, Crons, and Background Tasks

Laravel users β€” you're in luck.

Under the Workers section, you can:

  • Add a php artisan queue:work process
  • Schedule artisan schedule:run in the Crons tab (every minute)
  • Run any long-running command you need

No need to SSH in or configure Supervisor manually.


πŸ“ Step 5: Manage Storage and Backups

Amezmo gives you:

  • Persistent /storage directory
  • Daily automatic backups of code and DB
  • One-click restore in case of failure

For Laravel apps, storage is already pre-configured. Just run:


bash
php artisan storage:link
Enter fullscreen mode Exit fullscreen mode

Heroku

The AI PaaS for deploying, managing, and scaling apps.

Heroku tackles the toil β€” patching and upgrading, 24/7 ops and security, build systems, failovers, and more. Stay focused on building great data-driven applications.

Get Started

Top comments (0)

πŸ‘‹ Kindness is contagious

Explore this insightful write-up, celebrated by our thriving DEV Community. Developers everywhere are invited to contribute and elevate our shared expertise.

A simple "thank you" can brighten someone’s dayβ€”leave your appreciation in the comments!

On DEV, knowledge-sharing fuels our progress and strengthens our community ties. Found this useful? A quick thank you to the author makes all the difference.

Okay