Clone and Configure a New vTiger Instance
1. Clone the vTiger Demo VM
- Create a clone of the demo vTiger virtual machine on Proxmox
2. Change the Hostname
- Log in to the cloned VM.
- Update the hostname:
bash
sudo hostnamectl set-hostname newdomain@domain.com
3. Update the /etc/hosts
File
- Edit the
/etc/hosts
file to include the new hostname:bashsudo nano /etc/hosts
- Add the following line, replacing
IP_ADDRESS
with the VM's new IP:cssIP_ADDRESS newdomain@domain.com
- Save and exit (
Ctrl + O
, thenCtrl + X
).
4. Change the IP Address
- Update the network configuration to set the new IP address. This depends on your network setup. For example:
bash
sudo nano /etc/netplan/01-netcfg.yaml
- Update the
addresses
section with the new IP, save the file, and apply the changes:bashsudo netplan apply
5. Update Apache Configuration
a. Update 000-default-le-ssl.conf
:
bash
sudo nano 000-default-le-ssl.conf
- Replace all instances of the old domain with
newdomain@domain.com
.
b. Update 000-default.conf
:
bash
sudo nano 000-default.conf
- Replace all instances of the old domain with
newdomain@domain.com
.
6. Obtain a New SSL Certificate
- Run the Certbot command to generate an SSL certificate for the new domain:
bash
sudo certbot --apache -d newdomain@domain.com
7. Update vTiger Configuration
- Open the vTiger configuration file:
bash
sudo nano /var/www/html/crm/config.inc.php
- Update the following lines to reflect the new domain:
php
$site_URL = 'https://newdomain@domain.com/crm/';
8. Clear the Cache
- Remove the cache to ensure changes are applied:
bash
sudo rm -rf /var/www/html/crm/cache/*
9. Restart Apache
- Restart the Apache service to apply the changes:
bash
sudo systemctl restart apache2
No Comments