Skip to content

Instantly share code, notes, and snippets.

@linuxoracledev
Last active November 27, 2019 02:50
Show Gist options
  • Save linuxoracledev/d6aac25f0205de07aeb5297a400d6645 to your computer and use it in GitHub Desktop.
Save linuxoracledev/d6aac25f0205de07aeb5297a400d6645 to your computer and use it in GitHub Desktop.
How to Install vTiger CRM on Ubuntu 18.04 LTS with Uninstallation
##Install and Configure LAMP
#Update and Upgrades System
sudo apt-get update && upgrade
#install apache,mariadb, php and other required packages
apt-get install apache2 mariadb-server libapache2-mod-php7.2 php7.2 php7.2-cli php7.2-mysql php7.2-common php7.2-zip php7.2-mbstring php7.2-xmlrpc php7.2-curl php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-ldap php7.2-imap unzip wget
#Make some changes in php.ini file
###################################
#file_uploads = On
#allow_url_fopen = On
#memory_limit = 256M
#upload_max_filesize = 30M
#post_max_size = 40M
#max_execution_time = 60
#max_input_vars = 1500
##################################
#start and enable Apache and MariaDB service to start on boot time
systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb
#Securing MariaDB
mysql_secure_installation
#Login to MariaDB shell
mysql -u root -p
#Create a database, user and grant all the privileges for vTiger
CREATE DATABASE vtigerdb;
CREATE USER 'vtiger'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON vtigerdb.* TO 'vtiger'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
#Set Database Character set
ALTER DATABASE vtigerdb CHARACTER SET utf8 COLLATE utf8_general_ci;
#flush the privileges and exit from the MariaDB shell
FLUSH PRIVILEGES;
exit
##Install vTiger
#Download the latest version of vTiger CRM from their official website
wget https://excellmedia.dl.sourceforge.net/project/vtigercrm/vtiger%20CRM%207.1.0/Core%20Product/vtigercrm7.1.0.tar.gz
#extract the downloaded file
tar -xvzf vtigercrm7.1.0.tar.gz
#Copy the extracted directory to the Apache web root and give proper permissions
cp -r vtigercrm /var/www/html/
chown -R www-data:www-data /var/www/html/vtigercrm
chmod -R 755 /var/www/html/vtigercrm
##Configure Apache for vTiger CRM
#Create an apache virtual host file for vTiger CRM
nano /etc/apache2/sites-available/vtigercrm.conf
####################################################################
#Replace the domain name exampl.com with own domain name
#<VirtualHost *:80>
# ServerAdmin admin@example.com
# ServerName example.com
# DocumentRoot /var/www/html/vtigercrm/
#
# <Directory /var/www/html/vtigercrm/>
# Options FollowSymlinks
# AllowOverride All
# Require all granted
# </Directory>
#
# ErrorLog /var/log/apache2/vtigercrm_error.log
# CustomLog /var/log/apache2/vtigercrm_access.log combined
#</VirtualHost>
###################################################################
#Disable the Apache default virtual host file and enable vTiger virtual host file
a2ensite vtigercrm
a2dissite 000-default
#enable Apache rewrite module and restart Apache service
a2enmod rewrite
systemctl restart apache2
#Check the status of Apache service
systemctl status apache2
#Access vTiger CRM
#http://example.com or http://localhost
#Then follow on screen instruction to install and configuring vTiger
#done
##Uninstallation
#stop the vtiger crm from <vtigercrm home>/bin directory:
sh stopvtiger.sh
#uninstall vtiger crm
sh uninstallvtiger.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment