I want to increase my upload file space.. because if i upload more than 2mb, showed alert that ‘maximal upload from hosting provider only 2mb’. in here, my hosting provider is digitatl ocean

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.

×
2 answers

Hi there @infofreelenstudio,

You would need to increase the PHP post_max_size and upload_max_filesize via your php.ini file.

I could suggest following the steps from this tutorial here on how to adjust your PHP settings:

https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04

Regards,
Bobby

by Jon Schwenn
PHP is a server side scripting language used by many popular CMS and blog platforms like WordPress and Drupal. It is also part of the popular LAMP and LEMP stacks. Updating the PHP configuration settings is a common task when setting up a PHP-based website. This guide will show how to view the current PHP configuration settings of your web server and how to make updates to the PHP settings.

Hello,

What you can do is to create an info.php file and then check the values. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:

<?php
phpinfo();

Then check for the current value of upload_max_filesize and post_max_size you can also check which is the configuration file - php.ini that is currently used and apply the changes there (if the site using the global php.ini file and you change the values for these settings this will make the changes globally for all sites). Ideally you would like to have the following values:

upload_max_filesize = 64M
post_max_size = 64M

Hope this helps!
Regards,
Alex

Submit an Answer