Ubuntu where is php.ini By RMTWebIn Servers1 Min Read U For PHP 5.6, to edit the php.ini file type: sudo nano /etc/php/5.6/apache2/php.ini