You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-02-05 15:12:05

irs
Guest
Registered: 2016-05-12
Posts: 2

GLPi 9.3.3 - /files outside webroot - attached images not visible.

I have fresh test installation of glpi.

According to recomendation in installation manual during installation I put "files" subdirectory outside webroot - to /var/lib/glpi.
Here is my /etc/glpi/local_define.conf:

	<?php
	 define ( 'GLPI_VAR_DIR' , '/var/lib/glpi' );
	 define ( 'GLPI_LOG_DIR' , '/var/log/glpi' ); 

I got errors message  when try to open images attached to ticket:
"Image [link to image] can't be displayed, because it contains errors". Image preview in ticket wiev are empty.

The other types of attachment (i.e. xls, txt, doc) are possible to open/download without any problems.
Also in the place of users avatars only empty square frame is visible.

See attached screenshot

There are no errors in /var/log/glpi/php-errors.log

I installed another fresh instance of glpi 9.3.3 - with default settings - where /files folder is placed inside webroot and evertyhing works fine.

	Operating system: Linux glpitest 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
	PHP 7.0.33-0+deb9u1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,
		calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring,
		mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, standard, sysvmsg, sysvsem, sysvshm,
		tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
	Setup: max_execution_time="600" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
		upload_max_filesize="50M" 
	Software: Apache/2.4.25 (Debian) (Apache/2.4.25 (Debian) Server at glpitest.teknia.res Port 80)
		Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
	Server Software: Debian 9.6
		Server Version: 10.1.37-MariaDB-0+deb9u1
		Server SQL Mode: 
		Parameters: admin@localhost/trz_glpi_all
		Host info: Localhost via UNIX socket
		
	mysqli extension is installed
	ctype extension is installed
	fileinfo extension is installed
	json extension is installed
	mbstring extension is installed
	zlib extension is installed
	curl extension is installed
	gd extension is installed
	simplexml extension is installed
	xml extension is installed
	ldap extension is installed
	imap extension is installed
	Zend OPcache extension is installed
	APCu extension is installed
	xmlrpc extension is installed
	CAS extension is installed
	Database version seems correct (10.1.37) - Perfect!Database version seems correct (10.1.37) - Perfect!
	OK/var/log/glpi : OK
	OK/etc/glpi/ : OK
	OK/var/lib/glpi : OK
	OK/var/lib/glpi/_dumps : OK
	OK/var/lib/glpi/_sessions : OK
	OK/var/lib/glpi/_cron : OK
	OK/var/lib/glpi/_graphs : OK
	OK/var/lib/glpi/_lock : OK
	OK/var/lib/glpi/_plugins : OK
	OK/var/lib/glpi/_tmp : OK
	OK/var/lib/glpi/_cache : OK
	OK/var/lib/glpi/_rss : OK
	OK/var/lib/glpi/_uploads : OK
	OK/var/lib/glpi/_pictures : OK

Is it my configuration flaw or it might be a glpi bug?. How to correct/bypass this issue?
Would be appreciate for help.
Best Regards.

Offline

Board footer

Powered by FluxBB