[Vtigercrm-developers] Folder permissions to installation

Juan Pablo Botero juanpabloboterolopez at gmail.com
Thu Aug 6 05:48:29 GMT 2015


Hi.

Sorry for the late answer to this thread.

So, the command Gaves me a lot of light.

ps aux | grep nginx

Shows me that the nginx service runs as root user:

root      2253  0.0  0.1  47544  1356 ?        Ss   ago05   0:00 nginx:
master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx     2256  0.0  0.1  47920  1940 ?        S    ago05   0:00 nginx:
worker process
nginx     2257  0.0  0.1  47920  1940 ?        S    ago05   0:01 nginx:
worker process

I also have a CentOS 6 with apache, but the result shows that apache server
runs from apache user:

apache    1651  0.0  0.5 387240 11344 ?        S    Aug05   0:00
/usr/sbin/httpd
apache    1652  0.0  0.5 387240 11344 ?        S    Aug05   0:00
/usr/sbin/httpd
apache    1653  0.0  0.5 387240 11344 ?        S    Aug05   0:00
/usr/sbin/httpd
...

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].

The thing is about the interpretation of vtiger (or php) with an nginx
server.


Alan Lord, thanks for your comment, always very conveniet.

I restored the permissions to 755 to folders and 644 to files and run the
script that shows me the user as Hamono suggest:

<?php

echo `whoami`;


and it prints me: apache


Now, i would think that the configuration is correct now, there just issues
with vtiger (or php) interpreting another web server different to apache.

What do you think?

Thanks a lot.

[1]
http://unix.stackexchange.com/questions/134301/why-does-nginx-starts-process-as-root



2015-07-27 2:04 GMT-05:00 Alan Lord <alanslists at gmail.com>:

> On 25/07/15 10:38, cryptic wrote:
>
>> Assuming the path is /var/www/vtigercrm
>>
>
> sudo chown -R www-data:www-data vtigercrm
>>
>
> 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.
>
> sudo chmod  -R 775 /var/www/vtigercrm
>>
>
> 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...
>
> Al
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Cordialmente:
Juan Pablo Botero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150806/b475eca3/attachment.html>


More information about the vtigercrm-developers mailing list