Going Live

Permalink
I have built my C5 site in a seperate directory which I access by /c5 after my URL. I am now ready to take the site live. As I understand from reading posts here I have to [1] transfer all the files from my C5 directory to the Root [httpdocs] and [2] modify the config/site.php file.
I have done [1] and got a test result page where everything was OK with the exception of three folders needing a CHMOD change which I have done and then gone back to the page.
Two results occur: if I have my site.php file in place I end up in a fully blank screen and nothing proceeds. If I rename the site.php to xsite.php and try again C5 wants to do what seems to be a New Install.
I think the problem is in the DIR_REL of the site.php which you can see here:
<?php 
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'Concrete5_2');
define('DB_PASSWORD', 'tN95XD_c6i');
define('DB_DATABASE', 'Concrete5_f');
define('BASE_URL', 'http://guanajuatorentals.com');
define('DIR_REL', '/index.php');
define('PASSWORD_SALT', 'nRWyDjNmJ2hVkTEigHaDhCsFLAR2po8nih4oJWMSmCfFcDhQjwNqVLULM1ccJVIJ')

Do I have it correct? If not, how should it be written?
-or- can I continue with what seems a fresh install and will that use the DataBase I have already created?

Thanks in advance for your help

khunbill1
 
JohntheFish replied on at Permalink Reply
JohntheFish
It probably won't solve your immediate problem, but this is how I structure things to avoid having to worry about all that stuff.

http://www.concrete5.org/documentation/how-tos/developers/organise-...
khunbill1 replied on at Permalink Reply 3 Attachments
khunbill1
Progress of a sort: My site seemed stuck onhttp://guanajuatorentals.com/index.php/install/-/setup/... which, just by accident, I discovered would come up to anyne trying to reach my site via Google. I removed all the C5 folders and files from my root [httpdocs] and placed them back into /c5 where the previoiusly were.

I can now access my current site [and it now longer can be accessed viahttp://guanajuatorentals.com/index.php/install/-/setup/]... but I cannot get back into my /c5 directory whereas previously I would just enter guanajuatorentals.com/c5. Any tips on how I can get back in? If I can't is there another way I can recover my pages? Are the pages in the database? [ I have two back up copies and the original still exists]

If all else fails I guess I can just start over and given the quick learning curve on C5 it won't be all that much work.

My /c5/config/site.php looks like this:
<?php 
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'Concrete5_2');
define('DB_PASSWORD', 'tN95XD_c6i');
define('DB_DATABASE', 'Concrete5_f');
define('BASE_URL', 'http://guanajuatorentals.com');
 [define('DIR_REL', '/index.php')
define('PASSWORD_SALT', 'nRWyDjNmJ2hVkTEigHaDhCsFLAR2po8nih4oJWMSmCfFcDhQjwNqVLULM1ccJVIJ')

The index.php goes to the despacher.php I have not made any changes in those files.

The attached image shows my screen when I try to access guanajuatorentals.com/c5

Another oddity: When I use the full site URL withhttp://www. or justhttp://www.guanjuatorentals.com [without the /c5 ] this is what appears:
http://www.guanajuatorentals.com/c5/c5/c5/c5/c5/c5/c5/c5/c5/c5/c5/c... Could I have another .htaccess that I don't see? Did a seach on my Server File manager and did not come up ith any. There is an error message that comes up with the multi /c5's -see image 2-

Image 3 is the page source behind the blank screen when I go guanajuatorentals.com/c5 showing just the numeral "1"
JohntheFish replied on at Permalink Reply
JohntheFish
The /c5/c5..... could be an infinite loop occurring in mod rewrite in your .htaccess file. I suspect that during the abortive move, the .htaccess file was either moved to the wrong place or became incompatible with what you are doing with the site location.

For most sites, you don't need to define BASE_URL or DIR_REL in config/site. concrete5 works those out quite reliably by itself.

(You used to need to define them several versions of concrete5 ago)