Install a Mezzio app (DotKernel API) using WSL2

This article will run you through the steps of installing a Mezzio application (DotKernel API) in WSL2 and run it on Ubuntu 20.04 LTS.

Step 1:

Make sure you have WSL2 installed on your machine by following this guide.

Step 2:

Install Ubuntu 20.0 LTS inside WLS2 as described here.

Step 3:

Create a virtualhost for your project using this guide.

Step 4:

Using your terminal, move into the virtualhost directory that you just created:

cd /home/your-username/projects/your-virtualhost

Install DotKernel API, by following this guide.

Make sure your data and log directories are writable by changing their permissions, as described here.

Step 5:

Setup PHPStorm to work with WSL2 files like in this article

Note:

There is a guide for AlmaLinux 8 as well, but that’s not fully functional because of a well-known issue regarding running systemd inside WSL2.


Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:

  • Modernising Legacy Applications
  • Migration from any version of Zend Framework to Laminas
  • Migration from legacy Laminas API Tools (formerly Apigility) to Dotkernel API
  • Mezzio and Laminas Consulting and Technical Audit
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>