Ubuntu 18.04.1 php 7.2 php.ini file location

This forum covers all minor versions of PHP 7
Post Reply
User avatar
Administrator
Site Admin
Posts: 1725
Joined: Thu Mar 22, 2018 10:19 am

Ubuntu 18.04.1 php 7.2 php.ini file location

Post by Administrator » Mon Dec 31, 2018 3:18 am

You can edit the php configuration file in Ubuntu 18.04.1 by running the following command in the terminal.

Edit with gedit with the following command

Code: Select all

sudo gedit /etc/php/7.2/apache2/php.ini
remember to restart the server after editing

Code: Select all

sudo service apache2 restart
Edit with vi, for a guru

Code: Select all

sudo vi /etc/php/7.2/apache2/php.ini
Make sure you are running the editor as Administrator

Post Reply