After spending sometime today setting up my Plesk Server for staging, I’ve run into some issues. I got it to work on Windows 2022, here is how:
This setup is strictly for Windows Plesk Server:
We will use “httpdocs” to host our app.
Inside of Wappler targets ftp setup remote Directory:
Go into “Websites & Domains” > “Hosting Settings” and ensure that “Document Root” is equals to httpdocs
Go into Node.js settings and ensure that BOTH “Document Root” and “Application Root” are pointing to /httpdocs . They should be the same. (I know, I know… Wappler docs said differently, but this is for Windows and Plesk docs said this is the way for Windows)
Using file manager’s “Change Permissions” ensure that “Application pool group” has all permissions on /httpdocs directory. This is required for when we run build inside httpdocs
No matter if Windows, Linux, Unix, Android, iOS or ChromeOS, the Document Root is the public folder. In your case this should read /httpdocs/public. The Startup File for Wappler produced sites is index.js.
As a side note, there is no need to host from the httpdocs folder, you can create a folder named anything to your liking and host from there. I have called mine app
I tested your method above, and it doesn’t work on Windows running Plesk Obsidian. Works on my Linux running Plesk Obsidian. If you do a quick search on this forum everyone that’s having issue is hosting on windows plesk server it’s because of Document Root and App Root path.
@krish thank you for posting this - I spent a full day working on this install yesterday and was about to give up. Your instructions are indeed the only way to set up NodeJS on a Windows server running Obsidian. Its a strange set up indeed, but it works perfectly. It was the folder permissions bit that is crucial as without that the errors generated are a but difficult (for me anyway) to pin down.
The only thing I can add would be for anyone running Windows server with PLESK Obsidian is to also make sure you have URL Rewrite installed in the IIS Manager under the website being used. For anyone else that needs it theres easy step by step info here:
I dont know which part of the world you are in @krish but if we ever meet I owe you a (very large) coffee/beer of your choice - thanks again for posting