Skip to content

Instantly share code, notes, and snippets.

@LinauxTerminology
Last active January 18, 2021 09:58
Show Gist options
  • Select an option

  • Save LinauxTerminology/569219bbc19856199a50c2146f72a576 to your computer and use it in GitHub Desktop.

Select an option

Save LinauxTerminology/569219bbc19856199a50c2146f72a576 to your computer and use it in GitHub Desktop.
Install vTiger CRM on Ubuntu 18.04 LTS
#!/bin/sh
sudo -i
apt-get update -y
apt-get upgrade -y
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 -y
nano /etc/php/7.2/apache2/php.ini
display_errors: On
error_reporting: On
# Find this lines by crel+q and make the following changes:
file_uploads = On
allow_url_fopen = On
memory_limit = 1024M
upload_max_filesize = 1024M
post_max_size = 1024M
max_execution_time = 600
max_input_vars = 15000
# for save press ctrl+x then press "y" then hit enter
systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl restart mariadb
sudo mysql -u root -p
CREATE DATABASE tigercrm DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON tigercrm.* TO 'utiger'@'localhost' IDENTIFIED BY 'tig@r2020';
use tigercrm;
FLUSH PRIVILEGES;
EXIT;
rm -rf /var/www/html/
mkdir /var/www/html/
wget https://excellmedia.dl.sourceforge.net/project/vtigercrm/vtiger%20CRM%207.1.0/Core%20Product/vtigercrm7.1.0.tar.gz
tar -xvzf vtigercrm7.1.0.tar.gz
cp -r vtigercrm /var/www/html/
chown -R www-data:www-data /var/www/html/vtigercrm
chmod -R 755 /var/www/html/vtigercrm
# create an apache virtual host file for vTiger CRM. You can create it with the following command:
nano /etc/apache2/sites-available/vtigercrm.conf
# Add the following lines:
<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>
# for save press ctrl+x then press "y" then hit enter
a2ensite vtigercrm
a2dissite 000-default
a2enmod rewrite
systemctl restart apache2
systemctl status apache2
# brows URL http://example.com or localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment