Connected Tutorial(This question is a follow-up to this tutorial):
Developing on Microsoft Windows With the Windows Subsystem for Linux (WSL)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.
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!
Hello, @marcofarinasso
You can use the service command instead of systemctl , for example to start apache:
- sudo service apache2 start
I know that you’ve mentioned LEMP stack so the command for nginx will be the same:
- 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.