Question

Install and configure LEMP server on Ubuntu 20.04 with wsl2

Connected Tutorial
This question is a follow-up to this tutorial:

I have a problem to configure a LEMP (Linux, Nginx, MySQL, PHP) server on Ubuntu 20.04, because the systemtcl don not work on wsl2.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @marcofarinasso

You can use the service command instead of systemctl , for example to start apache:

  1. sudo service apache2 start

I know that you’ve mentioned LEMP stack so the command for nginx will be the same:

  1. sudo service nginx start

You can check the following article on DEV on how to setup the LAMP stack on WSL2:

https://dev.to/axiol/setting-up-a-lamp-configuration-with-wsl-2-5fbm

Regards, Alex

المتصفح