I keep most of my Apache/PHP/Percona (MySQL) configuration stuff in a local Git repository so I can track changes and I symlink to those from where they should be so you will see commands such as
sudo ln -s ~/Documents/configs/PHP/fat-tony.local/php55.ini /opt/local/etc/php55/php.ini
If you don’t have a similar setup, just copy your configuration files to where they need to be.
I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.