Question

Unable to upload a file larger than 5mb via a php page. Checked php.ini file. Error message "exceeds MAX_FILE_SIZE directive in html"

Centos, Apache, PHP Version 5.4.16 php.ini is:

upload_max_filesize=12M
memory_limit=512M
max_execution_time=60
max_input_time=60
post_max_size=12M

There are no .htaccess files used that I know of.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Yes, i setup a phpinfo.php and the values displayed match exactly what’s in php.ini. BTW, the php.ini is at /etc/php.ini.

Thanks for the response. It is a custom built application, not OwnCloud or similar. Do not believe I’m using FCGI, have standard Digital Ocean’s standard CentOS setup, modified php.ini (and restarted apache) per above specs.

Hi @kencushman,

Are you using FCGI by any chance? And is it a custom built application, or something like OwnCloud?