DigitalOcean : The uploaded file exceeds the upload_max_filesize directive in php.ini.

February 6, 2019| mbox

While Uploading Themes or Plugins in DigitalOcean Droplet, You might get this kind of notice/ issue.

To solve this you need change the value of “upload_max_filesize” directive in your php.ini file. So where is php.ini file??

I follow your link and I fix it! Thanks because It work for me. Here is my way:

  1. using terminal (cmd) and connect to your server via ssh code
  2. type cd \ to go root folder
  3. type sudo nano /etc/php5/apache2/php.ini
  4. add after php.ini file upload_max_filesize = 32M post_max_size = 32M => save your php.ini file
  1. type : sudo service apache2 restart

After the instruction – go to your WP-admin and Bingo 🙂




Categories: DigitalOcean

Leave a Reply

Your email address will not be published. Required fields are marked *