MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: letux on 2016-05-29, 16:23:34
-
hey ,
after delete clients accounts server is down and when try restart services , got me some errors
# sh /script/restart-all
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
-------------------------------------------------------------------
*** Process for MYSQL/MARIADB service ***
Starting MySQL SUCCESS!
- Process: restart
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
-------------------------------------------------------------------
*** Process for BIND service ***
- Process: restart
Stopping named: . [ OK ]
Starting named: [ OK ]
-------------------------------------------------------------------
*** Process for PHP-FPM service ***
- Process: restart
Stopping php-fpm (PHP Used): [FAILED]
Starting php-fpm (PHP Used): [29-May-2016 10:35:26] ERROR: [pool dalilelkheir] cannot get uid for user 'dalilelkheir'
[29-May-2016 10:35:26] ERROR: FPM initialization failed
[FAILED]
-------------------------------------------------------------------
*** Process for NGINX service ***
- Process: restart
Stopping nginx: [FAILED]
Starting nginx: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /opt/configs/nginx/conf/globals/switch_standard.conf:31
[FAILED]
-------------------------------------------------------------------
*** Process for HTTPD service ***
- Process: restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
-------------------------------------------------------------------
*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------
Stopping pure-ftpd: [ OK ]
Starting pure-ftpd: [ OK ]
-------------------------------------------------------------------
*** Process for KLOXO service ***
- Process: restart
Stopping kloxo-phpcgi: [ OK ]
Starting kloxo-phpcgi ('php54s' in 'fpm' mode): [ OK ]
Stopping kloxo-hiawatha: [ OK ]
Starting kloxo-hiawatha: [ OK ]
-------------------------------------------------------------------
so .. i have issue in PHP FPM & NginX proxy
*** Process for PHP-FPM service ***
- Process: restart
Stopping php-fpm (PHP Used): [FAILED]
Starting php-fpm (PHP Used): [29-May-2016 10:35:26] ERROR: [pool dalilelkheir] cannot get uid for user 'dalilelkheir'
[29-May-2016 10:35:26] ERROR: FPM initialization failed
[FAILED]
-------------------------------------------------------------------
*** Process for NGINX service ***
- Process: restart
Stopping nginx: [FAILED]
Starting nginx: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /opt/configs/nginx/conf/globals/switch_standard.conf:31
[FAILED]
system Info :
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016052903
- Web: hiawatha-10.2.0-f.6.mr.el6.x86_64
- PHP: php54s-5.4.41-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: mogardfkra.com
C. Services:
1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
2. PHP:
- Branch: php56w-cli-5.6.21-1.w6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.el6
* php54m-5.4.43-1.ius.el6
* php55m-5.5.27-1.ius.el6
* php56m-5.6.11-1.ius.el6
* php70m-7.0.2-1.w6
- Used: --Use PHP Branch--
3. Web Used: nginxproxy
- Hiawatha: --unused--
- Lighttpd: --uninstalled--
- Nginx: nginx-1.11.0-1.el6.ngx.x86_64
- Httpd: httpd24u-2.4.20-1.ius.el6.x86_64
- PHP Type: php-fpm_event
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
- spam: spamassassin
D. Memory:
total used free shared buffers cached
Mem: 3959 1185 2774 1 136 624
-/+ buffers/cache: 423 3535
Swap: 0 0 0
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 10G 46G 18% /
-
For awhile, try 'sh /script/fixphp; sh /script/restart-web -y'.
-
still same issue
Stopping php56m-fpm (PHP Used): [FAILED]
Starting php56m-fpm (PHP Used): [29-May-2016 11:06:14] ERROR: [pool dalilelkheir] cannot get uid for user 'dalilelkheir'
[29-May-2016 11:06:14] ERROR: FPM initialization failed
[FAILED]
-------------------------------------------------------------------
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /opt/configs/nginx/conf/globals/switch_standard.conf:31
nginx: configuration file /etc/nginx/nginx.conf test failed
-
Inform here 'cat /opt/configs/nginx/conf/globals/switch_standard.conf'
-
# cat /opt/configs/nginx/conf/globals/switch_standard.conf
proxy_ignore_headers Expires Cache-Control;
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
## MR - increasing upload size to 64M (declare inside 'location /' not work
client_max_body_size 64M;
client_body_buffer_size 128k;
#proxy_buffers 32 4k;
proxy_buffers 8 128k;
proxy_buffer_size 128k;
proxy_request_buffering off;
### MR -- must be using nginx-special (including ngx_purge_cache)
location ~ /purge(/.*) {
### MR -- just enough remove # below for enable
#proxy_cache_purge pcache "$scheme://$host$1$request_method";
allow 127.0.0.1;
deny all;
}
#location / {
location ~* \.(php|pl|py|rb|cgi)$ {
## MR -- move to ~lxcenter.conf
#limit_conn addr 25;
## MR - no need try_files because permalink handle by apache
#try_files $uri $uri/ /index.php;
proxy_pass http://127.0.0.1:30080/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header X-Forwarded-SSL on;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass_header Set-Cookie;
proxy_headers_hash_max_size 512;
### MR -- just enough remove # below for enable cache
proxy_cache pcache;
#proxy_cache_valid 10m;
#proxy_cache_valid 404 1m;
## for microcache
proxy_cache_valid 200 5s;
proxy_cache_use_stale updating;
proxy_max_temp_file_size 1M;
proxy_cache_key "$scheme://$host$request_uri";
add_header X-Micro-Cache $upstream_cache_status;
#proxy_cache_use_stale error timeout invalid_header http_500 http_502 http_504 http_404;
open_file_cache max=1024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;
}
### MR -- Enable this if not using nginx cache and not for wordpress
# location ~* ^.+\.(jpe?g|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|avi|mp3)$ {
# expires 2d;
# access_log off;
# root $var_rootdir;
# }
location ~ /\.ht {
deny all;
}
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
-
Try 'rm -f /opt/configs/php*/conf/php/php-fpm.d/*.conf; sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
-
PHP-FPM worked ,
but Nginx still down
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /opt/configs/nginx/conf/globals/switch_standard.conf:31
nginx: configuration file /etc/nginx/nginx.conf test failed
-
Update Kloxo-MR 7.0 to 2016052907
-
ok , everything working correctly now.
thank you