setting a max file upload size for a domain

Hi X-perts,

I have a dafault php max upload size 7M and need to increase it to 17 to a specific directory. This is my vhost.conf:

<Directory /usr/local/psa/home/vhosts/xxx.com/httpdocs>
 php_admin_flag safe_mode off
 php_admin_flag register_globals off
 php_admin_value open_basedir "/usr/local/psa/home/vhosts/xxx.com/httpdocs:/"
 php_admin_value upload_max_filesize "17M"
</Directory>

It does not work and the default file size is still 7M.

What is wrong here?

Thank you
andy7789Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

blue_hunterTechnical ConsultantCommented:
you have to increase the below options in the  accordingly

    php_value upload_max_filesize 52428800
    php_value max_execution_time 120
    php_value post_max_size 100M
0
andy7789Author Commented:
should 100M be in quotes like "100M"?

also, why the values upload_max_filesize and post_max_size are different?
0
blue_hunterTechnical ConsultantCommented:
no, not in need to quote them

Files are usually POSTed to the webserver in a format known as 'multipart/form-data'. The post_max_size sets the upper limit on the amount of data that a script can accept in this manner. Ideally this value should be larger than the value that you set for upload_max_filesize.

It's important to realize that upload_max_filesize is the sum of the sizes of all the files that you are uploading. post_max_size is the upload_max_filesize plus the sum of the lengths of all the other fields in the form plus any mime headers that the encoder might include. Since these fields are typically small you can often approximate the upload max size to the post max size.


further information about post_max_size and upload_max_filesize can find at the below link
http://www.radinks.com/upload/config.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.