Hello Again,
I'm not sure how this got marked as answered.
Following the advice above I have completed the following steps.
So this is just a list of the steps I have performed. Not really a question at this stage.
- Downloaded the version of MODX that matches the version in production 2.2.6-pl
Unpacked the install files in the /var/www/
Run the setup and did a new install and created a new database.
As expected this has created a completely blank site and everything appears to work.
The config.inc.php looks the same as what I have tried originally. I guess that means that something else was wrong with my previous attempts. Never mind lets press forward
From the instructions above if I understand correctly I should copy any missing files from the prod www folders to development site then restore my dev database from the production SQL backup.
Copy static files from Production to Dev.
1) Production has a assets/components folder with lots of sub folders like codemirror, coolcaptch, cronmanager, phpthumbof etc
Nothing exists in the assets/components folder in dev so that won't overwrite anything if I copy it across.
2) Production has an assets/files folder. Nothing much it in except what looks like old test files. I'll create the folder and leave it empty.
3) Production has an assets/images folder which contains lots of graphics so I'm gong to need that in dev.
My dev site currently has no assets/images folder so again can't break anything to copy them across.
4) Production has an assets/template folder with lots of sub folders. No assets/template in dev so I copy that across as well.
5) Production has a /cgi-bin folder but doesn't contain anything. I can probably ignore that folder.
6) Connectors Appears to be populated in the dev folders so I'll just leave that alone
7) Core I'll also leave alone
8) Production has a /html folder with files and sub folders. Nothing in dev so I'll copy that folder as well.
9) /Manager folder I will leave alone.
10) Production has an /xml folder My site has an upload feature. I'm sure this is to do with that. All files copied.
11) Various other files in the var/www folder. Replaced nothing that already existed.
Restarted the Apache2 service just for fun and reloaded the Manager page. So far so good.
Now I should be able to restore my production SQL database.
I only have a SQL dump so I can't pick and choose tables to restore.
I'll leave my new "created today" database alone and restore to one that uses names matching production.
Restored database no problem using MySQL Workbench.
Modify core/config/config.inc.php to point to restored production database
Changed only these three variables
$dbase =
$table_prefix =
$database_dsn =
Now the Dev Manager screens still work and seem to match Production.
Except the Manager Screen is Named "MODX Revolution" instead of my Company Name.
My public web page doesn't load and I still get the "Hello World" page I created during the clean install of Modox.
The var/www/index.php page is identical dev <-> to production.
I checked the "site_start" setting and it had the value of "4" which is the ID of my home page.
And it does appear to be published. I can't open the home page from within the manager console either.
I know Frogabog said that I should do an Upgrade install at some point and use the same Modx version as before.
I took the bull by the horns and did the upgrade install.
My home page partially loads now with some error messages and things missing.
Lots of broken links etc.
So I'll start looking into what they are.
The first one I spot is "error: Wayfinder class not found"
So at this stage there are no real questions.
The best part is I have made some progress.
Thanks
David