How to Edit PHP ini File in Ubuntu Terminal

In this tutorial, we are going to see how to edit PHP ini file in ubuntu terminal. php.ini file is a default configuration file that is read when PHP is started. PHP settings and configurations can be changed through php.ini.

If you want to change PHP configurations on Ubuntu, the php.ini file is a simple and effective way. Follow the steps below to modify the PHP configuration file (php.ini) on the terminal in Ubuntu.
1. Open the terminal and run the following command to open the php.ini file.

sudo nano /etc/php5/apache2/php.ini

2. Change PHP parameters. For example, if you want to increase the execution time, increase the value of the variable max_execution_time in seconds.

max_execution_time = 60

3. Once you have changed the configuration values, save and exit the editor.
4. Now restart the web server to activate the changes you have made.

sudo service apache2 restart

mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

2 thoughts on “How to Edit PHP ini File in Ubuntu Terminal

  • Davidhiree

    At all I do not know, as to tell

  • Donaldfeack

    You commit an error. I can prove it.


Leave a Reply

Your email address will not be published. Required fields are marked *