upstream: "fastcgi://unix:/usr/local/php53/sockets/.sock

wanener

Verified User
Joined
Apr 16, 2012
Messages
23
after we setup a server with custombuild 2 and nginx as webserver

2 website that use same system get following erro when they try to access a specefic php file

here is the nginx doamin error log
my problem is this part

11323 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 58017344 bytes) in /home/username/domains/doamin.com/public_html/source/includes/database.php on line 68" while reading response header from upstream, client: ip x.x.x.x , server: doamin.com, request: "GET /admin.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php53/sockets/username.sock:", host: "doamin.com"



and the other part taht may be not iportant

2013/06/07 23:36:32 [error] 3654#0: *11323 open() "/home/username/domains/doamin.com/public_html/favicon.ico" failed (2: No such file or directory), client: ip x.x.x.x, server: doamin.com, request: "GET /favicon.ico HTTP/1.1", host: "doamin.com"
^C2013/06/07 23:36:35 [error] 3653#0: *11585 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ',' in /home/username/domains/doamin.com/public_html/source/includes/template.php(106) : eval()'d code on line 106" while reading response header from upstream, client: ip x.x.x.x, server: doamin.com, request: "GET /viewer.php?file=47403489437604481699.gif HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php53/sockets/username.sock:", host: "doamin.com", referrer: "http://doamin/cat/pouyajava5"
2013/06/07 23:36:35 [error] 3656#0: *11576 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ',' in /home/username/domains/doamin.com/public_html/source/includes/template.php(106) : eval()'d code on line 106" while reading response header from upstream, client: ip x.x.x.x, server: doamin.com, request: "GET /viewer.php?file=47403489437604481699.gif HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php53/sockets/username.sock:", host: "doamin.com", referrer: "http://domain/cat/pouyajava5"
2013/06/07 23:36:35 [error] 3656#0: *11583 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ',' in /home/username/domains/doamin.com/public_html/source/includes/template.php(106) : eval()'d code on line 106" while reading response header from upstream, client: ip x.x.x.x, server: doamin.com, request: "GET /viewer.php?file=58567384264604816436.gif HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php53/sockets/username.sock:", host: "doamin.com", referrer: "http://doamin/cat/pouyajava5"
2013/06/07 23:36:36 [error] 3653#0: *11779 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected ',' in /home/username/domains/doamin.com/public_html/source/includes/template.php(106) : eval()'d code on line 106" while reading response header from upstream, client: ip x.x.x.x, server: doamin.com, request: "GET /viewer.php?file=58567384264604816436.gif HTTP/1.1", upstream: "fastcgi://unix:/usr/local/php53/sockets/username.sock:", host: "doamin.com", referrer: "/cat/pouyajava5"





i set memory_limit=512M on
/usr/local/php53/lib/php.ini

i get thi sfile from result of

php --ini

please give me your suggestion
 
You should increase memory limit in /usr/local/directadmin/data/templates/php-fpm.conf template (it should be copied to the custom directory). Please check phpinfo() afterwards. The second error is PHP parse error, you should check line 106 in file /home/username/domains/doamin.com/public_html/source/includes/template.php.
 
You should increase memory limit in /usr/local/directadmin/data/templates/php-fpm.conf template (it should be copied to the custom directory). Please check phpinfo() afterwards. The second error is PHP parse error, you should check line 106 in file /home/username/domains/doamin.com/public_html/source/includes/template.php.

hello and thanks
i copied this file to ./custombuild/custom/ap2 configuration folder
but when i tried
./build used_configs
it show

Nginx configuration file: /usr/local/directadmin/custombuild/configure/nginx/configure.nginx
PHP (default) configuration file: /usr/local/directadmin/custombuild/configure/fpm/configure.php53
PureFTPD configuration file: /usr/local/directadmin/custombuild/configure/pureftpd/configure.pureftpd
Dovecot configuration file: /usr/local/directadmin/custombuild/configure/dovecot/configure.dovecot


and seems to config is not loaded from custom folder

i also tired /custom/nginx and /custom/fpm
but same result
 
one more this is this php-fpm is not similar to php.ini file
and it dose not have memory_limit option to increase
 
Thnsk SMtalk Problem Fixed

Hello
thank you SMTALK

SMtalked messaged and directed to solve this problem
so here what i done

after copy /usr/local/directadmin/data/templates/php-fpm.conf to /usr/local/directadmin/data/templates/custom using
Code:
cp /usr/local/directadmin/data/templates/php-fpm.conf /usr/local/directadmin/data/templates/custom
edit
Code:
usr/local/directadmin/data/templates/custom/php-fpm.conf
and add/edit following parameter
php_admin_value[memory_limit] = 32M

Then you should run "./build rewrite_confs" to rewrite configs using that template. And for php changes only php-fpm53 (php-fpm54 or php-fpm55) service needs to be restarted.

i dont familiar with php-fpm and after some more researched find out lots of perfomance tips that help nginx fly !

at the moment i think directadmin default configuration php-fpm setting dont allow to PHP-FPm use more than 1 CPU/core and eat available resources for more performance
 
Back
Top