MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: dacapel on 2016-01-11, 07:53:52

Title: nginx dont start
Post by: dacapel on 2016-01-11, 07:53:52
Hi

i cant start nginx, have this error

nginx: [emerg] unknown "var_phpselect" variable
nginx: configuration file /etc/nginx/nginx.conf test failed

i have this nginx conf

user nginx;

worker_processes auto;
worker_rlimit_nofile 400000;

pid /var/run/nginx.pid;

events {
    worker_connections 20480;
    multi_accept on;
    use epoll;

    ## MR -- only work in tengine
    ## to modified, copy this file to custom.nginx.conf and run fixweb
    #reuse_port on;
}

http {
    sendfile on;
    aio threads;
    directio 4m;

    tcp_nopush on;
    tcp_nodelay on;

    server_tokens on;

    add_header Cache-Control public;

    server_names_hash_max_size 4096;
    server_names_hash_bucket_size 2048;

    types_hash_bucket_size 256;
    types_hash_max_size 2048;

    client_header_buffer_size 2k;
    client_header_timeout 90s;
    client_body_timeout 90s;
    send_timeout 90s;

    client_max_body_size 64M;
    client_body_buffer_size 128k;

    #include koi-utf;
    #charset utf-8;
    #source_charset koi8-r;

    include '/etc/nginx/conf.d/*.conf';
}


Title: Re: nginx dont start
Post by: dacapel on 2016-01-11, 10:24:40
now i have this sysinfo...

A. Kloxo-MR: 7.0.0.b-2016011102
   - Web: hiawatha-10.0.0-f.6.mr.el5
   - PHP: php54s-5.4.45-2.w5 (cgi mode)
B. Plateform:
   - OS: CentOS release 5.11 (Final) i686
   - Hostname: server1.zzzz.com
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el5
      - Multiple:
        * php52m-5.2.17-102.mr.el5
        * php53m-5.3.29-1.ius.el5
        * php54m-5.4.45-2.w5
        * php55m-5.5.30-2.w5
        * php56m-
        * php70m-
      - Used: php54m
   3. Httpd: --uninstalled--
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.9-1.el5.ngx
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el5
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el5
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1024        972         51          0          0        369
   -/+ buffers/cache:        602        421
   Swap:            0          0          0
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   simfs                  30G   19G   12G  63% /

note that i have php56 and php70¿?=?
Title: Re: nginx dont start
Post by: MRatWork on 2016-01-11, 11:01:59
Try 'sh /script/cleanup' in every update Kloxo-MR (especially before 'final' version).
Title: Re: nginx dont start
Post by: dacapel on 2016-01-11, 11:14:53
hi Mustafa

same problem...i make cleanup and nothing

before ask you i make script upcp -y and nothing...
Title: Re: nginx dont start
Post by: MRatWork on 2016-01-11, 11:35:57
There something wrong in nginx configs. Wait for update or for awhile update 'php-fpm_standard.conf' and 'php-fpm_wildcards.conf' inside '/opt/configs/nginx/conf/globals' and '/usr/local/lxlabs/kloxo/file/nginx/conf/globals' where change '$var_phpselect-' to '$var_phpselected-'
Title: Re: nginx dont start
Post by: dacapel on 2016-01-11, 11:49:09
ok, i made it

same problem, i changued in both archives in both directories dont fix the problem
Title: Re: nginx dont start
Post by: dacapel on 2016-01-11, 11:52:24
i have this


#fastcgi_pass               127.0.0.1:$var_fpmport;
        fastcgi_pass          unix:/opt/configs/php-fpm/sock/$var_phpselected-var_user.sock;
        fastcgi_index         index.php;
Title: Re: nginx dont start
Post by: dacapel on 2016-01-11, 11:54:42
i restart the server and nginx start ok

thanks