If you are using php5 and apache2 on your server than use the following command. Using

nano

will open the

php.ini

file in the terminal. Make sure you save!

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