Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nomisma-qt opened this issue May 8, 2023 · 1 comment
Open

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

nomisma-qt opened this issue May 8, 2023 · 1 comment

Comments

@nomisma-qt
Copy link

nomisma-qt commented May 8, 2023

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!

@nomisma-qt nomisma-qt changed the title nginx needs to be configure for php8.1 with version 3.7.0 nginx needs to be configured for php8.1 with version 3.7.0 May 8, 2023
@nomisma-qt
Copy link
Author

nomisma-qt commented May 8, 2023

Edit, oh, now i see that this is mentioned in the Ubuntu 22.04 guide, my apologies.
Still, a mention could maybe be added to the LXC container guide, to save users some time debugging.

Feel free to remove this issue if it seems unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant