I have nginx installed on ubuntu from apt-get and I'm trying to re-install from source with specific modules. I'm doing standard install from source ./configure ... make make install all goes well, however it's not actually replacing the current nginx instance. Any idea how to replace current install?
Nginx compiled from source will not overwrite the system nginx. You need to remove the system package
apt-get remove nginx
And then use make install in the compiled source
Related
phpmyadmin show error [ The mcrypt extension is missing. Please check your PHP configuration.] on nginx. My PHP version is PHP 7.0.33-1+ubuntu14.04.1+deb.sury.org+1 (cli).
When I install php7.0-mcrypt, package doesn't exist.How to install php7.0-mcrypt?
As I understand from your message, you're using ubuntu 14.04. I recommend you upgrade your system. You could find this package in some latest reseases.
Or you could install this package manually wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/p/php7.0/php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb && sudo dpkg -i php7.0-mcrypt_7.0.33-0ubuntu0.16.04.4_amd64.deb. But be careful, you could face some dependency hell and damage your OS.
Installed through:
apt-get install nginx-extras
After this, I tried do "service nginx restart" and "nginx -t" gets
no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/[file]:84
Then I uninstalled nginx-extras
apt-get remove nginx-extras
But problem has not solved, it seems during installation some config was changed.
Question is what config has changed and how to fix?
Nginx 1.13.12 on Debian 8.
During instalation nginx-extras, it will ask smth about use current version of configs. Answer N.
try and remove all nginx installed packages and install nginx-full
Nginx source seems far different from the Nginx PPA. Mostly the way PHP is configured, and the different sites-available config. Should I be installing the source version, or the Nginx from the PPA?
It's up to your need as per the reason below.
from PPA. This is a quick and easy way to install NGINX Open Source. The package includes almost all NGINX official modules and is available for most popular operating systems. See Installing a Pre-Built Package for details.
compiled from the sources. This way is more flexible: you can add particular modules including 3rd party modules or apply latest security patches. See Compiling and Installing From the Sources for details.
I almost always select PPA option as I just need it as is, and I don't have to deal with compilation dependencies or ./configure command line options :-).
Here is what I did for installing on Ubuntu 14.04
$ sudo vi /etc/apt/sources.list
>>> add 'deb http://nginx.org/packages/ubuntu/ trusty nginx' to your package source list
$ wget -q http://nginx.org/keys/nginx_signing.key -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install nginx
Just replace trusty with with whatever Ubuntu version codename applicable.
I did the following to nstall nginx on Debian 7
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
sudo service nginx start
This installed the latest version of nginx , How do I install another version?
Doing sudo apt-get install nginx=1.2 or sudo apt-get install nginx-1.2 does not work. It fails saying version not found?
Older version of Nginx is not available in Debian repository, you need configure Nginx Debian repository http://nginx.org/en/linux_packages.html or find the deb package and install manually.
A distribution of Debian is a set of software packages that was tested to run well together. Every change imposes a risk to break somethign somewhere since that change may not have been prepared for by another software also installed.
When you are for a newever version than what the distributions ships, then a look at the package "tracker" will present an overview of what is currently available, which includes so-called backports to your distribution: https://packages.qa.debian.org/n/nginx.html but indeed the packages directly provided by nginx.org should be just fine. For looks into the past, check out http://snapshot.debian.org/package/nginx/ .
I can't seem to figure out how to install the Headers More module for nginx when I've installed nginx using homebrew.
I've found I use homebrew to install nginx, and how to add 3rd modules? but this doesn't actually recompile nginx with this module. It's just downloads the module.
I've found nginx-full but event with the --with-headers-more option I can't seem this module working.
I keep getting this error:
nginx: [emerg] unknown directive "more_set_input_headers" in /usr/local/etc/nginx/sites-enabled/....
I installed successfully using the following command
brew install nginx-full --with-headers-more-module
Make sure your brew formulas are up to date
brew update