Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
Good article, but you can use for getting the ini path simple command like:
php --ini
Just for reference:
If you’re using PHP-FPM (e.g. with nginx) then the location of the config file on Ubuntu/Debian is
/etc/php5/fpm/php.ini
This comment has been deleted
PHP settings can be changed and configured using php.ini file. This blog will give you few common examples. In PHP applications there are some case in which we might need to allow for larger upload files. Such as videos, plugins or large database files. In order to upload large amount of data into your PHP application you need to edit the php.ini file with the following command (This example shows the path for Apache on Ubuntu 14.04.): sudo nano /etc/php5/apache2/php.ini The default lines that control the file size upload are: php.ini post_max_size = 8M upload_max_filesize = 2M You can change your desired maximum file upload size with these default values. For example, if you needed to upload a 60MB file you would changes these lines to: php.ini post_max_size = 60M upload_max_filesize = 60M If you want to increase the amount of memory limit PHP can use, you can set by memory_limit: php.ini memory_limit = 128M or max_execution_time, which defines how many seconds a PHP process can run for: php.ini max_execution_time = 30 When php.ini is configured then you can save the changes and exit php.ini file Now restart the web server to enable the changes that you have just made. For Apache on Ubuntu 14.04, this command will restart the web server: sudo service apache2 restart Now create file info.php and write the following lines: <?php phpinfo(); ?> Now refresh the page info.php and you will see the changes has been updated that you have made.
If you’re using PHP-FPM such as on servers managed by ServerPilot, you can also use “.user.ini” files to change PHP settings.
For people with nginx and php7.0 Type
sudo service php7.0-fpm restart
to see the changes
This was great. Thank you all so much for your input. I was finally able to adjust my settings and get my theme installed. I am grateful to this community.
Thanks for the useful article. You don’t need to restart Apache, you can reload the config:
sudo service apache2 reload
This is useful when amending a production server.