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 2008-08-27 11:33:01

Eisbaeeer
Member
Registered: 2008-08-22
Posts: 9

Document upload error

Hi
I get "Potential upload attack, Or file too large. Moving temporary file failed."
The php.ini settings seems correct: "http://www.ulmerfleisch.de/docman/phpinfo().PDF"

Server System: SME Server 7.2

Any suggestion?
Greetings Eisbaeeer

Last edited by Eisbaeeer (2008-08-27 11:33:25)

Offline

#2 2008-08-27 19:47:37

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Document upload error

What is the size au the file , the version of GLPI and the setting of your php.ini ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2008-08-27 20:12:29

Eisbaeeer
Member
Registered: 2008-08-22
Posts: 9

Re: Document upload error

Php settings are below in my first post! Look at link. The filesize is 10kb. I test it with different sizez. Eisbeeer

Offline

#4 2008-08-28 09:56:32

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Document upload error

Your php settings is perhrps in your first post BUT NOT THE VERSION OF GLPI YOU USE !

Also, when i just need an information, i don't need to read all a pdf file! Max_upload files and memory is enough for this problem.


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#5 2008-08-29 07:54:34

Eisbaeeer
Member
Registered: 2008-08-22
Posts: 9

Re: Document upload error

Selected PHP Settings:

max_execution_time    30    30
memory_limit    64M    64M
post_max_size    20M    20M
upload_max_filesize    20M    20M

GLPI Version: latest stable --> GLPI version 0.71.1

Any suggestion?

Offline

#6 2008-09-01 12:36:42

Eisbaeeer
Member
Registered: 2008-08-22
Posts: 9

Re: Document upload error

Ok,

The error in Debug mode. Where can I configure the /tmp path for uploading files?

error_glpi.jpg

http://www.ulmerfleisch.de/docman/error_glpi.jpg

Greetings Eisbaeeer

Last edited by Eisbaeeer (2008-09-01 12:37:38)

Offline

#7 2009-01-15 12:21:45

Eisbaeeer
Member
Registered: 2008-08-22
Posts: 9

Re: Document upload error

Ok, here is the relosution:

edit the following conf:
vi /etc/httpd/conf/httpd.conf

search for:
php_admin_value open_basedir

add at the end of line:
:/tmp

in my config looks like: php_admin_value open_basedir  /opt:/tmp

then restart the http deamon:

/etc/init.d/httpd stop
/etc/init.d/httpd start

Now it works (hope)

Eisbaeeer

Offline

#8 2009-01-15 17:30:38

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Document upload error

It's a very strange configuration...


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#9 2009-03-06 18:50:17

citroen
Member
Registered: 2009-03-06
Posts: 1

Re: Document upload error

There is a solution. It works for me:

#For example glpi ibay
#change the value
db accounts setprop glpi PHPBaseDir NONE
#signal a modification to the e-smith templating system
signal-event ibay-modify glpi
#restart httd server
service httpd-e-smith restart

Source: http://blog.mansonthomas.com/2007/12/e- … sedir.html

Offline

Board footer

Powered by FluxBB