Skip to content

Instantly share code, notes, and snippets.

@ispguru
Last active November 21, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ispguru/c2e572b151307b400625359bc464d519 to your computer and use it in GitHub Desktop.
Save ispguru/c2e572b151307b400625359bc464d519 to your computer and use it in GitHub Desktop.
How to Install vTiger CRM on Ubuntu 18.04 LTS
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo 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
sudo nano /etc/php/7.2/apache2/php.ini
# insert those text & replace
file_uploads = On
allow_url_fopen = On
memory_limit = 1024M
upload_max_filesize = 1024M
post_max_size = 1024M
max_execution_time = 6000
max_input_vars = 15000
sudo systemctl start apache2
sudo systemctl start mariadb
sudo systemctl enable apache2
sudo systemctl enable mariadb
sudo mysql_secure_installation
sudo mysql -u root -p
# create mysql/mariadb Db
sudo mysql -u root -p
CREATE DATABASE badhon DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON badhon.* TO 'user'@'localhost' IDENTIFIED BY 'C@ctok20';
FLUSH PRIVILEGES;
EXIT;
sudo wget https://excellmedia.dl.sourceforge.net/project/vtigercrm/vtiger%20CRM%207.1.0/Core%20Product/vtigercrm7.1.0.tar.gz
sudo tar -xvzf vtigercrm7.1.0.tar.gz
sudo cp -r vtigercrm /var/www/html/
sudo chown -R www-data:www-data /var/www/html/vtigercrm
sudo chmod -R 755 /var/www/html/vtigercrm
# Configure Apache for vTiger CRM
sudo nano /etc/apache2/sites-available/vtigercrm.conf
# add & save
<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>
sudo a2ensite vtigercrm
sudo a2dissite 000-default
a2enmod rewrite
sudo sudo systemctl restart apache2
sudo sudo systemctl restart reload
sudo sudo systemctl restart status
# open your web browser and type the URL localhost or ip address
firefox http://localhost/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment