After this tutorial, you will know everything about php.ini.
Overview
A php.ini file is a simple text file that allows you to change your PHP settings. For example, the server comes with a few default settings such as a PHP memory_limit of 90MB. Other limits that are often changed are for PHP execution time and upload size. This tutorial walks you through how to set up a php.ini file and add your custom adjustments.
Determine which PHP version your website uses
Before you create a php.ini file, you will need to know which version of PHP your site is running. The following article explain how to view the PHP version of your site.
How to create a php.ini file
You can create a php.ini file by logging into your server via FTP or SSH. The following links walk you through each option.
- How do I create a php.ini file via FTP? (easier for beginners)
- How do I create a php.ini file via SSH? (for advanced users)
Updating your changes
After you have created your php.ini file, you should update your PHP configuration to ensure the new settings take effect. View the following article for further details:
- Killing off running PHP processes