Tiny Posted August 31, 2018 Report Share Posted August 31, 2018 A lot people on shared hosting have problems with file permissions, cPanel .... The webfolder, something like commonly /home/username/public_htl should be owned by username & root [username:root], chmod 777 for folders: uploads Uploads cache logs_blesta. files ONLY: plugins/support_manager/pipe.php AND app/controllers/cron.php (if using piping for ticketing, remember the #hasbang to) Get the server admin [root]to install this script, I run it once an hour. Enter your username and the path to your blesta,. Lamer note: lines and 4 #!/bin/bash # edit the following vars, keep the "" where they are myusername=”username” myblestapath=/path/to/blestainstalltion # No need to edit below, you might have to swap your enemy; root TO 999, just dependinr config find $myblestapath -user "root" -exec chown ‘$myusername’:’$myusername’ {} \; -exec chmod 02777 {} \; This will correct frequent issues and inheriting a 'pseudo root' (you re now root in this directory) and do with the new created [files owner:root] / [12345:999] do, whatever you want, until you might have suddenly a new file or folder. After the nxt script run, all will fine again until the next file or folder appears and then comes the script again, I am ok with once an hour in roots crontab (0 * * * * /path/to/the/script) Have fun activa and Blesta Addons 2 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.