Colorfield logo

Drupalicious

Published on

Migrate a Drupal site with CiviCRM from a custom LAMP environment to Virtualmin (2/2)

Authors
Virtualmin dashboard

On the first part of this tutorial, we have covered the following tasks:

  • Install Virtualmin
  • Migrate files and databases from another server
  • Configure a vhost and set user quotas (disk space)
  • Install several versions of PHP
  • Finetune php.ini and install common extensions
  • Install a SSL certificate
  • Troubleshooting

On this part, we will see how to

  • Configure backup of databases and files: manually and via cron, locally and on another storage (like AWS)
  • Configure basic monitoring of the services
  • Disable unused services on startup (like FTP)
  • Enable new services on startup (like Solr)
  • Create a virtual host configuration template
  • Handle 301 redirects without altering your local Drupal .htaccess

Backups

Per virtual host database backup

Select a virtual host then Edit databases > Manage > Backup database
Here you can configure a simple local backup, via cron or manually.

Backup all the virtual hosts files and databases

Virtualmin tab > Backup and Restore > Backup Virtual Servers

Configuration files

Webmin tab > Webmin > Backup Configuration Files

Monitoring

Webmin > Others > System and Server Status

Create a virtual host configuration template

Virtualmin tab > System Settings > Server Templates

Handle 301 redirects without altering your local Drupal .htaccess

Virtualmin tab > System Settings > Server Templates

Administer.

Virtualmin tab > System Settings > Server Templates > Settings for Sub-servers > Edit template section > Apache website

then

Create permanent redirect for a virtual host