简体   繁体   中英

Permission Denied for Rails assets directory

I've been searching for an answer online for awhile. I am running an app on Ubuntu/Apache/Passenger. I'm receiving a "permission denied" error to my assets folder. My file are located in the home directory. I run ls -l and it returns:

drwxrwxr-x 6 root root 4096 Aug 19 01:30 tmp

Well,

I moved my app to var/www then I ran the following:

chown -R www-data:www-data /var/www/appname

So the app is called events and this folder is owned by root ? If also events/config.ru is owned by root then passenger will not start the app as root but usually as nobody . Check out http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM