<div dir="ltr">Thanks Matus, that works for an script.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-27 5:08 GMT-05:00 IT-Solutions4You <span dir="ltr"><<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We use it this way:<span class=""><br>
Assuming the path is /var/www/vtigercrm<br>
<br></span>
chown -R root:www-data vtigercrm<br>
cd vtigercrm<br>
<br>
find -type d -exec chmod 755 {} \;<br>
<br>
chmod 775 backup/<br>
chmod 775 cache/<br>
chmod 775 cache/images/<br>
chmod 775 cache/import/<br>
chmod 775 cron/modules/<br>
chmod 775 cron/language/<br>
chmod 775 install/<br>
chmod -R 775 languages/<br>
chmod -R 775 layouts/vlayout/modules/<br>
chmod 775 logs/<br>
chmod -R 775 modules/<br>
chmod 775 storage/<br>
chmod -R 775 test/<br>
chmod 775 test/contact/<br>
chmod 775 test/logo/<br>
chmod 775 test/product/<br>
chmod 775 test/templates_c/vlayout<br>
chmod 775 test/upload/<br>
chmod 775 test/user/<br>
chmod 775 test/vtlib/<br>
chmod 775 test/vtlib/HTML/<br>
chmod 775 test/wordtemplatedownload/<br>
chmod 775 user_privileges/<br>
<br>
find -type f -exec chmod 644 {} \;<br>
<br>
chmod 664 config.inc.php<br>
chmod 664 install.php<br>
chmod 664 parent_tabdata.php<br>
chmod 664 tabdata.php<br>
chmod 664 user_privileges/audit_trail.php<br>
chmod 664 user_privileges/default_module_view.php<br>
chmod 664 user_privileges/enable_backup.php<br>
<br>
<br>
in 775 directory create .htaccess<br>
<Files *.php><br>
deny from all<br>
</Files><br>
<br>
<br>
Matus<br>
ITS4You<br>
<br>
<br>
<br>
Dňa 27. 7. 2015 o 9:04 Alan Lord napísal(a):<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 25/07/15 10:38, cryptic wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Assuming the path is /var/www/vtigercrm<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sudo chown -R www-data:www-data vtigercrm<br>
</blockquote>
<br>
This assumes that nginx running as the user and group "www-data" which<br>
in my experience is generally a debian-based system's name. I think<br>
nginx on CentOS will be different.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sudo chmod  -R 775 /var/www/vtigercrm<br>
</blockquote>
<br>
This is not the best idea... There are *no* files in vtiger that _need_<br>
to be executable. You've just made everything executable by owner and<br>
group...<br>
<br>
Al<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br>
<br></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Cordialmente:<br>Juan Pablo Botero<br></div></div>
</div>