sudo or as root .apt-get install apache2 apache2-doc/etc/init.d/apache2 start127.0.0.1 127.0.0.1 , if everything is in order, a corresponding message will appear, for example: “It works!” .cd /path_were_the_vtiguer_source_istar zxvf vtigercrm-5.0.4.tar.gzapt-get install mysql-server mysql-clientapt-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 imagemagickcd vtigercrm/cp -vr * /var/wwwchown www-data -vR /var/wwwrm -rf /var/www/index.html/etc/init.d/apache2 restart127.0.0.1 127.0.0.1 or 127.0.0.1/install.php 127.0.0.1/install.php perform the necessary settings.php.ini . File path: /etc/php5/apache2/php.ini . You can find / -name php.ini file with the command: find / -name php.ini . After making changes, you need to restart Apache: /etc/init.d/apache2 restart . Options to install:Safe 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.cnf (or my.ini ) file. File path: /etc/mysql/my.cnf . After making the changes, you must restart the MySQL server: /etc/init.d/mysql restart . Required 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 file (file path: /var/www/modules/CustomView ): Replace the code:if($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;
Source: https://habr.com/ru/post/58556/
All Articles