• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

Increase the maximum file upload size in PHP

Create a test.php with the following content to check your current maximum upload size.

<?php phpinfo(); ?>

Search your php.ini in the Apache folder:

$ find /etc -name 'php.ini'
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

Edit it. Set upload_max_filesize and post_max_size to whatever you want.

Restart the server with

$ sudo service apache2 restart

Published

Jun 7, 2015
by Martin Thoma

Category

Cyberculture

Tags

  • apache 3
  • PHP 9

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor