Jump to content

Recommended Posts

Posted

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:

  1.  uploads
  2. Uploads
  3. cache
  4. logs_blesta.
  5. 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

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...