Invalid command 'PassengerAppRoot'

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:45:13

问题


I am getting the error Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration

while setting up the passenger for Node js project on AWS server.

sudo /usr/bin/passenger-config validate-install
What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

 ‣ ⬢  Passenger itself
   ⬡  Apache

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓

Everything looks good. :-)

What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

   ⬢  Passenger itself
 ‣ ⬡  Apache

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓

Everything looks good. :-)

perb.conf

<VirtualHost *:80>
    ServerName ip_address

    # Tell Apache and Passenger where your app's code directory is
    DocumentRoot /var/www/html/perb/public
    PassengerAppRoot /var/www/html/perb/

    # Tell Passenger that your app is a Node.js app
    PassengerAppType node
    PassengerStartupFile app.js

    # Relax Apache security settings
    <Directory /var/www/html/perb/public/>
      Allow from all
      Options -MultiViews
      #Uncomment this if you're on Apache >= 2.4:
      #Require all granted
    </Directory>
</VirtualHost>

Any help will be appreciated.

来源:https://stackoverflow.com/questions/47363154/invalid-command-passengerapproot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!