Converting a live site to a development site
Permalink
Hi,
I have a client who asked us to convert their site to Concrete5. At the time, they were okay with us working live on their site but have now decided that they want to have a development version first since they've been receiving calls from people inquiring about their services. How would I go about taking the live site down and converting it to a development site so that the client can still add and make changes to their site but not have it live? Hopefully that makes sense
Thanks in advance for your help!
I have a client who asked us to convert their site to Concrete5. At the time, they were okay with us working live on their site but have now decided that they want to have a development version first since they've been receiving calls from people inquiring about their services. How would I go about taking the live site down and converting it to a development site so that the client can still add and make changes to their site but not have it live? Hopefully that makes sense
Thanks in advance for your help!

get dev set up how you like and then usehttp://www.concrete5.org/documentation/installation/moving_a_site/...
IMHO. I would create a /devel (or whatever you would like to call it) folder off of the web root. Copy everything from the existing / webroot to /devel. Make an "under construction" index.php in your / webroot . Next edit /devel/config/site.php and change:
to
Your client can then access the website at:
http://www.yoursite.com/devel
Reverse the process (excluding the "under construction part") to go back live.
define('DIR_REL', '/');
to
define('DIR_REL', '/devel');
Your client can then access the website at:
http://www.yoursite.com/devel
Reverse the process (excluding the "under construction part") to go back live.
Thanks for the reply nteaviation! It seems so straight forward but when I copied all the folders to the /dev folder and made the appropriate changes to the site.php file, I would get the following message when trying to access the dev site:
Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table 'truenos6_cnc1.Config' doesn't exist] in EXECUTE("select cfValue from Config where cfKey = 'ENABLE_CACHE'") ' in /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw('mysql', 'EXECUTE', 1146, 'Table 'truenos6...', 'select cfValue ...', false, Object(ADODB_mysql)) #1 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(993): ADOConnection->_Execute('select cfValue ...') #2 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(1605): ADOConnection->Execute('select cfValue ...', Array) #3 /home7/truenos6/public_html/dev/concrete/libraries/database.php(73): ADOConnection->GetRow('select cfValue ...', Array) #4 /home7/truenos6/public_html/dev/concrete/models/config.php(67): Database->__call(Array, Array) #5 /home7/truenos6/public_htm in /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
What am I doing wrong? :(
Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table 'truenos6_cnc1.Config' doesn't exist] in EXECUTE("select cfValue from Config where cfKey = 'ENABLE_CACHE'") ' in /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw('mysql', 'EXECUTE', 1146, 'Table 'truenos6...', 'select cfValue ...', false, Object(ADODB_mysql)) #1 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(993): ADOConnection->_Execute('select cfValue ...') #2 /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb.inc.php(1605): ADOConnection->Execute('select cfValue ...', Array) #3 /home7/truenos6/public_html/dev/concrete/libraries/database.php(73): ADOConnection->GetRow('select cfValue ...', Array) #4 /home7/truenos6/public_html/dev/concrete/models/config.php(67): Database->__call(Array, Array) #5 /home7/truenos6/public_htm in /home7/truenos6/public_html/dev/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
What am I doing wrong? :(
Check the /dev/config/site.php and make sure the database name, password and user are correct. They should be the same as in the /config/site.php
ok, we're a little bit closer. I'm not sure how both site.php files became different from one another but I mirrored the DEV one to be like the /webroot one. I now get the Concrete5 interface that says "Page Not Found". I copied everything exactly.
http://www.truenorthrea.com/dev/...
http://www.truenorthrea.com/dev/...
Check the /dev/config/site.php. Is DIR_REL set to /dev?
Are you using "pretty URLs"? If so we need to fix the .htaccess files :)
Thanks SOOOO very much for your help nteaviation! It's all working fine now. Being a non-developer, Concrete5 can be a bit complicated. I'm glad there's such a good support system here. Thanks again!!!
Excellent! Always glad to help. Let us know if we can help in any other way.