3

Mezzio app development in WSL2

 1 year ago
source link: https://www.dotkernel.com/php-development/mezzio-app-development-in-wsl2/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Posted by Merlin on September 8, 2022 | No Comments

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.

Leave a Reply Cancel Reply

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

Comment

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>

Name *
Email *
Website

Save my name, email, and website in this browser for the next time I comment.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK