Closed erfan-ilyas closed 9 years ago
I've just added a new var NGINX_PHP_FPM_DEBUG so you can see what is happening during start.
Just add NGINX_PHP_FPM_DEBUG=1
to your rhc app create
command and paste the results here.
This the output i am getting.
Cartridges: https://reflector-getupcloud.getup.io/reflect?github=getu pcloud/openshift-nginx-php-fpm Gear Size: default Scaling: no Environment Variables: NGINX_PHP_FPM_DEBUG=1
Creating application 'phpfpm' ... Building nginx configuration Building php-fpm configuration Failed to execute: 'control start' for /var/lib/openshift/5460e8bd500446ca060003e8/nginx-php-fpm + NGINX_CFG_FILE=/var/lib/openshift/5460e8bd500446ca060003e8/nginx-php-fpm//config uration/etc/nginx.conf + NGINX_PID_FILE=/var/lib/openshift/5460e8bd500446ca060003e8/nginx-php-fpm//run/ng inx.pid + PHP_CFG_FILE=/var/lib/openshift/5460e8bd500446ca060003e8/nginx-php-fpm//configur ation/etc/php-fpm.conf + PHP_PID_FILE=/var/lib/openshift/5460e8bd500446ca060003e8/nginx-php-fpm//run/php- fpm.pid
I was able to resolve the issue by modifying the following file:
/ usr / template / config / php-fpm.d / export_env.conf.erb
Original code was: <% ENV.each do |name, value| puts "env[#{name}] = #{value}"; end %>
This file was producing empty LANG value, So i hard-coded this to add "en" value. I am not sure why it is empty now?
Here is the working code for me:
<% ENV.each do |name, value| if name == "LANG" puts "env[LANG] = en"; else puts "env[#{name}] = #{value}"; end end %>
Thanks.
As we say here in Brazil: you just hit the fly ;)
+ /usr/bin/scl enable php54 'php-fpm -D -y /var/lib/openshift/5460ff7a5004467cff00006b/nginx-php-fpm//configuration/etc/php-fpm.conf'
[10-Nov-2014 13:10:37] ERROR: [/var/lib/openshift/5460ff7a5004467cff00006b/app-root/runtime/repo//config/php-fpm.d/export_env.conf:31] empty value
[10-Nov-2014 13:10:37] ERROR: Unable to include /var/lib/openshift/5460ff7a5004467cff00006b/app-root/runtime/repo//config/php-fpm.d/export_env.conf from /var/lib/openshift/5460ff7a5004467cff00006b/nginx-php-fpm//configuration/etc/php-fpm.conf at line 31
[10-Nov-2014 13:10:37] ERROR: failed to load configuration file' /var/lib/openshift/5460ff7a5004467cff00006b/nginx-php-fpm//configuration/etc/php-fpm.conf'
[10-Nov-2014 13:10:37] ERROR: FPM initialization failed
It's fixed now. Thanks!
I don't know if its only me. I am trying to deploy this cartridge but i am getting this error:
Creating application 'phpfpm' ... Building nginx configuration Building php-fpm configuration Failed to execute: 'control start' for /var/lib/openshift/5460e2eee0b8cd9b04000200/nginx-php-fpm
But i can install and deploy other cartridges: for example: https://github.com/tengyifei/openshift-cartridge-nginx-hhvm
Can anybody help?