1

Topic: iRedmail Nginx + passenger

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Once I am trying to install passenger on Nginx (Installed with iRedmail package) via:

sudo apt install ruby-full
sudo apt install dirmngr gnupg apt-transport-https ca-certificates
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 561F9B9CAC40B2F7
sudo apt-get install software-properties-common
sudo add-apt-repository 'deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main'
sudo apt update
sudo apt install libnginx-mod-http-passenger

----------------------------------------
Afterwards, I am adding this config to virtual host:

client_max_body_size 250m;

  passenger_ruby /usr/bin/passenger_free_ruby;
  passenger_enabled on;
  passenger_min_instances 1;

  error_page 502 /502.html;
----------------------------------------
Getting an error that using passenger is restricted and not allowed.

2

Re: iRedmail Nginx + passenger

I didn't know/use "passenger" before, no idea at all. sorry. sad
It's better get support from its developers or community.

But, what's the detailed and original error message you got? Also what's the content of your virtual web host config file?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: iRedmail Nginx + passenger

Hi,

It seems like using your nginx package, I cannot properly install passenger on nginx - https://www.phusionpassenger.com/librar … ss/bionic/

It just doesnt see nginx because nginx-extras cannot be installed either due to broken package

4

Re: iRedmail Nginx + passenger

Could you please show us the full original message on console? It's too hard to help troubleshoot with your description.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: iRedmail Nginx + passenger

Installed nginx passenger module:
http://prntscr.com/nm3pc8
http://prntscr.com/nm3pfe

Redmine nginx configuration file:
http://prntscr.com/nm3puo

Nginx errors:
http://prntscr.com/nm3q01
http://prntscr.com/nm3q2l

After investigation, it seems like iRedmail nginx package cannot support passenger therefore, nginx-extras packages should be installed - but they cannot be installed.

Regards

6

Re: iRedmail Nginx + passenger

up

7

Re: iRedmail Nginx + passenger

The Nginx config snippet file /etc/nginx/conf.d/mod-http-passenger.conf should be linked to /etc/nginx/conf-enabled/ directory, otherwise it's not loaded by Nginx.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

8

Re: iRedmail Nginx + passenger

Hi,

As I mentioned previously, passenger cannot be installed on existing nginx

libnginx-mod-http-passenger module can be installed from scratch only.

9

Re: iRedmail Nginx + passenger

Bornie wrote:

As I mentioned previously, passenger cannot be installed on existing nginx

libnginx-mod-http-passenger module can be installed from scratch only.

I don't understand this issue, what error did you get while installing this module?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee