Questions relating to nginx, an open source Web server and reverse proxy server

learn more… | top users | synonyms

0
votes
1answer
823 views

How to give different port for Apache and Nginx in 10.10?

I am curios to know how can we assign different port to Apache and Nginx in 10.10. I installed nginx first then apache, so when I start my machine, nginx is taking default port: 80. I have to ...
10
votes
2answers
7k views

Install uwsgi 1.2.5 via pip

Welcome, Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site http://projects.unbit.it/uwsgi/wiki/Quickstart pip install uwsgi During ...
2
votes
1answer
2k views

Nginx with SSL package

I'm trying to install nginx using the package manager. Usually I'd do this: sudo apt-get install nginx but I need nginx to have SSL support. I could compile nginx from source with SSL support, but ...
1
vote
1answer
155 views

How to install the nginx manpage when I installed nginx from source?

I installed nginx 1.2.0 from source on ubuntu 12.04 (precise) but it says there is no manpage entry for nginx when I run man nginx. How to I install it?
20
votes
1answer
12k views

Nginx - disable autostart

I went througn some manuals and I didn't understand yet. How do I disable autostart nginx service?
0
votes
2answers
225 views

usergroup permission issues

I tried deleting files on my dekstop (highlight files, press delete) in /usr/share/nginx/www but I'm getting permission denied issues. What I did was, add www-data and barsoom(current user) to a ...
12
votes
3answers
9k views

After installing nginx with Passenger support in '/opt', why won't it start from 'init.d'?

I went through a tutorial http://craiccomputing.blogspot.com/2010/10/passenger-3-nginx-and-rvm-on-mac-os-x.html and everything was ok. There were no errors. Nginx with Passenger support was ...
10
votes
1answer
17k views

Nginx/PHP-FPM “Access denied.” error

I'm trying to set up a freshly installed Ubuntu (12.04) server, but I can't get PHP files running through php-fpm. No matter what I do, I always get a "Access denied." page (plain text, not html or ...
3
votes
2answers
304 views

Setting up my www directory correctly

I'm quite new to Ubuntu and Linux in general. I need to create a my www directory (in /home) and set the permissions/ownership correctly so that any new files and directories created by myself (via ...
0
votes
1answer
602 views

403 Error when using nginx to access file other than index.htm

I set up nginx on Ubuntu 12.04 and when remotely accessing a file other than the index.htm/php/html, the server says that access is forbidden. I tried to search for a solution but no luck. Any ...
0
votes
1answer
344 views

Index.html of VPS not working, redirecting to virtual host domain

When I type the domain name I linked to my server IP, one of the virtual host websites I have on the server comes up, rather than the index.html file I have as default on the server. Why is this so? I ...
1
vote
3answers
5k views

How do I upgrade to nginx 1.2.0?

Running Ubuntu 11.04 with nginx 0.8.4 how do I upgrade to stable (1.2.0) without screwing my whole setup (multiple sites + varnish + php-fpm + memcache)?
55
votes
2answers
85k views

What is the easiest way to enable PHP on nginx?

What is the easiest way to enable PHP on nginx on Ubuntu 12.04? Best solution is the one that request minimal work, ideally just a package installation :)
1
vote
0answers
359 views

nginx does not respond requests for rails app [closed]

I try to deploy my app to EC2 son Amazon via nginx and passenger. I did what the passenger installation comments say. But when I run my nginx and try to enter my site it does not respond even withan ...
1
vote
1answer
996 views

How can I upgrade nginx after adding ppa:nginx/development?

I've installed nginx via the ppa stable repository via  add-apt-repository ppa:nginx apt-get install nginx which adds the stable release. But now I'd like to switch to the development ...
7
votes
3answers
39k views

Where can I change the webpage shown by apache?

I have ubuntu 10.10 installed, and when I hit my IP I see: It works! This is the default web page for this server. The web server software is running but no content has been added, yet. Where ...
31
votes
4answers
1k views

Does Ubuntu generally post timely security updates?

Concrete issue: The Oneiric nginx package is at version 1.0.5-1, released in July 2011 according to the changelog. The recent memory-disclosure vulnerability (advisory page, CVE-2012-1180, ...
3
votes
2answers
4k views

Can't add repository due to 'missing' fingerprint

I am trying to install nginx with php but when I am following a guide, like this one: http://www.justincarmony.com/blog/2011/10/24/setting-up-nginx-php-fpm-on-ubuntu-10-04/ I am always told to add ...
16
votes
1answer
27k views

Ubuntu php5-fpm unix socket

I have Ubuntu 11.10 and installed php5-fpm and I want to configure nginx. I want to use unix sockets instead of tcp sockets but I couldn't find the /var/run/php5-fpm.sock I have looked also ...
1
vote
1answer
2k views

An easy way to switch from Apache to Nginx

I use nginx as DAV server and apache which hosts a frontend to backuppc. I'd like to make nginx host the frontend insead of apache. But I don't have a clue how to translate apache settings to nginx ...
2
votes
1answer
391 views

Memcached/APC will not start with PHP

I've compiled PHP 5.3.9 and NGINX 1.0.11 and want to use APC and Memcached with PHP. I keep getting this error when attempting to load the APC/Memcached modules: Unknown(0) : Warning - PHP Startup: ...
0
votes
1answer
1k views

nginx testing with ab not working with high number of concurrent connections

I have installed nginx and php-fpm on a 64-bit Ubuntu Server 11.10. The server works fine but I am trying to test the server (using ab) with 10,000 concurrent connections. When I try it I get socket: ...
3
votes
2answers
3k views

PHP-FPM Constantly Restarting Pools - Zombie's Everywhere!

Ok so after a recent incident in which I ran "chown -R root:root" on my entire /var directory on accident (XO.. I know...) I've been dealing with php-fpm issues. I've tried fixing permissions in a ...
2
votes
1answer
742 views

what is the best lightweight monitoring system run under nginx?

I want to monitor my small vps node; presently serving by nginx. I do not want to use apache2; presently considering monitorix, suggest me the best lightweight monitoring system run under nginx ?
0
votes
1answer
7k views

How to install asterisk 1.8 + freepbx 2.9 + nginx + php-fpm?

How I can install freepbx 2.9 with asterisk 1.8 on ubuntu 11.10? The matter is that most tutorials and guidelines on internet are not well written and I get error messages when I do amportal start. ...
4
votes
2answers
2k views

Passenger (mod-rails) can't find libopenssl-ruby

Trying to build an nginx server with Phusion Passenger on Ubuntu 11.10 (hurray for the new version!). Running "passenger-install-nginx-module" outputs the following error: * OpenSSL support for ...
5
votes
1answer
1k views

Crashed my server, how do I find out what happened?

From a remote machine, I ran 100 concurrent requests against my Ubuntu VPS ab -n 100 -c 100 http://... And, as I suspected, the server "crashed". I can still ping it, and it responds very quickly ...
2
votes
3answers
3k views

How do I optimize a nginx reverse proxy? [closed]

I am pretty much a noobie at nginx and i really need some help. I am using nginx as a reverse proxy server to serve primarily as a load balancer. I am using almost only dynamic files. The back end ...
2
votes
1answer
2k views

php5-fpm incomplete install - no config file

I've set up a server with Ubuntu 11.04 and Nginx+PHP-FPM+Varnish+APC+MySQL+Memcached+WordPress. Everything runs pretty nice, but there is a tiny problem with the PHP-FPM service. Install goes OK after ...
2
votes
1answer
2k views

Does nginx use “deferred” as the default for the listen directive?

Many sites recommend using 'deferred' with the listen directive for nginx. Is this necessary on the Ubuntu installation or is "listen 80" sufficient with 'deferred' on by default? listen 80 default ...
3
votes
2answers
2k views

Can I use nginx and GnuTLS together?

I read that nginx works with OpenSSL. But since GnuTLS is the only software that provides TLS 1.2 support, it would be useful to combine that. So, how can I compile nginx with GnuTLS on Ubuntu? =)
2
votes
0answers
302 views

How do I configure nginx to serve ws:// URLs? [closed]

I've currently got nginx running a cluster on thins which serves up my Rails app. My iPhone app sockets framework wants to connect to a URL starting with ws:// I'm pretty new at this but... where ...
0
votes
2answers
3k views

php does not parse using nginx & phpfm

I am setting up a VPS and followed the nginx, PHP, MySQL instructions for WordPress from this tutorial http://tutspundit.com/howto-install-nginx-php-fpm-mysql-php533-wordpress-ubuntu-part-1/ and then ...
3
votes
1answer
4k views

Loading daemon at startup

Is there an elegant way, other than messing with /etc/rc?.d, to control the daemon loading at boot time? My personal concern is stopping Nginx from loading at boot, while setting lighttpd to do load ...
18
votes
2answers
49k views

What file permissions should I set on web root?

I use Ubuntu Server 10.10 and have installed Nginx web server with apt-get install nginx. It creates a default web page at /var/www/nginx-default/ and that directory has the permissions drwxr-xr-x 2 ...
8
votes
1answer
10k views

How to set up PHP with Nginx, APC and PostgreSQL?

I use Ubuntu Server 10.10 and I would like to set up a web server environment with NginX, PHP 5.3.3, PostgreSQL and preferably APC and PHP Suhosin. I have already set up PostgreSQL with apt-get ...