Where is php.ini on a Linux Server?
By default, it’s located in /etc/php.ini
In this file, you can set your upload limits, memory limits, safe mode and many other settings that you may wish to change.
Before saving permanent changes to this file please consider the following:
- CREATE A BACKUP before saving
- all changes will be live AFTER REBOOTING your machine
- all changes are applied SERVER WIDE to all accounts and sites on your server
If you would like to make changes to a specific directory, consider making changes in your .htaccess files.