cPanel has built-in GIT hosting that you can use in automated deployment with e.g. Azure Web App service. To make it happen, you create a text file with deployment instructions and credentials in your code repo, and you add an environment variable to Azure.
iPhone cannot send MMS message?
If your iPhone complains “Cannot Send Message – MMS Messaging needs to be enabled to send this message”, there is a fix in the settings that is both very unintuitive and very likely to work.
Debian (Debian, not Raspberry Pi OS) on Raspberry pi
Do you want to use actual Debian (not Raspbian aka Raspberry Pi OS) on a Raspberry Pi? Here are the small adjustments you will need to make to an official Debian image to make it 1. boot and 2. contain some of the features you would expect from Raspbian
Use USB drive as apt-get cache for frequent Raspberry PI reinstalls
I work on a configuration script for a Raspberry Pi, and as I debug it, more often than not I need to run reinstall over and over. On a metered connection it may be a problem, as not only it’s slow, it also uses your data plan. A way around this would be having a… Continue reading Use USB drive as apt-get cache for frequent Raspberry PI reinstalls
FreeBSD gets unresponsive on commands touching disk
Imagine your server hangs even on simple, seemingly unrelated commands such as cat file, ps aux or top. This is the issue I’ve been dealing with today. Short version: it was MySQL/MariaDB server clogging the VPS I/O. Important: even though a terminal window with an established SSH connection would freeze, I could always open a… Continue reading FreeBSD gets unresponsive on commands touching disk
Clone a Raspberry Pi OS image from one Micro SD card onto another
Find your Micro SD card identifier diskutil info -all You’re looking for something like this: ********** Device Identifier: disk2 Device Node: /dev/disk2 Whole: Yes Part of Whole: disk2 Device / Media Name: SD Card Reader Volume Name: Not applicable (no file system) Mounted: Not applicable (no file system) File System: None Content (IOContent): FDisk_partition_scheme OS… Continue reading Clone a Raspberry Pi OS image from one Micro SD card onto another
Custom file extensions (e.g. .env): routing and rendering serialized responses
It is fairly common to add json handler to a CakePHP route and have it automatically respond with formatted JSON. Consider this example. In your route: $routes->prefix(‘Api’, function (RouteBuilder $routes) { $routes->setExtensions([‘json’]); $routes->fallbacks(DashedRoute::class); }); In your controller: public function initialize(): void { parent::initialize(); $this->addViewClasses([\Cake\View\JsonView::class]); $this->viewBuilder()->setOption(‘serialize’, true); } So now when you request actions in that… Continue reading Custom file extensions (e.g. .env): routing and rendering serialized responses
Fixing SubscriptionIsOverQuotaForSku for App Service Free Tier
When creating a Service Plan in a region you never used before, you may run into `SubscriptionIsOverQuotaForSku` error. The solution is to request a service increase, the process is often automated and done in a few minutes. The guide contains step-by-step instructions and lists potential gotchas.
Deploying a simple CakePHP app to Render.com using Docker
Render doesnāt have a ānative PHP runtimeā like it does for Node/Python, but it does have Docker. So we can use a Docker image that will set up the PHP runtime for us. To make it happen, we will have to add these two files to our application: Dockerfile that imports and uses a prebuilt… Continue reading Deploying a simple CakePHP app to Render.com using Docker
Connection to Sqlite not established, unable to open database file
The problem You created a new CakePHP application and you try to visit its homepage. You get a database error. Missing Database Connection Cake\Database\Exception\MissingConnectionException Connection to Sqlite could not be established: SQLSTATE[HY000] [14] unable to open database file The (potential) reason Check your composer.json and see if your application uses cakephp/debug_kit: “require-dev”: { ⦠“cakephp/debug_kit”:… Continue reading Connection to Sqlite not established, unable to open database file