Monday, 15 February 2010

nginx - HHVM Detected Clash Configuration -



nginx - HHVM Detected Clash Configuration -

i'm using ubuntu 14.04 , trying install hhvm alongside nginx. both installed fine except when running command below ran clashing issue. can point me in right direction?

note: placed code hhvm.conf nginx/sites-enabled/default config suggested elsewhere.

command:

sudo /usr/share/hhvm/install_fastcgi.sh

error:

checking if apache installed warning: couldn't find apache2 configuration paths, not configuring checking if nginx installed detected nginx installation checking custom nginx configuration warning: detected clashing configuration. @ /etc/nginx/hhvm.conf info how connect hhvm fastcgi instance.

hhvm.conf:

location ~ \.(hh|php)$ { fastcgi_keep_conn on; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; }

/etc/nginx/nginx.conf

user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # basic settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # logging settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # gzip settings ## gzip on; gzip_disable "msie6"; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; ## # nginx-naxsi config ## # uncomment if installed nginx-naxsi ## #include /etc/nginx/naxsi_core.rules; ## # nginx-passenger config ## # uncomment if installed nginx-passenger ## #passenger_root /usr; #passenger_ruby /usr/bin/ruby; ## # virtual host configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } #mail { # # see sample authentication script at: # # http://wiki.nginx.org/imapauthenticatewithapachephpscript # # # auth_http localhost/auth.php; # # pop3_capabilities "top" "user"; # # imap_capabilities "imap4rev1" "uidplus"; # # server { # hear localhost:110; # protocol pop3; # proxy on; # } # # server { # hear localhost:143; # protocol imap; # proxy on; # } #}

/etc/nginx/sites-enabled/default config

## # should @ next url's in order grasp solid understanding # of nginx configuration files in order unleash powerfulness of nginx. # http://wiki.nginx.org/pitfalls # http://wiki.nginx.org/quickstart # http://wiki.nginx.org/configuration # # generally, want move file somewhere, , start clean # file maintain around reference. or disable in sites-enabled. # # please see /usr/share/doc/nginx-doc/examples/ more detailed examples. ## server { hear 80 default_server; #listen [::]:80 default_server ipv6only=on; root /var/www/html; index index.php index.html index.htm; # create site accessible http://chrisburton.me/ server_name chrisburton.me; location / { # first effort serve request file, # directory, fall displaying 404. try_files $uri $uri/ =404; # uncomment enable naxsi on location # include /etc/nginx/naxsi.rules if ($http_host ~ "^christopherburton\.net$"){ rewrite ^(.*)$ /"http\:\/chrisburton\.me\/$1" redirect; } } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html; } #location ~ \.php$ { # try_files $uri =404; # fastcgi_split_path_info ^(.+\.php)(/.+)$; # fastcgi_pass unix:/var/run/php5-fpm.sock; # fastcgi_index index.php; # include fastcgi_params; #} # hhvm config location ~ \.(hh|php)$ { fastcgi_keep_conn on; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; } # nginx-naxsi used nginx-naxsi-ui : process denied requests #location /requestdenied { # proxy_pass http://127.0.0.1:8080; #} #error_page 404 /404.html; # redirect server error pages static page /50x.html # #error_page 500 502 503 504 /50x.html; #location = /50x.html { # root /usr/share/nginx/html; #} # pass php scripts fastcgi server listening on 127.0.0.1:9000 # #location ~ \.php$ { # fastcgi_split_path_info ^(.+\.php)(/.+)$; # # note: should have "cgi.fix_pathinfo = 0;" in php.ini # # # php5-cgi alone: # fastcgi_pass 127.0.0.1:9000; # # php5-fpm: # fastcgi_pass unix:/var/run/php5-fpm.sock; # fastcgi_index index.php; # include fastcgi_params; #} # deny access .htaccess files, if apache's document root # concurs nginx's 1 # #location ~ /\.ht { # deny all; #} } # virtual host using mix of ip-, name-, , port-based configuration # #server { # hear 8000; # hear somename:8080; # server_name somename alias another.alias; # root html; # index index.html index.htm; # # location / { # try_files $uri $uri/ =404; # } #} # https server # #server { # hear 443; # server_name localhost; # # root html; # index index.html index.htm; # # ssl on; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # # ssl_session_timeout 5m; # # ssl_protocols sslv3 tlsv1 tlsv1.1 tlsv1.2; # ssl_ciphers "high:!anull:!md5 or high:!anull:!md5:!3des"; # ssl_prefer_server_ciphers on; # # location / { # try_files $uri $uri/ =404; # } #}

the problem due bad nginx install , configuration. removing both nginx , hhvm (including config files) solved this.

nginx ubuntu-14.04 hhvm

No comments:

Post a Comment