plesk / node-express

A simple Express-based app to test Node.js support.
33 stars 61 forks source link

example project doesn't work on Plesk Obsidian #7

Closed clemensmol closed 4 years ago

clemensmol commented 4 years ago

Installed the app, and followed directions on your site. Keep getting "Error starting web application" errors from Phusion Passenger.

Subprocess: Initialize language runtime — 0.1s Load or execute application — 89.9s

clemensmol commented 4 years ago

I found the solution. Plesk bugs when main folder and application folders are the same for Node apps. No errors are shown in the Panel but when I added a public folder it started to work.

CraftedFury commented 4 years ago

@clemensmol What exactly did you do to fix this? I think I've just ran into the exact same problem.

Where are your files in relation to the web root, and what are your plesk settings for the node app (application root, document root, application startup file)?

CaptainLazarus commented 2 years ago

Any updates? Think I've just run into this.

clemensmol commented 2 years ago

Sorry @Nahydrin, somehow I missed your question. Maybe it's helpful for @CaptainLazarus. I'm running a NextJS site with node 16.13.1

Dir structure:

Plesk NodeJS settings:

Document Root: /var/www/vhosts/domain/live/public Application Root: /var/www/vhosts/domain/live Application Startup File: server.js (this file must exist in /var/www/vhosts/domain/live)

The Document Root is for hosting static assets (images, robots.txt etc). The Application Root is where your NodeJS code exists. The Application Startup File points to a file inside the Application Root, usually the file running your (Express) server.