I have built a small web site using MODx on one server and I need to move it to another. I have tried doing it, by the following:
1. Downloading the entire folder containing the MODx installation (at www.{server1}.co.uk/modxcms) and uploading to the new server (at www.{server2}.org.uk)
2. Exporting the MySQL database from the first server and importing into the 2nd via phpMyAdmin
3. Changing the MySQL details in config.inc.php (just prior to upload to new server)
The main site works fine, including the Member’s Area of the site. However, I am unable to log into the Manager, and the log-in page at www.{server2}.org.uk/manager shows the following errors when loaded:
Warning: Cannot modify header information - headers already sent by (output started at /homepages/0/d271037485/htdocs/manager/includes/config.inc.php:1) in /homepages/0/d271037485/htdocs/manager/index.php on line 148
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/0/d271037485/htdocs/manager/includes/config.inc.php:1) in /homepages/0/d271037485/htdocs/manager/includes/config.inc.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /homepages/0/d271037485/htdocs/manager/includes/config.inc.php:1) in /homepages/0/d271037485/htdocs/manager/includes/config.inc.php on line 73
Something I have thought of (but I don’t know if it’s correct!) is that on the original server the site is in a subfolder, whereas on the new server it is in the root.
I am using MODx 0.9.6.1