Where is php.ini on a Linux Server?

by Jay Versluis

in Linux

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.

Leave a Comment


Notify me of followup comments via e-mail. You can also subscribe without commenting.

Previous post:

Next post: