• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Node js Onyx

touins

New Pleskian
Hello all ,

After days thanks to help of expert of this forum , i succes to install phusion passenger in plesk without any error after that i installed nodejs , but when i followed this tutorial form this link https://www.plesk.com/blog/plesk-and-node-js i got

Forbidden
You do not have permission to access this document.

i done all steps with creating /public folder on the root and app.js in the same level and i searched if i have .htaccess in the root but nothing happen

Best thanks
 
Hi touins,

even if you link to an article, where you found a "How-to", we still don't know, WHICH commands YOU used to achieve your goal. We now have to re-ask step-by-step, if you did that, this and that and if you checked this, that and this.
You wrote:
i done all steps with creating /public folder on the root and app.js in the same level and i searched if i have .htaccess in the root
To avoid all possible re-questioning and to investigate your possible issues, it is essential, that you provide informations, WHAT you did and according to your error - message:
Forbidden
You do not have permission to access this document.
... you have to provide corresponding log - entries from your webserver - logs ( => "/var/www/vhosts/system/YOUR-DOMAIN.COM/logs" or/and "/var/log/apache2/" / "/var/log/nginx/" ), so that people willing to help you have something to start for the needed investigations. ;)
It would help as well, if you provide informations about the PERMISSIONS for the files and folders and pls. keep in mind, that it is as well essentiial, that you inform us about your current webserver - configuration for your domain ( i.e.: apache+FastCGI, apache+nginx+FastCGI, apache+nginx+PHP-FPM, ... )

You even only stated:
but nothing happen
... and don't inform us, WHAT you expected to happen ( even that I think, that you wrote that in the meaning, that you don't see the "Hello World" - text...but this is only MY guessing ) :rolleyes:
 
Hi touins,

even if you link to an article, where you found a "How-to", we still don't know, WHICH commands YOU used to achieve your goal. We now have to re-ask step-by-step, if you did that, this and that and if you checked this, that and this.
You wrote:

To avoid all possible re-questioning and to investigate your possible issues, it is essential, that you provide informations, WHAT you did and according to your error - message:

... you have to provide corresponding log - entries from your webserver - logs ( => "/var/www/vhosts/system/YOUR-DOMAIN.COM/logs" or/and "/var/log/apache2/" / "/var/log/nginx/" ), so that people willing to help you have something to start for the needed investigations. ;)
It would help as well, if you provide informations about the PERMISSIONS for the files and folders and pls. keep in mind, that it is as well essentiial, that you inform us about your current webserver - configuration for your domain ( i.e.: apache+FastCGI, apache+nginx+FastCGI, apache+nginx+PHP-FPM, ... )

You even only stated:

... and don't inform us, WHAT you expected to happen ( even that I think, that you wrote that in the meaning, that you don't see the "Hello World" - text...but this is only MY guessing ) :rolleyes:

Thanks for your Advice :) , your comments really true ...
i found on my domain log in plesk interface

Code:
403    GET / HTTP/1.0   Apache access

Directory index forbidden by Options directive: /var/www/vhosts/mydomain/mysubdoamin/public/

and my config is apache+nginx+PHP run with FastCGI,
 
Hi touins,

Directory index forbidden by Options directive: /var/www/vhosts/mydomain/mysubdoamin/public/
You have several options to resolve that:

1. Go to "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings" and set your own modifications for "Index files" as for example:

Standard:
Code:
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml

Possible unique configuration:
Code:
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml ADD_HERE_THE_DESIRED_NAME_AND_FILE-EXTENSION

2. "Options +Indexes" is not set in your depending apache - configuration. Pls. check your configuration files at

/var/www/vhosts/system/YOUR-DOMAIN.COM/conf/httpd_default.conf
or
/var/www/vhosts/system/YOUR-DOMAIN.COM/conf/httpd_ip_default.conf

If this specific configuration is not set, you are either able to configure it as an "Additional Apache directives" at "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional directives for HTTP ( or/and Additional directives for HTTPS )" as for example:

For the whole (sub)domain:
Code:
<LocationMatch "^/.*$">
   Options +Indexes +SymLinksIfOwnerMatch
</LocationMatch>

For a specific folder on your (sub)domain:
Code:
<LocationMatch "^/YOUR_FOLDER_NAME.*$">
   Options +Indexes +SymLinksIfOwnerMatch
</LocationMatch>

Another option is to set "Options +Indexes" in your global "/etc/apache2/apache2.conf" ( on Debian/Ubuntu - based systems ), or "/etc/httpd/conf/httpd.conf" ( on CentOS/RHEL - based systems):

For the whole all domains:
Code:
<LocationMatch "^/.*$">
    Options +Indexes
</LocationMatch>

For a specific folder on your domains:
Code:
<LocationMatch "^/YOUR_FOLDER_NAME.*$">
    Options +Indexes
</LocationMatch>


Pls. make sure, that you don't deny "Restrict the ability to follow symbolic links" at "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings", because this will conflict with your changes, as you might notice. ;)
 
Hi touins,


You have several options to resolve that:

1. Go to "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings" and set your own modifications for "Index files" as for example:

Standard:
Code:
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml

Possible unique configuration:
Code:
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml ADD_HERE_THE_DESIRED_NAME_AND_FILE-EXTENSION

2. "Options +Indexes" is not set in your depending apache - configuration. Pls. check your configuration files at

/var/www/vhosts/system/YOUR-DOMAIN.COM/conf/httpd_default.conf
or
/var/www/vhosts/system/YOUR-DOMAIN.COM/conf/httpd_ip_default.conf

If this specific configuration is not set, you are either able to configure it as an "Additional Apache directives" at "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings > (textbox) Additional directives for HTTP ( or/and Additional directives for HTTPS )" as for example:

For the whole (sub)domain:
Code:
<LocationMatch "^/.*$">
   Options +Indexes +SymLinksIfOwnerMatch
</LocationMatch>

For a specific folder on your (sub)domain:
Code:
<LocationMatch "^/YOUR_FOLDER_NAME.*$">
   Options +Indexes +SymLinksIfOwnerMatch
</LocationMatch>
Another option is to set "Options +Indexes" in your global "/etc/apache2/apache2.conf" ( on Debian/Ubuntu - based systems ), or "/etc/httpd/conf/httpd.conf" ( on CentOS/RHEL - based systems):

For the whole all domains:
Code:
<LocationMatch "^/.*$">
    Options +Indexes
</LocationMatch>

For a specific folder on your domains:
Code:
<LocationMatch "^/YOUR_FOLDER_NAME.*$">
    Options +Indexes
</LocationMatch>
Pls. make sure, that you don't deny "Restrict the ability to follow symbolic links" at "Home > Subscriptions > (sub)YOUR-DOMAIN.COM > Apache & nginx Settings", because this will conflict with your changes, as you might notice. ;)
Thanks for your help i think my pb its not related to indexs because when i put index.html its work fine but i can't exucute js file witch is app.js

they seed on nodejs extention tutorial the phusion passager will redirect automatically to app.js
 
Last edited:
Hi all. Now I run nodeJS with Plesk but it not run
 

Attachments

  • Screen Shot 2016-12-30 at 10.01.09 AM.png
    Screen Shot 2016-12-30 at 10.01.09 AM.png
    746.9 KB · Views: 15
Back
Top