<div dir="ltr">Hi.<div><br></div><div>Sorry for the late answer to this thread.</div><div><br></div><div>So, the command Gaves me a lot of light.</div><div><br></div>ps aux | grep nginx<div><span style="font-family:'Courier New';font-size:13.3333330154419px"><br></span></div>Shows me that the nginx service runs as root user:<div><span style="font-family:'Courier New';font-size:13.3333330154419px"><br></span></div>root      2253  0.0  0.1  47544  1356 ?        Ss   ago05   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf<br>nginx     2256  0.0  0.1  47920  1940 ?        S    ago05   0:00 nginx: worker process<br>nginx     2257  0.0  0.1  47920  1940 ?        S    ago05   0:01 nginx: worker process<div><br></div>I also have a CentOS 6 with apache, but the result shows that apache server runs from apache user: <div><br></div><div><div>apache    1651  0.0  0.5 387240 11344 ?        S    Aug05   0:00 /usr/sbin/httpd</div><div>apache    1652  0.0  0.5 387240 11344 ?        S    Aug05   0:00 /usr/sbin/httpd</div><div>apache    1653  0.0  0.5 387240 11344 ?        S    Aug05   0:00 /usr/sbin/httpd</div></div><div>...</div><div><br></div><div>I was searching in some forums and the conclusion is that, nginx server and apache server when uses a port number < 1024  runs from root user as first instance, later the control is passed to the user [1].</div><div><br></div><div>The thing is about the interpretation of vtiger (or php) with an nginx server.</div><div><br></div><div><br></div><div>Alan Lord, thanks for your comment, always very conveniet.</div><div><br></div><div>I restored the permissions to 755 to folders and 644 to files and run the script that shows me the user as Hamono suggest:</div><div><br></div><div><p class="MsoNormal" style="font-size:12.8000001907349px"><span style="font-size:11pt;font-family:'Courier New'"><?php<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8000001907349px"><span style="font-size:11pt;font-family:'Courier New'">echo `whoami`;</span></p><p class="MsoNormal" style="font-size:12.8000001907349px"><span style="font-size:11pt;font-family:'Courier New'"><br></span></p>and it prints me: apache</div><div><br></div><div><br></div><div>Now, i would think that the configuration is correct now, there just issues with vtiger (or php) interpreting another web server different to apache.</div><div><br></div><div>What do you think?</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>[1] <a href="http://unix.stackexchange.com/questions/134301/why-does-nginx-starts-process-as-root">http://unix.stackexchange.com/questions/134301/why-does-nginx-starts-process-as-root</a></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-27 2:04 GMT-05:00 Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">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></span>
This assumes that nginx running as the user and group "www-data" which in my experience is generally a debian-based system's name. I think nginx on CentOS will be different.<span class=""><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></span>
This is not the best idea... There are *no* files in vtiger that _need_ to be executable. You've just made everything executable by owner and 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>
</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>