Trying to install redmine with nginx and passenger - nginx

I try to install redmine in an Ubuntu 12.04 server with nginx and passenger running in port 3001.
I followed this tutorial
but I get the following error:
Bundler is there and when I run gem list bundler I get:
* LOCAL GEMS *
bundler (1.7.10, 1.7.9, 1.7.6, 1.0.21)
Can anybody help me to handle this error with bundler?

Related

ERROR: flask 1.1.2 has requirement Werkzeug>=0.15

I am trying to install Airflow on Ubuntu 18.04 by running the following command:
pip install apache-airflow
And I get the following error:
OpenID Flask-JWT-Extended sqlalchemy-utils
ERROR: flask 1.1.2 has requirement Werkzeug>=0.15, but you'll have werkzeug 0.14.1 which is incompatible.
How can I resolve this error and install Airflow?
Judging by the error, you are probably having a version conflict for one of the Airflow's dependencies: Flask requires Werkzeug module with a version >=0.15, but you have version 0.14.1 installed.
To avoid the problem, you can install Airflow into a Python virtual environment. For example, using pipenv.
Install pipenv into your user's install directory:
pip3 install --user pipenv
export PATH=$PATH:~/.local/bin/
Install Airflow into a Python virtual environment:
mkdir my_airflow
cd my_airflow
pipenv install apache-airflow
Activate the virtual environment:
pipenv shell
Initialize the Airflow's database:
airflow initdb
At this point you should have a working Airflow installation. Notice, it is not a production ready installation, but it is enough to continue with the tutorial.

php7.0-mcrypt can't install on ubuntu14.04

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.

NGINX failed after installing "nginx-extras"

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 (1.11.x)New Mainline release Installation on Amazon Linux

enter code hereI need to install nginx latest mainline release 1.11.x on amazon linux running on ec2 instance.
I followed the below link of nginx official documentation to install the same, the steps are very clear but still i couldnt install on amazon linux.
I tried the same on RHEL 7 on ec2 which is perfectly working fine with the steps given in the link but not on amazon linux, Below is the link which i referred to do the installation process
https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/
Is it Amazon linux is not yet compatible with the nginx newer release??? i could install 1.8.x version of nginx in aws linux without issues which is already found in amazon repository.
I tried accessing the nginx repository and install the specific version but i got error, Below is the error which i got
yum install nginx
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.11.2-1.el7.ngx will be installed
--> Processing Dependency: systemd for package: 1:nginx-1.11.2- 1.el7.ngx.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:nginx-1.11.2-1.el7.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: systemd
Error: Package: 1:nginx-1.11.2-1.el7.ngx.x86_64 (nginx)
Requires: libpcre.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
led by skipping the same

Installed Nginx with passenger-install-nginx-module. How do I uninstall it?

I'm on Mac OSX. Nginx is installed in /opt/nginx.
How do I uninstall it? Any thoughts?
gem uninstall passenger
will remove passenger and all these dependencies
passenger, passenger-install-apache2-module,
passenger-install-nginx-module, passenger-config, passenger-status,
passenger-memory-stats, passenger-make-enterprisey
Passenger's documentation covers this:
To uninstall Phusion Passenger, please first remove all Phusion Passenger configuration directives from your web server configuration file(s). After you’ve done this, you need to remove the Phusion Passenger files.
If you installed Phusion Passenger through Homebrew, then run brew uninstall passenger.
If you installed Phusion Passenger via a Ruby gem, then run gem uninstall passenger (or, if you’re a Phusion Passenger Enterprise user, gem uninstall passenger-enterprise-server). You might have to run this as root.
If you installed Phusion Passenger via a source tarball, then remove the directory in which you placed the extracted Phusion Passenger files. This directory is the same as the one pointed to the by PassengerRoot/passenger_root configuration directive.
If you installed Phusion Passenger through APT or YUM, then use them to uninstall Phusion Passenger.
Nginx does not have to be recompiled after uninstalling Phusion Passenger. Altough Nginx will contain the Phusion Passenger Nginx module, the module will not do anything when all Phusion Passenger configuration directives are removed.
At that point you can remove nginx by running
sudo rm -rf /opt/nginx
if you installed it using source.
Use your package manager to remove it if you installed it that way.
Run following command from your terminal:
For Debian/Ubuntu
sudo apt-get remove -y passenger
Red Hat/CentOS
sudo yum remove -y passenger
macOS + Homebrew
brew uninstall passenger
Ruby gem
gem uninstall passenger

Resources