Move from Dev to Production

Hi,


I need to move all my development files on my local server (localhost) to my hosting environment. which files define the environment that I shouldn't move like header.inc.php

Does someone have that list? I know install is changing few files but which files?

Quote · 21 Apr 2010

Moving a site is quite easy. You have to move everything, including inc/header.inc.php You just need to edit that file after the move to correct the path and url settings.

What you will have the most trouble with is file permissions which generally are not preserved during transfer. Thus all of them will need to be set back up properly. Permissions are everything. If not right, the site will not work properly.

You also want to make sure the contents of cache, cache_public and tmp folders are empty except for the .htaccess file in those folders if there is one.

https://www.deanbassett.com
Quote · 21 Apr 2010

Thanks! As I understand only inc/header.inc.php has to be modified.

I guess you mean to change:

$site['url']               = "http://localhost/v7 to my prod domain site

$dir['root']               = "C:/webserver/apache2.2.15/htdocs/v7 to the hosting directory

$MOGRIFY                   = "c:/webserver/ImageMagick6/mogrify";
$CONVERT                   = "c:/webserver/ImageMagick6/convert";
$COMPOSITE                 = "c:/webserver/ImageMagick6/composite";
$PHPBIN                    = "c:/webserver/php";

$db['host']                = 'localhost';
$db['sock']                = '';
$db['port']                = '3306';
$db['user']                = 'myuser';
$db['passwd']              = 'mypass';
$db['db']                  = 'v7db';

Is there a way to have one time include in the php and save all these in external file ONCE??? or if this is the only file not to include it in the movement?

Quote · 21 Apr 2010

I am not quite understanding your question.

You have to have that file. So the best way to get a properly configured copy of that file is to install fresh on the production server, then copy all your local files over excluding that one as well as a a backup of your local database.

If you do not install fresh on the production server, then you must copy the file over and edit the file so paths to everything are correct. The site will not run without that file so it must be produced somehow.

https://www.deanbassett.com
Quote · 21 Apr 2010

I have a fresh install so basically move everything except header.inc.php.

Thanks! I thought there are some other files that I need to take care of.

Also I need to move additional DB insert Laughing

Quote · 21 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.