Link to home
Start Free TrialLog in
Avatar of andy7789
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/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
Avatar of blue_hunter
blue_hunter
Flag of Malaysia image

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
Avatar of andy7789
andy7789

ASKER

should 100M be in quotes like "100M"?

also, why the values upload_max_filesize and post_max_size are different?
ASKER CERTIFIED SOLUTION
Avatar of blue_hunter
blue_hunter
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial