[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Php 4.1.2 and file uploads
- Subject: Re: [cobalt-users] Php 4.1.2 and file uploads
- From: "William J.A. Brillinger" <billy@xxxxxxxxxx>
- Date: Wed Sep 24 08:28:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 04:10 PM 24/09/03 +0100, you wrote:
Hello,
I am trying to enable file uploads for a virtual site within a
raq4 using php from the pkgmaster. I 've added to the http.conf
the following within the virtualhost container tags on the site:
php_admin_value open_basedir /home/sites/site28:/home/tmp
php_admin_value dir_upload /home/sites/site28
I created a directory with site28 web folder called images and
set the ownership to httpd and given 777 permissions but when I
try to upload a file I get errors?
regards
Jon
You need to change the maxfile sizes in php.ini similar to this:
(and consider using php's ftp functions too)
file: /etc/httpd/php.ini
;upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads
;max_execution_time = 30 ; Maximum execution time of each script, in
seconds (UNIX only)
;memory_limit = 8388608 ; Maximum amount of memory a script may consume
(8MB)
upload_max_filesize = 22020096 ; 21 Meg limit on file uploads
max_execution_time = 600 ;600 seconds by PDC
memory_limit = 29360128 ;28mb to accommodate larger file uploads
post_max_size = 23068672 ; 22 Meg Max post *added*
---------------------------------
William J.A. Brillinger
Precision Design Co.
E-Mail: mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net