How do I move my Composr website to a new server?

  • By
  • Added
  • 0 views
Question How do I move my Composr website to a new server?
Answer Moving a Composr site involves transferring both the files and the database.

Files:
  • On the old server, ZIP the entire Composr directory.
  • Download the ZIP file to your computer.
  • Upload the ZIP file to the new server using SFTP/FTP.
  • On the new server, unzip the file.

Database:
  • On the old server, create an SQL dump of your database using the mysqldump command or phpMyAdmin.
  • Download the SQL dump file.
  • If your URL is changing, search and replace the old URL with the new one in the SQL dump file.
  • Upload the SQL dump file to the new server.
  • Restore the database on the new server using the mysql command or phpMyAdmin.

Important Steps:
  • File Permissions: After transferring files, ensure correct file permissions are set on the new server. You can use the fixperms.php script, the upgrader script, or manually adjust them.
  • Configuration: If database settings are different on the new server, update the _config.php file or use the config_editor.php script to change the settings for both the site and forum databases.
  • Base URL: If your URL has changed, update the base URL setting in the Installation Options editor (config_editor.php).
  • Caches: Clear the block cache using the upgrader.php script.

Rating

Unrated