Link to home
Start Free TrialLog in
Avatar of mdkgeurts
mdkgeurts

asked on

Can't set upload_max_file_size in php.ini

I have a problem setting the upload_max_file_size. I have changed php.ini. I set the upload_max_file_size to 25M in php.ini, saved it, restarted the webserver and I still can't upload files larger than 2M. When I look at a phpinfo() page it says that the upload_max_file_size is 2M. When I open php.ini the upload_max_file_size is correctly set at 25M. Help! Apache 2, Suse Linux, PHP 5.0.4
Avatar of Rob_Jeffrey
Rob_Jeffrey

I had a similar problem - and ended up having two ini files.  
You can set the limit in the .htaccess file as well as in your php file (I believe).
ASKER CERTIFIED SOLUTION
Avatar of ppfoong
ppfoong

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

ASKER

The config path pointed to a non-existing folder, I created the folder with the php.ini and it worked.
That was the same problem I had. :)