Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Stop One Site From Viewing Other's Files

$
0
0
Thanks for the suggestion! I gave that a look over. Here's where I'm at now:

I followed the following guide to set up php-fpm pools: http://www.rackspace.com/knowledge_center/article/installing-nginx-and-php-fpm-setup-for-php-fpm

Right now, I have a different pool and user for each of my sites.

I've still got the problem though. I can browse over to the other sites's files without a hitch.

Here's my /etc/php5/fpm/pool.d/websiteone_com.conf file for "websiteone.com":

[WEBSITEONE.COM]

listen = /var/run/php5-fpm/websiteone_com.socket
listen.backlog = -1
listen.owner = www-data
listen.group = www-data
listen.mode=0660

; Unix user/group of processes
user = websiteone_com
group = websiteone_com

; Choose how the process manager will control the number of child processes.
pm = dynamic
pm.max_children = 75
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500

; Pass environment variables
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

; host-specific php ini settings here
; php_admin_value[open_basedir] = /var/www/DOMAINNAME/htdocs:/tmp





Please, if you can give me any help as in what direction to go, I'd really appriciate it!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>