# Can't get installation page, but get nginx page

**URL:** https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591
**Category:** Installation Issues
**Created:** [March 7, 2024, 6:36am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591 "2024-03-07T06:36:42Z")
**Posts on this page:** 18
**Page:** 2

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 11, 2024, 8:07am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/21 "2024-03-11T08:07:32Z")

</div>

Ok cool, I figured the one would be empty but better to check.

To get this going just HTTP for now you’ll need two changes to `/etc/nginx/sites-enabled/nginx-passbolt.conf`

```auto
server {

  listen 80;
  listen [::]:80;

```

and then comment out the ssl include

```auto
# Managed by Passbolt
# include /etc/passbolt/nginx-ssl.conf;

```

Then a restart on nginx and let me know if you still get a 502 on the IP address in the browser

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 8:11am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/22 "2024-03-11T08:11:18Z")

</div>

It works now!

Please explain me what happened!

Keep in mind I have deleted default .

And after create default again and restart nginx, still works

---

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 11, 2024, 8:19am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/23 "2024-03-11T08:19:37Z")

</div>

```auto
  listen 80;
  listen [::]:80;

```

Is where the issue was, the top one is IPv4 and the bottom is IPv6 so yours wasn’t listening on 80 for IPv4 so when you were trying to access just the http site via the IP address that port wasn’t an option.

Once you have the domain connected to the IP address you can run the reconfigure with your certs to switch to HTTPS, you’ll need to double check to make sure the SSL include is uncommented and then in the passbolt.php file you’ll have to double check that it is set to https

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 8:24am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/24 "2024-03-11T08:24:26Z")

</div>

domain is connected and redirect to server now as told you. So for now keep listen on 80 in conf file?

And now can I reconfigure using domain?

---

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 11, 2024, 8:25am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/25 "2024-03-11T08:25:45Z")

</div>

When you reconfigure it should switch to 443 if you are going to HTTPS but double check after running the command that it did change everywhere since you just manually modified the file

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 8:29am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/26 "2024-03-11T08:29:02Z")

</div>

After reconfigure it change to listen on 443 for IPv4, other didn’t changed. I’m going to change them manually.

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 8:31am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/27 "2024-03-11T08:31:54Z")

</div>

Now nginx return back to show.

How to solve this?

\*I’ve configured SSL with option ‘manual’.

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 8:33am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/28 "2024-03-11T08:33:23Z")

</div>

This is /etc/nginx/sites-enabled/nginx-passbolt.conf now :

```auto
#
# Passbolt.conf - Nginx configuration file to run the Passbolt software.
#

server {

# listen 443 ssl http2;
  listen 443 ssl http2;
  listen [::]:80;

  # Managed by Passbolt
  server_name passbolt.cloudvests.com;

  client_body_buffer_size 100K;
  client_header_buffer_size 1K;
  client_max_body_size 5M;

  client_body_timeout 10;
  client_header_timeout 10;
  keepalive_timeout 5 5;
  send_timeout 10;

  root /usr/share/php/passbolt/webroot;
  index index.php;
  error_log /var/log/nginx/passbolt-error.log info;
  access_log /var/log/nginx/passbolt-access.log;

  # Managed by Passbolt
  include /etc/passbolt/nginx-ssl.conf;

  location / {
    try_files $uri $uri/ /index.php?$args;
  }

  location ~ \.php$ {
    try_files $uri =404;
    include fastcgi_params;
    fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    fastcgi_index index.php;
    fastcgi_intercept_errors on;
    fastcgi_split_path_info ^(.+\.php)(.+)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SERVER_NAME $http_host;
    fastcgi_param PHP_VALUE "upload_max_filesize=5M \n post_max_size=5M";
  }

}

```

And there is no passbolt.php .

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 9:19am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/29 "2024-03-11T09:19:36Z")

</div>

Tried with SSL reconfigured, then changed /etc/nginx/sites-enabled/nginx-passbolt.conf again to `listen 80;` instead of `listen 443 ssl http2;` then it worked but without https.

Then when write the domain in browser with https://, it shows this page:

 ![Screenshot from 2024-03-11 12-24-43](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/6/6a9eee2458989df40b364d2f3598f6d19891ef7b.png)

What is happening here? When passbolt should be runing with https? Isn’t at first?

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 11, 2024, 9:43am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/30 "2024-03-11T09:43:55Z")

</div>

And until now there is no passbolt.php. Should I create it?

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 20, 2024, 7:41am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/31 "2024-03-20T07:41:12Z")

</div>

Passbolt still run if nginx-passbolt.conf listen on 80, not on 443, and run with https after finish installation and install recovery kit, then when try to run as http, the screen become blank (maybe recovery behavior). But until now I cannot force SSL, so when try to force it, I get “The page isn’t redirecting properly” error. Finally, when try to make nginx listen on 443 only, I get 502 bad gateway error.

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 20, 2024, 8:58am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/32 "2024-03-20T08:58:11Z")

</div>

This is /var/log/nginx/passbolt-access.log :

```auto
192.168.1.8 - - [20/Mar/2024:08:55:02 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:02 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"
192.168.1.8 - - [20/Mar/2024:08:55:03 +0000] "GET /auth/login?redirect=%2F&locale=en-UK HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0"

```

All other log files have not new logs.

---

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 20, 2024, 12:55pm UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/33 "2024-03-20T12:55:09Z")

</div>

Apologies for the delay I was away for a few days there.

You shouldn’t need to manually create the passbolt.php file. You should complete the installation wizard with everything configured for just HTTP, once done you can then use the reconfigure to switch over to HTTPS. Typically you’d be able to do this in HTTPS the first time through but since there have been a few runs of the reconfigure command and manual modifications doing it in HTTP to start will likely be easiest here

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 20, 2024, 1:06pm UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/34 "2024-03-20T13:06:09Z")

</div>

Thank you now passbolt is running successfully. I knew that my administrator configured domain to point to the server on port 80; then we had a redirecting loop. Now after change the port to 443, it redirecting successfully!

Now I’m trying to update to the new version. But I don’t know where I can find the mysql dump file that created by the recommended script.

---

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 20, 2024, 1:46pm UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/35 "2024-03-20T13:46:27Z")

</div>

If you mean the script mentioned in [this blog post](https://www.passbolt.com/blog/backup-using-bash) that should be in `/tmp/` unless you’ve modified the script

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 21, 2024, 6:47am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/36 "2024-03-21T06:47:08Z")

</div>

I meant that [from here](https://help.passbolt.com/hosting/backup?pk_vid=ab112c2f78e4f3241711004602a541f8):  
`sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt mysql_export" WEB_SERVER_USER`

Then when run it the output was:

````auto
sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt mysql_export" www-data

     ______  ____  
    / __\____  _________ / /_ ____ / / /_ 
   / /_/ / __`/___ / ___/__ \/ __\/ /__ / 
  / ____/ /_/ (__ |__ ) /_/ / /_/ / / /    
 /_/ \ __,_/____ / ____/_.___ /\ ____/_/\__ /   

 Open source password manager for teams
-------------------------------------------------------------------------------
Saving backup file: /var/lib/passbolt/tmp/cache/database/backup_1710939357.sql
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Success: the database was saved on file! ```
````

---

<div class="post-metadata">

### Author: ![clayton](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@clayton](https://community.passbolt.com/u/clayton)
#### Post date: [March 21, 2024, 7:20am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/37 "2024-03-21T07:20:54Z")

</div>

> [@OmarAsi](#):
>
> `Saving backup file: /var/lib/passbolt/tmp/cache/database/backup_1710939357.sql`

Based on the output that is where you should be able to find it

---

<div class="post-metadata">

### Author: ![OmarAsi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@OmarAsi](https://community.passbolt.com/u/OmarAsi)
#### Post date: [March 21, 2024, 7:40am UTC](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591/38 "2024-03-21T07:40:36Z")

</div>

Thank you so much !! I sometimes feel myself dumb 🤡

[Previous page](https://community.passbolt.com/t/cant-get-installation-page-but-get-nginx-page/9591.md?page=1)
