andy7789
asked on
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/h ttpdocs>
php_admin_flag safe_mode off
php_admin_flag register_globals off
php_admin_value open_basedir "/usr/local/psa/home/vhost s/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
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
php_admin_flag safe_mode off
php_admin_flag register_globals off
php_admin_value open_basedir "/usr/local/psa/home/vhost
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
ASKER
should 100M be in quotes like "100M"?
also, why the values upload_max_filesize and post_max_size are different?
also, why the values upload_max_filesize and post_max_size are different?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
php_value upload_max_filesize 52428800
php_value max_execution_time 120
php_value post_max_size 100M