marty
Yes, part of the installation is still in /htdocs, and when all is there, it works just fine.
When the server root is set to /htdocs everything works, just complains about potential access to non-public files. It manages to access the database with the credentials provided in wo-config, all is fine. Had to add a few PHP modules, but that's easy.
This is the sample Nginx config they are suggesting should work:
https://glpi-install.readthedocs.io/en/latest/prerequisites.html#web-server
`
server {
listen 80;
listen [::]:80;
server_name glpi.localhost;
root /var/www/glpi/public;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php$ {
# the following line needs to be adapted, as it changes depending on OS distributions and PHP versions
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
`
This is my current one in /etc/nginx/sites-enabled:
server {
server_name domain.com www.domain.com;
access_log /var/log/nginx/domain.com.access.log rt_cache;
error_log /var/log/nginx/domain.com.error.log;
root /var/www/domain.com/htdocs;
index index.php index.html index.htm;
include common/php82.conf;
location ~ ^/index\.php$ {
# the following line needs to be adapted, as it changes depending on OS distributions and PHP versions
fastcgi_pass php82;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
include /etc/nginx/common/locations-wo.conf;
include /var/www/domain.com/conf/nginx/*.conf;
}
Am I missing FastCGI?
When I change root to "root /var/www/domain.com/htdocs/private;" I get 404, 500 or 502 bad getaway depending on the stuff I try.
All permissions are provided to www-data.
With the current setup it seems to show the initial login screen, but then once I submit any logins it goes to 404 - not found on https://domain.com/front/login.php