Install vTiger CRM on Ubuntu 8.10
Installing vTiger CRM version 5.0.4 on Ubuntu 8.10 (intrepid) was given to me with a fight. Here's how I did it.
All commands are executed either as
Install the Apache web server:
Launch Apache:
Check the operation of Apache:
In the browser at the address
Go to the directory with the downloaded vTiger archive:
Unzip the archive with the program:
Install MySQL (during the installation process you will need to enter the MySQL administrator password):
Install PHP and other necessary packages:
Go to the directory with the vTiger files:
Copy vTiger to the root directory of the server:
Change access rights, giving Apache the ability to make the necessary changes:
Delete the Apache test page:
Restart Apache:
Configure vTiger
in the browser at the address
In addition to choosing the necessary options during the vTiger configuration process, it was necessary to make changes to the file
All commands are executed either as
sudoor how root. Install the Apache web server:
apt-get install apache2 apache2-docLaunch Apache:
/etc/init.d/apache2 startCheck the operation of Apache:
In the browser at the address
127.0.0.1, if everything is in order, a corresponding message will appear, for example: “It works!” . Go to the directory with the downloaded vTiger archive:
cd /path_were_the_vtiguer_source_isUnzip the archive with the program:
tar zxvf vtigercrm-5.0.4.tar.gzInstall MySQL (during the installation process you will need to enter the MySQL administrator password):
apt-get install mysql-server mysql-clientInstall PHP and other necessary packages:
apt-get install libapache2-mod-php5 libapache2-mod-perl2apt-get install php5 php5-cli php5-common php5-curl php5-dev php5-gd php5-imap php5-ldapapt-get install php5-mhash php5-mysql php5-odbc curl libwww-perl imagemagickGo to the directory with the vTiger files:
cd vtigercrm/Copy vTiger to the root directory of the server:
cp -vr * /var/wwwChange access rights, giving Apache the ability to make the necessary changes:
chown www-data -vR /var/wwwDelete the Apache test page:
rm -rf /var/www/index.htmlRestart Apache:
/etc/init.d/apache2 restartConfigure vTiger
in the browser at the address
127.0.0.1or 127.0.0.1/install.phpmake the necessary settings. In addition to choosing the necessary options during the vTiger configuration process, it was necessary to make changes to the file
php.ini. The path to the file: /etc/php5/apache2/php.ini. Find the file using the following command: find / -name php.ini. After making changes, you must restart the Apache: /etc/init.d/apache2 restart. Options to be set:
Also, for the correct support of the UTF-8 encoding, it was required to configure the MySQL server by making changes to the file (orSafe Mode Off
Display Errors On
File Uploads On
Register Globals Off
Max Execution Time 600
output_buffering = On
Change the memory limit = 64M
error_reporting = E_ALL & ~E_NOTICE
allow_call_time_pass_reference = On
log_errors = Off
short_open_tag = Onmy.cnfmy.ini) The path to the file: /etc/mysql/my.cnf. After making changes, you must restart the MySQL server: /etc/init.d/mysql restart. Required code:
And it all worked!
P. S. You can change the password of the MySQL server administrator with the command:
PPS To configure the filter to show contacts by birthday, you need to make changes to the file (path to file:) : Replace code:
with code:[mysql]
default-character-set=utf8
[mysqld]
collation_server=utf8_unicode_ci
character_set_server=utf8
default-character-set=utf8
init_connect='SET collation_connection = utf8_general_ci'
init_connect='SET NAMES utf8'mysqladmin -u root password new_passwordCustomView.php/var/www/modules/CustomViewif($startdate != "" && $enddate != "")
{
$columns = explode(":",$filtercolumn);
$stdfiltersql = $columns[0].".".$columns[1]." between '".$startdate." 00:00:00' and '".$enddate." 23:59:00'";
}
}
return $stdfiltersql;if($startdate != "" && $enddate != "")
{
$columns = explode(":",$filtercolumn);
if ($columns[1] != 'birthday')
$stdfiltersql = $columns[0].".".$columns[1]." between '".$startdate." 00:00:00' and '".$enddate." 23:59:00'";
else
$stdfiltersql = "DATE_FORMAT(".$columns[0].".".$columns[1].", '%m%d') between DATE_FORMAT('".$startdate."', '%m%d') and DATE_FORMAT('".$enddate."', '%m%d')";
}
}
return $stdfiltersql;