VtigerCRM Automated Script on Ubuntu


Setting Variables & Paths

MySQL ROOT Password

Updating Dependencies in UBUNTU
apt-get update
apt-get -y upgrade
apt-get -y remove sendmail fetchmail procmail
apt-get -y install binutils cpp flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev gcc libpng12-dev libjpeg62-dev libfreetype6-dev libssl-dev libxml2-dev libxml2 g++ gawk postfix libsasl2-modules
apt-get -y install apache2 php5 libapache2-mod-php5
apt-get -y install mysql-server mysql-client php5-mysql php5-gd php5-imap

Downloading Vtigercrm in document root where /var/www/html
wget http://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%206.3.0/Core%20Product/vtigercrm6.3.0.tar.gz/download
mv download vtigercrm-6.3.0.tar.gz
tar zxfv vtigercrm-6.3.0.tar.gz
rm vtigercrm-6.3.0.tar.gz
chown -R $WEBGROUP:$WEBUSER vtigercrm/
mv vtigercrm vtigerCRM

Creating MySQL Database
mysql -u root -p$sqlpass -e “create database databasename default character set utf8 default collate utf8_general_ci”;
mysql -u root -p$sqlpass -e “create database vtigerCRM”;
mysql -u root -p$sqlpass -e “grant all on vtigerCRM.* TO vtigerCRM@localhost”;
mysql -u root -p$sqlpass -e “flush privileges”;

Reading Input to Particular path
sed -i ‘s/display_errors = Off/display_errors = on/g’  /etc/php5/apache2/php.ini
sed -i ‘s/max_execution_time = 30/max_execution_time = 600/g’  /etc/php5/apache2/php.ini
sed -i ‘s/error_reporting = E_ALL & ~E_DEPRECATED/error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED/g’  /etc/php5/apache2/php.ini
sed -i ‘s/allow_call_time_pass_reference = Off/allow_call_time_pass_reference = on/g’  /etc/php5/apache2/php.ini
sed -i ‘s/log_errors = On/log_errors = off/g’  /etc/php5/apache2/php.ini

mv $WEBROOT/vtigerCRM/htaccess.txt $WEBROOT/vtigerCRM/.htaccess

Re-Starting the Services
/etc/init.d/apache2 restart
/etc/init.d/mysql restart

Installation is Completed
Please Check the VtigerCRM http://Ip-address/vtigerCRM

Path Details

Output Details
VtigerCRM Installation & Configuration

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s