giantstep Posted February 8, 2017 Report Share Posted February 8, 2017 (edited) I recently installed revive and users could not upload images, so I changed the image folder to 755 permissions and it works fine now but... Now this error message appears when users log in: Debug tail -f shows no message related to this. Is there a way to get rid of this? I'm assuming it is displaying because I changed the permissions on the image folder? What are the proper permissions that may be needed to get rid of this message? Thanks Edited February 8, 2017 by giantstep Quote Link to comment Share on other sites More sharing options...
giantstep Posted February 9, 2017 Author Report Share Posted February 9, 2017 noone? hopefully someone can help. I just want to get rid of the error message. It looks bad and looks like I screwed something up. I do not think I did. Everything works fine... the error exists because I changed the permission of the var folder to 777 after the install (which is a new install/ not an upgrade). It would not upload any images until I changed var to 777, which is understandable. Quote Link to comment Share on other sites More sharing options...
dvsDave Posted February 14, 2017 Report Share Posted February 14, 2017 I'm getting the same error, and the debug log isn't telling me what the errors are, just getting maintenance log entries. Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted February 18, 2017 Report Share Posted February 18, 2017 Here are the list of all directories that Revive Adserver requires be set so that the webserver user can read/write to them. Please note that these permissions must be set recursively, so that all files/subdirectories of these can also be read/written to by the webserver user. revive-adserver/varrevive-adserver/var/cacherevive-adserver/var/pluginsrevive-adserver/var/templates_compiledrevive-adserver/pluginsrevive-adserver/www/admin/pluginsrevive-adserver/www/images Quote Link to comment Share on other sites More sharing options...
giantstep Posted March 1, 2017 Author Report Share Posted March 1, 2017 (edited) Thanks Andre! Sorry for the ignorant question but what permission do you recommend be set so the webserver can read/write to them? 777? 775? 755? Also, if I need to recursively set the var to read write, how can I lock down the config file in /var/www.myserver.com.conf.php (from 777 to 644) note: this is a fresh install on Digital Ocean. Edited March 1, 2017 by giantstep Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted March 3, 2017 Report Share Posted March 3, 2017 Hi @giantstep, My personal preference is to: chown -R [webserver_user]:[webserver_group] [directory] chmod -R u+rw [directory] chmod -R go-rw [directory] So, set the directories to be owned by the user account that runs the webserver, then ensure that the owner (the webserver user) can read and write, but no-one else can (i.e. group, other). If you want to prevent access to the config file, just: chmod ugo-rw var/[domain].conf.php So, remove read and write for the file for the user (owner), group, and other. HTH. Quote Link to comment Share on other sites More sharing options...
giantstep Posted March 22, 2017 Author Report Share Posted March 22, 2017 (edited) This is what I have, more in my language... My path is below, maybe this is the issue? The install is in a folder. Should I change the 755 permissions to 777 ?? revive-adserver/var/www/html/revive/var /var - 755 /www - 755 html/ -775 revive/ -775 revive/var -777revive/var/cache -777revive/var/plugins -777revive/var/templates_compiled -777revive/plugins -755revive/www/admin/plugins -755revive/www/images -775 I should add here that everything works great. We have been using the adserver for two months with no issue. ...just getting the error message when people log in. So it appears permissions are good enough for it to work... Wish there was a log somewhere to know what is going on. Edited March 22, 2017 by giantstep Quote Link to comment Share on other sites More sharing options...
giantstep Posted March 22, 2017 Author Report Share Posted March 22, 2017 I figured it out. It was showing up in the logs. It was just after the Maintenance task... I just had to look closer... it said unwritable file which was revive/plugin I set all you listed above to 777 and no more error message! Thanks for dealing with this. You guys are great and deal with a lot of slack from us amateurs! Kudos to ya! andrewatfornax 1 Quote Link to comment Share on other sites More sharing options...
prateek Posted July 6, 2018 Report Share Posted July 6, 2018 I am trying to install revive server on centos7 machine, while system pre-check it is giving file permission error. I tried even changing the file permission to 777 with apache user (as i am running my web server under apache user ). After changing permission it is not taking changed permission same error again and again, no logs are generated anywhere. Please show me some path to debug and install it correctly. Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted July 6, 2018 Report Share Posted July 6, 2018 https://documentation.revive-adserver.com/display/DOCS/Directory+Permissions https://documentation.revive-adserver.com/display/DOCS/Revive+Adserver+Broken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.