PHP

Amezmo provides a managed PHP hosting experience for developers and we aim to educate people about our how easy we make it to deploy and host PHP applications.

How to enable SSL connections to MySQL in WordPress without plugins

At Amezmo, we’ve recently rolled out remote database access over SSL. In this post, we will extend WordPress’s default MySQL connection options to support SSL connections to the server. How does WordPress connect to MySQL? The file wp-includes/wp-db.php contains a class called wpdb. This class setups the MySQL connection with the mysqli PHP extension. Since […]

Persistent Logging For Laravel PHP Apps

Amezmo is a platform as a service dedicated to PHP app hosting. Start your free trial today and get your app deployed fast. By default, Amezmo will create a dedicated directory for your application’s logging purposes. We recommend using this dedicated directory so you can persist your logs across deployments. The full path is /webroot/logs […]

How to Host and Deploy a Laravel PHP app

In this tutorial, we will deploy a Laravel application with a Redis backed queue, a MySQL database, and Nginx web server running PHP 7.4. We’ll also setup continuous deployments from GitHub and automated database backsups. Requirements Laravel repository hosted on GitHub Amezmo account Step 1. Creating the PHP server instance We’ll launch a 512MB/1 Core […]

How To Format Currency with PHP on Ubuntu 16.04

Introduction Formatting currency is an important practice that will help you implement locale-aware visual representions of your pricing text. Using a standard library is an effcient and extensibile way to format your prices to your users. Using a standard library to format your curreny is helpful in situations where your business expands into a market […]

How To Install WordPress With Git

This tutorial will show you how to install a new WordPress site using Amezmo. All code will live in your Github repository, so all references to the command line will be executed from your local machine. For this tutorial, you’ll need to create a new application from the Dashboard. Check out the docs for more […]

What’s new in PHP 7.2.19

The PHP group announced the release of PHP 7.2.19 today on Twitter, among other places. This release is a security release and it’s recommended all users of PHP 7.2 upgrade. Get secure.Get the latest releases of PHP.Get https://t.co/VqsPMvqYvO . 7.3.6, 7.2.19, and 7.1.30 are out and include the latest in important fixes. — php.net (@official_php) […]

Writing a Laravel Facade With a Service Provider

Prior to me discovering how the Laravel internals work, I would define static methods for most of my services. It quickly gets difficult to manage, once you need to keep non static state for a service, or you want dynamic behavior that is determined at runtime. In this post I’ll share how I defined my […]

Get More Done With Amezmo

Stop wasting time setting up boilerplate infrastructure. Amezmo makes it easy to deploy, scale and host your modern PHP application.