Platoniq / decidim-install

A step-by-step guide to install Decidim on a production site
https://platoniq.github.io/decidim-install/
GNU Affero General Public License v3.0
54 stars 35 forks source link

Install Fail on Ubuntu 20.04 #63

Open Jacques-Decidim opened 4 years ago

Jacques-Decidim commented 4 years ago

Hello, I try to install decidim on server Ubintu 20.4 and when i want to connect to my webSite, i can only see the nginx Welcome.

I can't connect to my web site decidim

Can you help me . I try install for a three times

Thanks

microstudi commented 4 years ago

Hi, please provide more information. What steps did you follow? what are the messages you received from each step? Are they errors in some log?

Jacques-Decidim commented 4 years ago

Hello, my config :

Serveur Ubuntu 20.04 - IP : 192.168.1.130 Dossier DECIDIM : drwxrwxr-x 14 jacquesa jacquesa 4096 Sep 13 17:06 decidim-signes/

Dossier /home/jacquesa/ drwxrwxr-x 3 jacquesa jacquesa 4096 Sep 13 11:25 .bundle/ drwx------ 2 jacquesa jacquesa 4096 Sep 12 22:05 .cache/ drwxrwxr-x 3 jacquesa jacquesa 4096 Sep 13 07:02 .gem/ -rw-rw-r-- 1 jacquesa jacquesa 19 Sep 13 17:05 .gemrc -rw-rw-r-- 1 jacquesa jacquesa 64 Sep 13 12:36 .gitconfig drwxr-xr-x 3 jacquesa jacquesa 4096 Sep 13 13:16 .passenger/ -rw-r--r-- 1 jacquesa jacquesa 807 Feb 25 2020 .profile drwxrwxr-x 13 jacquesa jacquesa 4096 Sep 13 07:01 .rbenv/ drwxrwxr-x 14 jacquesa jacquesa 4096 Sep 13 17:06 decidim-signes/

Fichier : /etc/nginx/conf.d/mod-http-passenger.conf

Begin automatically installed Phusion Passenger config snippet

passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini; passenger_ruby /home/jacquesa/.rbenv/shims/ruby;

End automatically installed Phusion Passenger config snippet

Fichier : /etc/nginx/sites-enabled/default server { listen 90 default_server; listen [::]:90 default_server; …. I modify nothing, only the port 90 .....

Fichier : /etc/nginx/sites-enabled/decidim.conf server { listen 80 default_server; listen [::]:80;

server_name _;
client_max_body_size 100M;

passenger_enabled on;
passenger_ruby /home/jacquesa/.rbenv/shims/ruby;

rails_env    production;
root         /home/jacquesa/decidim-signes/public;

}

http://192.168.1.130:90 —> OK i see hello of nginx

http://192.168.1.130 —> NO - Connect not possible

Thanks

microstudi commented 4 years ago

why are you using port 90? you should stick to 80 and 443. It's explained in the guide

Jacques-Decidim commented 4 years ago

Hy, if i leave port 80 i only have the nginx page.

So i try to switch the default server (nginx) on 90 and the decidim server listen on 80

Jacques-Decidim commented 4 years ago

Hi I try a new install and i have the same problem.

When i look to GemFile, i see that in your manual Decidim point to 0.21.0 and the new install point to 0.22.0

I modify Gemfile to point to 0.21.0 and it's ok for http://192.168.1.210

Why, i don(t understand ??

But when i want to use https://192.168.1.210 i have no response. It's a config i must update in NGINX ?

What i must do ?

Thanks

microstudi commented 3 years ago

you need a domain name to use ssh. Why are you using private ips?