==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    http://bugs.contribs.org/show_bug.cgi?id=7652

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

Xavier <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #12 from Xavier <[email protected]> ---
hi all,

I would just say that user should'nt forget to read manual (
http://php.net/manual/fr/ini.core.php | http://php.net/manual/en/ini.core.php )
and to use google, this bug is well known since very long time
(http://forums.ixus.net/viewtopic.php?p=112011&sid=2de1a9e383957336aa79cb75ffcef489).

Schirrms wrote a paper about upload_tmp_dir at
http://www.schirrms.net/files/fiches/tmp_php_apache.txt (2004)

I'd used this paper for long time now, i'd just change the location of the tmp
directory :
# mkdir /home/httpd/tmp
# echo 'upload_tmp_dir = "/home/httpd/tmp"'
>/etc/e-smith/templates-custom/etc/php.ini/61FileUploadsTmp
# echo 'max_file_uploads = 10'
>>/etc/e-smith/templates-custom/etc/php.ini/61FileUploadsTmp

It's doing the job for my webapp uploads ;-)

The stéphane's solution is a good solution, but for more security webapp user
should fix :
upload_tmp_dir

and file_uploads, upload_max_filesize, max_file_uploads

For upload_tmp_dir, the SME's wiki page give this db commands for a specific
ibay:
db accounts setprop Primary PHPUploadDir /home/e-smith/files/ibays/Primary/tmp
signal-event ibay-modify Primary

For file_uploads, the SME's php.ini is already at "on" in
templates/etc/php.ini/60FileUploads

For upload_max_filesize, the SME's wiki page give this db commands :
# db configuration show php
and then user should fix the size (exemple size=100M):
# db configuration setprop php UploadMaxFilesize 100M
# expand-template /etc/php.ini
# /etc/init.d/httpd-e-smith restart

For max_file_uploads, may be it would be a "good idea" to add 
max_file_uploads = integer
in the /etc/e-smith/templates-custom/etc/php.ini/12phptmpfolder just after
upload_tmp_dir = /tmp

By the way, it' really not a good idea for security reason to give php webapp
the right to write in /tmp. I think it would be better to make a specific dir!

Regards

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to