In this tutorial, we will review the main configuration file of vTiger and how to locate it. This information is useful as the configuration file of the script allows you to make global changes for your website without even accessing the administrative area.
It is important to know how to locate the configuration file. This way, you can find core information, such as the URL for your website, the database set on it and much more. This information is helpful when you are performing a backup or restore of your website, for example. Also, it will allow you to re-configure your website if you are changing it's location or domain name.
To locate the configuration file of your website, you first need to access your cPanel account. Locate the Files section and click on the File Manager icon.
This service will allow you to review the actual contents of your account on the server. Once you access it, simply navigate to the location of your vTiger installation. If you are accessing your website directly via the domain set on your website, this indicates that your vTiger website is located directly within the public_html/ directory of your account. This location will be different if you are accessing your website through a subfolder or a subdomain so be careful with that.
Once you access the location of your vTiger installation, look for a file called config.inc.php. This file contains a large number of options for your website so review the carefully as there are comments for each one of them.
The ones that we will review are:
The database details of your website are included in the main configuration file of vTiger. Here you can see the hostname, the database name and user, as well as the password for access, etc. This information is important if you are creating a backup of your website or restoring such on your server.
$dbconfig['db_server'] = 'localhost' $dbconfig['db_port'] = ':3306' $dbconfig['db_username'] = 'example_vtgr' $dbconfig['db_password'] = 'p4ssw0rd' $dbconfig['db_name'] = 'example_vtgr' $dbconfig['db_type'] = 'mysqli' $dbconfig['db_status'] = 'true'
It is important to know the path to your website as well as the domain set for it. This information is also specified within the configuration file of your website. Make sure that you review this information carefully and ensure that it is properly set.
$site_URL = 'http://example.com/' // root directory path $root_directory = '/home/example/public_html/'