Php – Owncloud/Apache Server won’t increase max file upload

apache-2.2PHP

I have tried just about everything I can think of on this one.
I am currently trying to increase the max file upload size on our apache owncloud server.

I have changed the /etc/php.ini values for:
upload_max_filesize and
post_max_size

After restarting the httpd service, the file size has not yet changed.
I tried several different values without success.
I then edited the .htaccess in the root of the owncloud directory for upload_max_filesize and post_max_size, restarted, and still am not able to surpass the 2m limit.

I created a phpinfo file, and it does in fact say that it is pulling from the /etc/php.ini file.

Any help would be greatly appreciated.

Best Answer

OP back. I figured out the issue. I ran php -c /etc/php/php.ini -i | grep upload_max_filesize and discovered a small typo elsewhere in the php.ini file. (I attempted to edit the timeout value, and had left in a parenthesis). After taking out the parenthesis, and restarting the service, the upload value was correctly adjusted.