Jump to content
Froxlor Forum
  • 0

Froxlor panel doesn't load after web-install is finished.


K0RR

Question

After running the command specified in the web installer and seeing "All services have been configured" in the ssh window the web-installer did not refresh (I even waited about one minute).

I refreshed the page manually and saw the code in the first attached screenshot. If I try to visit ip/froxlor then I see what's on the second screenshot.

 

Screenshot_20240606_121928.png

Screenshot_20240606_121955.png

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 1

And there it is:

IP Adress of the server: 10.128.0.7

Your vhost binds to: 146.148.71.223

Thus - no match - no webui

Run the following to switch your ips in froxlor:

cd /var/www/html/froxlor
bin/froxlor-cli froxlor:switch-server-ip -s 146.148.71.223,10.128.0.7

after that you might want to rebuild the vhosts (or wait for the cronjob):

bin/froxlor-cli froxlor:cron -fd

 

Link to comment
Share on other sites

  • 1

Unfortunately you blindly copy and paste without thinking. See my edited post....ips were in wrong order. Just READ the messages:

Note: 10.128.0.7 not updated to 146.148.71.223 - IP already exists in froxlor's database

And yes, of course I meant froxlor-cli

Link to comment
Share on other sites

  • 0

After the command is finished, by default, php-fpm is used and mod_php is disabled. The corresponding php-fpm configurations for froxlor are virtual-host based, so you should open froxlor using the specified FQDN from the installation.

Link to comment
Share on other sites

  • 0

Well then it's most likely that something is misconfigured regarding IP addresses. You seem to use cloudflare for the domain. Does the target ip address match the servers ip address and the ip address you've specified in the installation? The virtual hosts are generated for specific ip addresses. So if you have e.g. a setup with a private ip address like 192.168.x.y or 10.x.y.z or whatever, you need to specify this ip in froxlor or the vhost will not match and thus display the apache default welcome page

Link to comment
Share on other sites

  • 0

Yes, I had to correct the IP in the web installer as it was showing the Google's internal 10.something (probably the same as the CLI-installer was providing as the URL when it finished - http://10.128.0.7/froxlor/) so it should be good.

Could You tell me how can I verify that without the access to the panel?

Link to comment
Share on other sites

  • 0

 

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc mq state UP group default qlen 1000
    link/ether 42:01:0a:80:00:07 brd ff:ff:ff:ff:ff:ff
    inet 10.128.0.7/32 scope global dynamic ens4
       valid_lft 3492sec preferred_lft 3492sec
    inet6 fe80::4001:aff:fe80:7/64 scope link 
       valid_lft forever preferred_lft forever

 

# 10_froxlor_ipandport_146.148.71.223.443.conf
# Created 06.06.2024 10:13
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

<VirtualHost 146.148.71.223:443>
DocumentRoot "/var/www/html/froxlor"
 ServerName kieubasa.pl
  <Directory "/lib/">
    <Files "userdata.inc.php">
    Require all denied
    </Files>
  </Directory>
  <DirectoryMatch "^/(bin|cache|logs|tests|vendor)/">
    Require all denied
  </DirectoryMatch>
  <FilesMatch \.(php)$>
    <If "-f %{SCRIPT_FILENAME}">
        SetHandler proxy:unix:/var/lib/apache2/fastcgi/1-froxlor.panel-kieubasa.pl-php-fpm.socket|fcgi://localhost
    </If>
  </FilesMatch>
  <Directory "/var/www/html/froxlor/">
      CGIPassAuth On
  </Directory>
 SSLEngine On
 SSLProtocol -ALL +TLSv1.2
 SSLCompression Off
 SSLSessionTickets on
 SSLHonorCipherOrder off
 SSLCipherSuite ECDH+AESGCM:ECDH+AES256:!aNULL:!MD5:!DSS:!DH:!AES128
 SSLVerifyDepth 10
 SSLCertificateFile /etc/ssl/froxlor_selfsigned.pem
 SSLCertificateKeyFile /etc/ssl/froxlor_selfsigned.key
</VirtualHost>
# 10_froxlor_ipandport_146.148.71.223.80.conf
# Created 06.06.2024 10:13
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

<VirtualHost 146.148.71.223:80>
DocumentRoot "/var/www/html/froxlor"
 ServerName kieubasa.pl
  <Directory "/lib/">
    <Files "userdata.inc.php">
    Require all denied
    </Files>
  </Directory>
  <DirectoryMatch "^/(bin|cache|logs|tests|vendor)/">
    Require all denied
  </DirectoryMatch>
  <FilesMatch \.(php)$>
    <If "-f %{SCRIPT_FILENAME}">
        SetHandler proxy:unix:/var/lib/apache2/fastcgi/1-froxlor.panel-kieubasa.pl-php-fpm.socket|fcgi://localhost
    </If>
  </FilesMatch>
  <Directory "/var/www/html/froxlor/">
      CGIPassAuth On
  </Directory>
</VirtualHost>

 

Screenshot_20240606_130822.png

Link to comment
Share on other sites

  • 0

You meant bin/froxlor-cli?

root@instance-20240606-091317:/var/www/html/froxlor# bin/froxlor-cli froxlor:switch-server-ip -s 10.128.0.7,146.148.71.223
Switching IP 10.128.0.7 to IP 146.148.71.223
Note: 10.128.0.7 not updated to 146.148.71.223 - IP already exists in froxlor's database

*** ATTENTION *** Remember to replace IP addresses in configuration files if used anywhere.
IP addresses updated
root@instance-20240606-091317:/var/www/html/froxlor# bin/froxlor-cli froxlor:cron -fd
Checking froxlor file permissions...OK
Running "tasks" job (forced) (debug)
[information] TasksCron: Searching for tasks to do
[information] Running Let's Encrypt cronjob prior to regenerating webserver config files
[information] Checking for LetsEncrypt client upgrades before renewing certificates:_[Thu Jun  6 11:14:27 UTC 2024] Already uptodate!_[Thu Jun  6 11:14:27 UTC 2024] Upgrade success!_[Thu Jun  6 11:14:27 UTC 2024] Installing cron job_45 13 _ _ _ "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" _ /dev/null_[Thu Jun  6 11:14:27 UTC 2024] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory
[information] No new certificates or certificate updates found
[information] apache::createIpPort: creating ip/port settings for  146.148.71.223:80
[debug] 146.148.71.223:80 :: inserted vhostcontainer
[information] apache::createIpPort: creating ip/port settings for  146.148.71.223:443
[debug] 146.148.71.223:443 :: inserted vhostcontainer
[information] apache::writeConfigs: rebuilding /etc/apache2/sites-enabled/
[information] apache::writeConfigs: rebuilding /etc/apache2/froxlor-htpasswd/
[information] apache::writeConfigs: rebuilding /etc/apache2/sites-enabled/
[information] Froxlor\Cron\Http\ApacheFcgi::reload: running service php7.4-fpm restart
[information] Froxlor\Cron\Http\ApacheFcgi::reload: reloading Froxlor\Cron\Http\ApacheFcgi
[notice] Creating passwd file
[notice] Writing 0 entries to passwd file
[notice] Succesfully wrote passwd file
[notice] Creating group file
[notice] Writing 0 entries to group file
[notice] Succesfully wrote group file
[notice] Creating shadow file
[notice] Writing 0 entries to shadow file
[notice] Succesfully wrote shadow file
[notice] Checking system's last guid
root@instance-20240606-091317:/var/www/html/froxlor# systemctl restart apache2

Unfortunately, the page still didn't change

Link to comment
Share on other sites

  • 0

The login form now shows up correctly, but when I try to log in, the website just refreshes.

The password is correct because if I try something else then it says wrong username / password.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...