Linux Web Development on Windows
I've found documentation to be lacking in setting up a development environment in Windows for somebody who is used to linux or macOS. After lots of setting up and testing, I've found Windows to be plenty comfortable and up to the task.
- This is not for production. It's SO unperformant compared to a cheap linux VPS.
- Windows 10, latest please
LEMP stack (well, technically WEMP)
You can install nginx, php, mysql(or postgres) directly on Windows. The differences how to get a 'path' working and where to turn things on and off.
- Search google to find nginx, php, and mysql/postgres for windows.
- for those that do not have an installer, you simply unzip the file contents to an easy to remember filepath... ex. C:\php and C:\nginx
- To add these softwares to your PATH, tap the Windows key and type env. Hit the top result, then the Environment Variables... button. Click on PATH, then Edit button and add the filespaths to your C:\php\php.exe and C:\nginx\nginx.exe files. Save your work, close and reopen command prompt.
- Databases have installers. You turn them on and off in the Services program. Tap the windows key and type Services. Hit that result. Then you can see all the running background applications running on your computer. You can turn on/off and set startup preferences by right-clicking the service. You can do this for mysql and postgres.
- When referring to database connections, use 127.0.0.1 to connect instead of localhost.
Need more time to complete this...
This is an unfinished artifact. I will spend more time to re-orangice and complete it.
Before you leave...
What do you think? What do you want to see? [email protected]