Questions tagged [nginx]

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

Filter by
Sorted by
Tagged with
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
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
2 votes
1 answer
11k views

/dev/sda1 /boot is full [duplicate]

I know there are a lot of questions like this but I've tried pretty much to understand what to do and failed. By df -h I know that my /dev/sda1 /boot is with 100% use. I'm not understanding what I ...
DigitalEvolution's user avatar
2 votes
1 answer
2k views

SSLv3 error with cert generated in OpenSSL

I generated self-signed certificate with latest Ubuntu OS and OpenSSL in it. Certificate has RSA 4096 and SHA512...but it uses SSLv3 and from mozilla I can not access the web page because Mozilla does ...
John's user avatar
  • 123
145 votes
3 answers
405k 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,868
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
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
5 votes
1 answer
3k views

Failed to upgrade certbot on Ubuntu Bionic

I have installed previously Certbot on Ubuntu, but I believe the package wasn't yet available for this distribution yet, so I believe I installed it from a pre-built package (maybe, I'm really not ...
Lippai Zoltan's user avatar
93 votes
3 answers
86k 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
  • 198k
70 votes
2 answers
318k 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,187
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
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
17 votes
1 answer
53k 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
5 votes
2 answers
5k views

How do I change the order in which systemd services are started up

Ubuntu 18.04 server on my home network I'm running: dnsmasq for DHCP and DNS nginx as a reverse proxy to some web applications (running on localhost and on other hosts) The nginx reverse proxy ...
J. le Roux's user avatar
5 votes
3 answers
21k views

Cannot stop nginx service

It took me a while to find out, but as of some recent-ish update, I can't stop Nginx on any of my Ubuntu 12.04 or Ubuntu 14.04 servers. I run sudo service nginx stop, and I get nginx start/running, ...
href_'s user avatar
  • 149
2 votes
1 answer
2k views

How to replace package install of nginx with compiled from source?

I installed nginx a while ago using the ubuntu PPA repository. Now I want to compile nginx from source so I can compile in and use the geo-ip module. I know how to compile the new nginx from source. ...
Andy Stewart's user avatar
1 vote
1 answer
4k views

How can I change the owner of VirtualBox shared folders on Ubuntu 18.04 guest VM?

I am using a VM with Ubuntu 18.04 with GUI, and I am working on a Wordpress project with Nginx. I installed VBox guest additions, but I cannot change the owner of the shared folder, which I have set ...
AviG's user avatar
  • 133
1 vote
1 answer
18k views

How to control routes with multiple interfaces having static ip addresses

I am making a Ubuntu LTS 16.04.2 LTS server box. This server has 3 interfaces, Public (ETH0), Private (ETH1), Management (ETH2). This server has 3 static IP addresses. The default route changes ...
Eddiie's user avatar
  • 13
229 votes
2 answers
785k 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,403
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
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
17 votes
1 answer
53k 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
15 votes
5 answers
91k 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
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
8 votes
3 answers
57k 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
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
4 answers
21k 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
6 votes
1 answer
13k views

How many Nginx processes should there be?

Just installing Nginx on a fresh ubuntu server 12.04. ps -e | grep nginx at first returned nothing so i ran nginxwhich appeared to get things started. Running ps -e | grep nginx now returns a ...
Huw's user avatar
  • 1,603
5 votes
4 answers
55k views

502 Bad Gateway nginx php-fpm

I tried to install nginx and PHP7 with FPM using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04 When I try to access any .php file I get 502 ...
user avatar
5 votes
2 answers
44k views

Nginx reverse proxy and subdomains

I have some problem with Nginx configuration. I've already searched for an issue but the proposed solutions I saw didn't work for me. I have some apps on a tomcat server and some apps on a jboss ...
Luciana D's user avatar
5 votes
3 answers
3k views

Can't update nginx because of debconf

I'm on 14.04.5 LTS. I get this error when running a normal apt-get upgrade: Setting up nginx-common (1.10.1-3+trusty1) ... dpkg: error processing package nginx-common (--configure): subprocess ...
Walf's user avatar
  • 398
5 votes
1 answer
12k views

How to remove application in ufw app list Available applications?

I want to remove Apache, Apache Full, Apache Secure in this list. I have Nginx server. But, when I install phpmyadmin on nginx server, I had a problem. After that I saw Apache, Apache Full, Apache ...
barış çıracı's user avatar
4 votes
1 answer
31k views

Nginx does not start: "host not found"

Every time I turn on my computer my nginx is not activated: ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; ...
Guilherme Lima's user avatar
3 votes
1 answer
2k views

Is it safe to turn on unattended upgrades for a live Ubuntu Webserver (Nginx/Apache)?

I was wondering whether it is safe to have the unattended-upgrades package keep the system up to date on a live webserver. Here I am specifically wondering whether issues might occur when packages ...
Arni J's user avatar
  • 125
3 votes
2 answers
7k views

How to fix the nginx package?

I have installed nginx . dpkg -l nginx Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,...
showkey's user avatar
  • 342
3 votes
0 answers
531 views

Nginx index.html gets overwritten with default index.html file

I'm running Nginx on Ubuntu 14.04. I have my website installed in the default /usr/share/nginx/html directory. My website works fine for several days and then the system automatically overwrites my ...
Slick's user avatar
  • 31
2 votes
1 answer
1k views

Can Ubuntu Server be run through Ubuntu Desktop

I have both Ubuntu Server and Ubuntu Desktop on a hard drive. But I was wondering if there is a way to have the server running while I am on the Desktop version? Does this make sense?
Melloorr's user avatar
2 votes
1 answer
6k views

nginx rendering PHP as plain text

server { listen 80; server_name test.local; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; root /var/www/testsite; location ~ \.php$ { ...
Rich's user avatar
  • 21
1 vote
1 answer
2k views

RE: Getting Ubuntu Server to Show Web Page URL instead of Just my IP Address [duplicate]

I am currently working out of a book, "Mastering Ubuntu Server, (LaCroix 2018)." I have not been through the entire book but I am having doubts so far. I have a website URL that I want to host from ...
De Funct's user avatar
  • 131
1 vote
1 answer
3k views

How to configure sSMTP to send emails to more than one email address?

I use Ubuntu 16.04 with Bash, Nginx, and sSMTP. On this environment I have 2 or more WordPress apps. The basic configuration of sSMTP allows it to route WordPress contact form emails from one app, ...
user avatar
1 vote
2 answers
3k views

Can't update Nginx to version higher than 1.12.2 in ubuntu 16.04

I have been trying to update Nginx to it's latest version in my ubuntu server. So, I tried with this command: sudo add-apt-repository ppa:nginx/stable sudo apt-get update sudo apt-get install ...
S.Rakin's user avatar
  • 113
1 vote
1 answer
3k views

How to create NGINX debian package from souce?

I want to create a NGINX .deb package from the source. Can anyone guide me through. Thanks in advance.
saisrinivas's user avatar
1 vote
1 answer
2k views

nginx fails to update after upgrade to 16.04 server

I upgraded from 14.04 server to 16.04 server. I have always used the official nginx packages, because I needed support for things like SPDY and HTTP2 which were not in the 14.04 version of nginx. ...
jcampbell1's user avatar
0 votes
2 answers
3k views

Fixing nginx 1.4.6 dependency on old openssl version (libssl0.9.8)?

I'm trying to enable TLSv1.1 & TLSv1.2 on my Ubuntu 12.04 EC2 instance w/ nginx 1.4.6, but this version of nginx is dependent upon libssl0.9.8, even though the newest version of OpenSSL is ...
eclipsis's user avatar
  • 101
0 votes
1 answer
1k views

Set up NGINX and bought a domain. How to connect the two? [closed]

I have set up nginx on my vserver and it seems to be working properly. I also purchased a domain at nic.md Now it's asking me for NS host names and addresses. Googling did not help much. Do I need to ...
user2030157's user avatar
0 votes
1 answer
4k views

Running OpenResty as a service on Ubuntu 14.04

I need to use Nginx with Lua and a sheaf of other extensions enabled so I have followed the instructions at https://openresty.org/ and compiled the OpenResty variant of Nginx. That process went ...
DroidOS's user avatar
  • 497
0 votes
1 answer
2k views

Testing nginx in a Docker container in on Ubuntu Core?

Followed Setting up Ubuntu Core on a KVM It shows you how to start the vm and forward ports back to your host machine. Followed Snappy Tour It shows you how to install Docker on Ubuntu Core ...
leeand00's user avatar
  • 786
0 votes
1 answer
1k views

nginx dont start after clean install

I have just bought a new droplet from digitalocean, and i installed nginx with sudo apt install nginx tried to see if it ran, and it gave me following error: root@school:~# systemctl status nginx....
Jonas Grønbek's user avatar