Skip to content

nginx needs to be configured for php8.1 with version 3.7.0 #70

Open
@nomisma-qt

Description

Hello. I got LXD-Dashboard installed in a Proxmox LXC container, and now have access to the GUI. Looking forward to start testing.

I just wanted to note that following the installation to a LXC container guide, nginx comes with php7.4 enabled by default, this results in a 502 Bad Gateway when accessing the GUI.

It's fixed easily by editing /etc/nginx/sites-enabled/default

#fastcgi_pass unix:/run/php/php7.4-fpm.sock;
   fastcgi_pass unix:/run/php/php8.1-fpm.sock;

For anyone looking to install in Proxmox, here's a quick guide:

  1. Set up a ubuntu 22.10 container, and enable options: nesting=1,fuse=1

  2. quick setup. Yes, snap install core must be done twice, the first time will result in error, second time will work.

apt update && apt upgrade
dpkg-reconfigure tzdata
do-release-upgrade
apt install snapd
snap install core
snap install core
snap refresh core
snap install hello-world
hello-world

snap install lxd
apt install nginx php-fpm php-curl sqlite3 php-sqlite3 -y 
wget https://github.com/lxdware/lxd-dashboard/archive/refs/tags/v3.7.0.tar.gz
tar -xzf v3.7.0.tar.gz

cp -a lxd-dashboard-3.7.0/default /etc/nginx/sites-available/ && \
cp -a lxd-dashboard-3.7.0/lxd-dashboard /var/www/html/

mkdir -p /var/lxdware/data/sqlite && \
mkdir -p /var/lxdware/data/lxd && \
mkdir -p /var/lxdware/backups

chown -R www-data:www-data /var/lxdware/ && \
chown -R www-data:www-data /var/www/html

nano /etc/nginx/sites-enabled/default 

    #fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    
systemctl restart nginx

Thanks for great app!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions