This post is about the configuration of the php.ini file. This file contains a lot of important and useful configurations of the PHP Language which can be customized according to your needs and requirements. in Ubuntu php.ini file is located at /etc/php5/apache2/ directory. First, have a look at the file and then we’ll discuss some important configurations one by one. Run the following command in your terminal to open php.ini file in your gedit text editor:
sudo gedit /etc/php5/apache2/php.ini
Look through the file and if you can’t understand what is this all about, then don’t worry, in this section you’ll learn about the some useful directives available in this file.