Skip to main content

Questions tagged [nginx]

Questions relating to Nginx, an open source Web Server and reverse proxy server.

Filter by
Sorted by
Tagged with
230 votes
2 answers
799k views

What is the best way to uninstall nginx

I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?
Shuo's user avatar
  • 2,413
145 votes
3 answers
407k 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 :)
sorin's user avatar
  • 9,928
104 votes
8 answers
229k views

Nginx failing to reload - how to track down why?

Hi I've had my Nginx server running great on Ubuntu server 12.04 for a while. I've been gradually bolting on various bits, and got as far as optimising load times on my wordpress page. After making ...
Huw's user avatar
  • 1,603
93 votes
3 answers
87k views

What is the difference between the core, full, extras and light packages for nginx?

nginx on Ubuntu is a virtual package provided by one of five packages from the official repositories (at least as of 14.04, defaulting to nginx-core, I believe): $ apt-cache depends nginx | tail -n+2 ...
muru's user avatar
  • 200k
92 votes
2 answers
99k views

Nginx - disable autostart

I went through some manuals and I didn't understand yet. How do I disable autostart nginx service?
Alex Malex's user avatar
  • 2,652
72 votes
2 answers
323k 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 ...
Jonas's user avatar
  • 8,347
63 votes
9 answers
123k views

Nginx installation error in Ubuntu 16.04

:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full* Reading package lists... Done Building dependency tree Reading state information... Done After this operation, 5,579 kB of ...
Mohit's user avatar
  • 749
40 votes
4 answers
53k views

Trying to start nginx on VPS, I get "nginx: unrecognized service"

Following the How to install rails and nginx with passenger on Ubuntu tutorial from DigitalOcean.com, the seventh step manually starts nginx: sudo service nginx start but fails with the following ...
Marius Butuc's user avatar
  • 4,871
36 votes
2 answers
21k views

official nginx trusty ppa gives KEYEXPIRED gpg error

I'm getting the following error every time I do apt-get upgrade: GPG error: http://nginx.org trusty Release: The following signatures were invalid: KEYEXPIRED 1471427554 I just have the official ...
Mohamed Hafez's user avatar
32 votes
4 answers
2k 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, DSA-2434-1)...
Jo Liss's user avatar
  • 265
27 votes
1 answer
110k views

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) nginx

The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error: Reading package lists... Done Building dependency tree ...
zay7sev's user avatar
  • 373
23 votes
2 answers
43k 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 /tmp/...
Gok Demir's user avatar
  • 333
22 votes
3 answers
19k 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 compilation ...
Gie's user avatar
  • 345
21 votes
3 answers
51k views

How to enable TLS 1.2 in Nginx?

How do I enable TLS 1.1 and 1.2 for SSL connections in my Ubuntu 12.04 server? I am using the following version of nginx and openssl library. $ ./nginx -v nginx version: nginx/1.2.3 $ openssl ...
codefx's user avatar
  • 393
19 votes
2 answers
39k views

Can't use PHP extension Mcrypt in Ubuntu 13.10 (Nginx, PHP-FPM) [duplicate]

I installed a fresh Ubuntu 13.10 on my laptop. Like I usually do, I install the packages I need for Web development, which are nginx, php5-fpm, mysql, php5-mysql, php5-mcrypt and a few others. After ...
Marc-François's user avatar
18 votes
2 answers
30k views

Enable TLS 1.0 and TLS 1.1 on Ubuntu 20.04

I have recently reinstalled my server to Ubuntu 20.04. A support call came in and after a few days, I managed to notice that TLS v1.0 and v1.1 were not being provided by my web server, nginx. The ...
reivilibre's user avatar
17 votes
1 answer
55k views

Multiple websites on nginx, one IP

So I'm using digital ocean and nginx. I want to host multiple websites (my projects) but dont want to buy a domain for each one. Is there a way to host multiple websites on nginx and digital ocean ...
Bros Code's user avatar
  • 183
17 votes
1 answer
55k views

Can I run nginx and apache at the same time?

Here is my scenario: Apache is running perfectly with SSL enabled and certs installed on port 443. I would like to install nginx as well on the same machine. Both as a functional reverse proxy and a ...
Sands's user avatar
  • 171
15 votes
5 answers
92k views

Why is the index.php downloaded instead of rendered by Nginx?

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as below....
irshad.ahmad's user avatar
15 votes
3 answers
17k 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 ...
Alex Malex's user avatar
  • 2,652
14 votes
2 answers
53k 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 ...
Peter Kruithof's user avatar
13 votes
2 answers
33k views

how to install nginx after removed it manually

I have installed nginx using apt sudo apt-get install software-properties-common sudo add-apt-repository ppa:nginx/stable sudo apt-get install software-properties-common sudo apt-get update sudo apt-...
april's user avatar
  • 131
13 votes
3 answers
35k views

nginx dependency problem trying to upgrade

Trying to upgrade my Ubuntu 12.04 vps I get the following error: henrik@neung:~$ sudo apt-get upgrade [sudo] password for henrik: Reading package lists... Done Building dependency tree ...
hstr's user avatar
  • 233
12 votes
4 answers
92k views

How to remove nginx and re activate apache?

I have installed Apache2, mysql, php5 and phpmyadmin on my Ubuntu 14.04 but later on mistakenly I install nginx. Now my localhost page show me Welcome to nginx server. And the localhost/phpmyadmin ...
user3345331's user avatar
12 votes
2 answers
24k views

Cannot remove NGINX

I have been experimenting with nginx as a webserver for php files. I come from an Apache background but I wanted to try it. I recently had an issue with it and needed to switch back to Apache. I ...
arty's user avatar
  • 123
12 votes
2 answers
8k views

Hotspot Login - http://nmcheck.gnome.org - 404 Not Found nginx/118.0

I am new to linux, maybe someone can help me out with this new challenge. A white screen randomly pops up with the following info Hotspot Login http://nmcheck.gnome.org 404 Not Found nginx/118.0 ...
Zek's user avatar
  • 121
11 votes
3 answers
23k views

nginx erreur it didn't open

please nginx in my server did start please follow me root@s45-****:/home/arabico# nmap 45.**** PORT STATE SERVICE 22/tcp open ssh 5/tcp open smtp 80/tcp open http Nmap done: 1 IP address (1 ...
user14576's user avatar
  • 191
11 votes
1 answer
12k views

gzip_http_version 1.1; in Nginx, when using HTTP/2

In an Nginx server block of a site aimed to work with HTTP/2, I've seen this: gzip_http_version 1.1; Can this make some conflict with some packets sent in HTTP/2? I don't understand this Gzip ...
user avatar
11 votes
4 answers
82k 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 ...
Blankman's user avatar
  • 8,345
10 votes
1 answer
29k views

Can't add nginx module - requires zlib

I'm trying to add nginx mp4 and upload module via ./configure --add-module=/tmp/nginx-upload-module-2.2.0 but it gives this(below) error. Whatever i tried, couldn't install the zlib. I need help.. ...
Farukest's user avatar
  • 201
9 votes
3 answers
30k views

Nginx RTMP module on Ubuntu 18.04

Installing Nginx on Ubuntu 18.04 was easy peasy, adding the RTMP module has resulted in less success for me. Preferably up-to-date version. I have been using the Nginx RTMP on Previous Ubuntu versions ...
Wogel's user avatar
  • 91
9 votes
2 answers
82k views

Nginx - 502 bad gateway

I'm working through How To Serve Django Applications with uWSGI and Nginx on Ubuntu 16.04. I have completed the tut and restarted both nginx and uwsgi. I notice that if I go to the IP of my server, I ...
user1592380's user avatar
  • 1,865
9 votes
6 answers
39k views

nginx.service: Can't open PID file /run/nginx

I am on Ubuntu 18.10, running under vmware and unable to start the nginx service - I get the error "nginx.service: Can't open PID file /run/nginx". I have compiled nginx from source using passenger. ...
tentimes's user avatar
  • 221
9 votes
1 answer
16k views

How to install php 7 to run beside php 5 on ubuntu with nginx

I want to try php 7 and get my site working on php 7 in the same time keeping other sites working on php 5 just in case. so that from the domain virtual host config I can decide which php to run. I ...
Dreaded semicolon's user avatar
9 votes
2 answers
6k views

Ubuntu 20.04 on WSL2: Folder owner & group are being reset after each start

Well, I have a WSL2 with Ubuntu 20.04.3 LTS on it. It is intended for web-development purposes, so nginx, php and other related apps are installed there. No GUI. So when I start it with wsl from ...
Max Krizh's user avatar
  • 193
9 votes
1 answer
18k 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 ...
Jonas's user avatar
  • 8,347
9 votes
1 answer
5k views

Can't get nginx to run php on ubuntu 16.04 server

Edit. Question already got an answer here: https://serverfault.com/questions/889334/cant-get-nginx-to-run-php-on-ubuntu-16-04-server I am setting up a server running nginx and I'm trying to get it to ...
john-jones's user avatar
9 votes
3 answers
12k views

How do I fix "chdir(): No such file or directory [uwsgi.c line 1723]" on in wsgi on nginx?

I have treeio project in my home directory, now I want to run that treeio in nginx server. Already treeio can independently run on Django comes with the source. I don't want to run that in Django ...
ADR's user avatar
  • 323
8 votes
3 answers
58k views

Port 80 connection refused

i can not connect to port 80 on my webserver. my iptables are in the default state: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ...
Holger Will's user avatar
8 votes
1 answer
1k views

deploy multiple wordpress sites with juju

This may seem like an obvious question, but can you deploy multiple (distinct) wordpress sites with their own databases etc? But using a single deployment? So not dedicated vm's for each sites ...
Andrew Gee's user avatar
8 votes
2 answers
13k views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
Mathew A's user avatar
7 votes
4 answers
22k views

How Can I stop Apache2 on Ubuntu 18.04?

I Can't stop apache2. I want to use nginx, therefore,I want to remove/stop apache2 but I can't. I've tried all the methods on this Link , but when I refresh http://127.0.0.1/ i still see the apache2 ...
Kiana's user avatar
  • 105
7 votes
3 answers
54k views

How to solve 404 for static files with Django and Nginx?

I setup a Trusty VM with Django + Nginx (other stuffs too). The server is working, I get the "Welcome to Django" page. But when I enter to servername/admin it loads the HTML page but fails to load ...
Lucio's user avatar
  • 18.9k
7 votes
2 answers
35k views

How to totally remove the nginx from ubuntu 14.04 LTS

I have un-install all the nginx related packages.(like this answer said https://askubuntu.com/a/457412/383308), after that I run the command below command gives nothing. sudo find / -name 'nginx' ...
ollydbg23's user avatar
  • 183
7 votes
3 answers
9k views

Nginx logrotate logs

I am running Ubuntu 15.04 and have a standard installation of nginx (apt-get install nginx) running. Everything is running fine but I notice that the nginx logs are being rotated but nginx carries on ...
willwade's user avatar
  • 173
7 votes
1 answer
58k views

How to install ffmpeg on ubuntu? [duplicate]

For transcoding video I need to use ffmpeg. I have tried to install but I have faced with problems. Is anyone that can help with this case or can anyone offer any weblink or guide where I can follow ...
Ahmet Jorganxhiu's user avatar
7 votes
1 answer
11k views

Nginx won't start since Ubuntu upgrade (16.04)

I have recently upgraded my Ubuntu server to the 16.04 release. Since then I can't start the nginx service. Results of service nginx restart : Job for nginx.service failed because the control ...
William Mai's user avatar
7 votes
2 answers
15k views

Start nginx after reboot automatically

I am using crontab to start some services after a reboot. Here is my current crontab: @reboot root /etc/init.d/nginx reload @reboot /usr/local/bin/forever start /var/www/rtc/index.js It works for ...
Roman's user avatar
  • 143
7 votes
1 answer
14k views

Restarting nginx in a Docker container

My Docker container doesn't seem to have the service command. How would I restart nginx? E.g. # uname -r 3.13.0-119-generic bash-4.3# uname -a Linux <container id> 3.13.0-119-generic #166-...
Snowcrash's user avatar
  • 353
7 votes
1 answer
4k views

reliably restarting services using upstart or runit

I want to reliably restart my app and web server processes on crash. If I understand correctly, runit starts every service as a child process. If the child process crashes this sends a signal to the ...
murtaza52's user avatar
  • 173

1
2 3 4 5
19