Jump to content
Froxlor Forum
  • 0

HowTo froxlor + nginx + php-fpm?


Kamik

Question

Hello,

can someone write howto for froxlor + nginx + php-fpm?

 

I always get the error message:

 

/etc/log/php-fpm.log

ERROR: [pool xxxxx.de] can not get uid for user 'web23'

 

libnss-mysql works.

 

Debian Squeeze 64bit

 

#/etc/php-fpm.d/xxx.de.conf
[xxx.de]
listen = /var/run/nginx/web23-xxx.de-php-fpm.socket
listen.owner = web23
listen.group = web23
listen.mode = 0666
user = web23
group = web23
pm = static
pm.max_children = 1
pm.max_requests = 0
;chroot = /var/customers/webs/web23/joomla/
env[TMP] = /var/customers/tmp/web23/
env[TMPDIR] = /var/customers/tmp/web23/
env[TEMP] = /var/customers/tmp/web23/
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f info@xxx.de
php_admin_value[open_basedir] = /var/customers/webs/web23/joomla/:/var/customers/tmp/web23/:/usr/share/php/:/usr/share/php5/:/tmp/
php_admin_value[session.save_path] = /var/customers/tmp/web23/
php_admin_value[upload_tmp_dir] = /var/customers/tmp/web23/

 

#22_froxlor_normal_vhost_xxx.de.conf
# Created 11.08.2011 23:55
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

server {
       listen 46.4.83.71:80;
       server_name    xxx.de www.xxx.de;
       access_log    /var/customers/logs/web23-access.log combined;
       error_log    /var/customers/logs/web23-error.log error;
       root     /var/customers/webs/web23/joomla/;
       location / {
               index    index.php index.html index.htm;
       }
       location /zer/ {
               auth_basic            "Restricted Area";
               auth_basic_user_file  /etc/nginx/froxlor-htpasswd/23-ae48e51ac3b0102f5809000158e9afb1.htpasswd;
       }
       location /s/ {
               auth_basic            "Restricted Area";
               auth_basic_user_file  /etc/nginx/froxlor-htpasswd/23-fe38eea34712352f4ee112461aac9b6e.htpasswd;
       }
       location ~ \.php$ {
               fastcgi_index index.php;
               include /etc/nginx/fastcgi_params;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               fastcgi_pass unix:/var/run/nginx/web23-xxx.de-php-fpm.socket;
       }
       location /webalizer {
               root /var/customers/webs/web23/webalizer/xxx.de;
       }
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...