How To enable php-gd and others

How can I enable php-gd and other features in php.ini and where is php.ini is it possible to edit php.ini