Icarus Posted June 12, 2009 Share Posted June 12, 2009 Hello everybody,I hope someone can shed some light on this - so far I am doing some trial and error.I have Presta installed on my xampp localhost.This is where I configure the system, modify the CSS etc.Then, I am using an FTP mirroring software to copy the entire content to my production server.I am assuming there should be no problem in doing this - only I know that I need to make the configuration files be sensitive to where they are.So, as far as I could see, the only place I need to touch is the config/settings.inc.php file.True?I mean, if I create some conditional configuration in this fileif( localhost ) define( this )else define( that )Will it work?Are there other files?Thanks in advance. Link to comment Share on other sites More sharing options...
Patric Posted June 12, 2009 Share Posted June 12, 2009 It should be enough.However there may be little differences, depending on the host. You might have to modify some parameters, like in .htacces file to activate PHP5... Link to comment Share on other sites More sharing options...
Icarus Posted June 12, 2009 Author Share Posted June 12, 2009 Thanks for the quick reply Zendik.My host is already well-configured for my stuff, so everything seems to be working finYou guys have done a great job in simplifying things - I was quite shocked to see that there are only a few lines in the config folder that I need to touch.So I have added if( $_SERVER['HTTP_HOST'] =='localhost' ) { // localhost db definitions here } else { // live definitions here } And everything seems to workI was a little concerned about the _COOKIE_KEY_ since I did not know what it is, but it seems that it is working as is (same value) both on local and live.Excellent piece of software!!!!!! Finally Im making some progress in the commerce area. Link to comment Share on other sites More sharing options...
Recommended Posts