NYCPHP Meetup

NYPHP.org

[nycphp-talk] Advice on setting for testing server

Daniel Convissor danielc at analysisandsolutions.com
Tue Aug 25 15:00:01 EDT 2009


Hi Joelle:

On Tue, Aug 25, 2009 at 12:50:55PM -0500, Joelle Tegwen wrote:
>
> I created two files. The first is a shell script that installs all of  
> the applications I use, changes settings/permissions and makes copies of  
> config files. Then you've always got your back covered. The second is  
> instructions and information about how to manually change things that  
> need to be manually changed. (config files, etc) .

Yep.  Great advice.  Shell scripts are an amazing way to save time and 
improve accuracy.

And I bet you can script even more of the process.  For example, you were 
saying you manually edit your config files.  There are two ways to 
automate config file modifications.

1) Have a copy of the config file in your version control system 
(subversion, cvs, git, etc) that your installation script exports and 
copies into place.

2) Have a unified diff (diff -u php.ini-production php.ini > ini.diff) of 
your configuration file in your version control system that your shell 
script exports then calls:

patch -i ./ini.diff $php_path/php.ini-development -o $php_path/php.ini

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list