Skip to content

Commit 1a5d899

Browse files
fix me
1 parent d60630e commit 1a5d899

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+6154
-51
lines changed

000-default.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<VirtualHost *:80>
2+
ServerName localhost
3+
ServerAdmin info@javanile.org
4+
DocumentRoot /var/www/html/vtigercrm/
5+
ErrorLog /var/log/apache2/dev_error.log
6+
CustomLog /var/log/apache2/dev_access.log combined
7+
8+
<Directory /var/www/html/vtigercrm/>
9+
Options Indexes FollowSymLinks MultiViews
10+
AllowOverride All
11+
Order allow,deny
12+
allow from all
13+
Require all granted
14+
</Directory>
15+
</VirtualHost>
16+
17+
<VirtualHost *:443>
18+
ServerName localhost
19+
ServerAdmin info@javanile.org
20+
DocumentRoot /var/www/html/vtigercrm/
21+
ErrorLog /var/log/apache2/dev_error.log
22+
CustomLog /var/log/apache2/dev_access.log combined
23+
SSLEngine on
24+
SSLCertificateFile "/etc/apache2/ssl/localhost.crt"
25+
SSLCertificateKeyFile "/etc/apache2/ssl/localhost.pem"
26+
27+
<Directory /var/www/html/vtigercrm/>
28+
Options Indexes FollowSymLinks MultiViews
29+
AllowOverride All
30+
Order allow,deny
31+
allow from all
32+
Require all granted
33+
</Directory>
34+
</VirtualHost>

5.1.0/000-default.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<VirtualHost *:80>
2+
ServerName localhost
3+
ServerAdmin info@javanile.org
4+
DocumentRoot /var/www/html/vtigercrm/
5+
ErrorLog /var/log/apache2/dev_error.log
6+
CustomLog /var/log/apache2/dev_access.log combined
7+
8+
<Directory /var/www/html/vtigercrm/>
9+
Options Indexes FollowSymLinks MultiViews
10+
AllowOverride All
11+
Order allow,deny
12+
allow from all
13+
Require all granted
14+
</Directory>
15+
</VirtualHost>
16+
17+
<VirtualHost *:443>
18+
ServerName localhost
19+
ServerAdmin info@javanile.org
20+
DocumentRoot /var/www/html/vtigercrm/
21+
ErrorLog /var/log/apache2/dev_error.log
22+
CustomLog /var/log/apache2/dev_access.log combined
23+
SSLEngine on
24+
SSLCertificateFile "/etc/apache2/ssl/localhost.crt"
25+
SSLCertificateKeyFile "/etc/apache2/ssl/localhost.pem"
26+
27+
<Directory /var/www/html/vtigercrm/>
28+
Options Indexes FollowSymLinks MultiViews
29+
AllowOverride All
30+
Order allow,deny
31+
allow from all
32+
Require all granted
33+
</Directory>
34+
</VirtualHost>

5.1.0/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ ENV MYSQL_HOST=mysql
1010
ENV MYSQL_DATABASE=vtigercrm
1111

1212
RUN apt-get update \
13-
&& apt-get install -no-install-recommends -y zlib1g-dev libc-client-dev libkrb5-dev cron rsyslog \
13+
&& apt-get install --no-install-recommends -y zlib1g-dev libc-client-dev libkrb5-dev cron rsyslog \
1414
&& docker-php-ext-install zip \
1515
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
1616
&& docker-php-ext-install imap \
1717
&& docker-php-ext-install mysql mysqli pdo pdo_mysql \
1818
&& usermod -u 1000 www-data \
1919
&& groupmod -g 1000 www-data \
2020
&& echo "ServerName localhost" >> /etc/apache2/apache2.conf \
21-
&& mkdir /etc/apache2/ssl
21+
&& mkdir /etc/apache2/ssl \
2222
&& curl -o vt.tar.gz -SL "${VT_DOWNLOAD}" \
2323
&& tar -xzf vt.tar.gz \
2424
&& rm vt.tar.gz \

5.1.0/config.inc.php

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
<?php
2+
/*********************************************************************************
3+
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
4+
* ("License"); You may not use this file except in compliance with the
5+
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
6+
* Software distributed under the License is distributed on an "AS IS" basis,
7+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
8+
* the specific language governing rights and limitations under the License.
9+
* The Original Code is: SugarCRM Open Source
10+
* The Initial Developer of the Original Code is SugarCRM, Inc.
11+
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
12+
* All Rights Reserved.
13+
* Contributor(s): Francesco Bianco.
14+
********************************************************************************/
15+
16+
// Adjust error_reporting favourable to deployment.
17+
version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & E_ERROR) : error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & E_ERROR & ~E_STRICT); // PRODUCTION
18+
//ini_set('display_errors','on'); version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED) : error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); // DEBUGGING
19+
//ini_set('display_errors','on'); error_reporting(E_ALL); // STRICT DEVELOPMENT
20+
21+
include('vtigerversion.php');
22+
23+
// Get .ENV variables file
24+
/*
25+
include('vendor/vlucas/phpdotenv/src/Loader.php');
26+
include('vendor/vlucas/phpdotenv/src/Dotenv.php');
27+
$dotenv = new Dotenv\Dotenv(__DIR__);
28+
$dotenv->load();
29+
function env($variable, $default = null) {
30+
$value = getenv($variable);
31+
return $value ? $value : $default.'';
32+
}
33+
*/
34+
35+
// more than 8MB memory needed for graphics
36+
// memory limit default value = 64M
37+
ini_set('memory_limit','512M');
38+
39+
// show or hide calendar, world clock, calculator, chat and CKEditor
40+
// Do NOT remove the quotes if you set these to false!
41+
$CALENDAR_DISPLAY = 'true';
42+
$WORLD_CLOCK_DISPLAY = 'true';
43+
$CALCULATOR_DISPLAY = 'true';
44+
$CHAT_DISPLAY = 'true';
45+
$USE_RTE = 'true';
46+
47+
// helpdesk support email id and support name (Example: 'support@vtiger.com' and 'vtiger support')
48+
$HELPDESK_SUPPORT_EMAIL_ID = 'info@javanile.org';
49+
$HELPDESK_SUPPORT_NAME = 'your-support name';
50+
$HELPDESK_SUPPORT_EMAIL_REPLY_ID = $HELPDESK_SUPPORT_EMAIL_ID;
51+
52+
/* database configuration
53+
db_server
54+
db_port
55+
db_hostname
56+
db_username
57+
db_password
58+
db_name
59+
*/
60+
61+
$dbconfig['db_server'] = getenv('MYSQL_HOST') ?: 'mysql';
62+
$dbconfig['db_port'] = ':'.(getenv('MYSQL_PORT') ?: '3306');
63+
$dbconfig['db_username'] = getenv('MYSQL_USER') ?: 'root';
64+
$dbconfig['db_password'] = getenv('MYSQL_PASSWORD') ?: getenv('MYSQL_ROOT_PASSWORD');
65+
$dbconfig['db_name'] = getenv('MYSQL_DATABASE') ?: 'vtigercrm';
66+
$dbconfig['db_type'] = getenv('MYSQL_TYPE') ?: 'mysqli';
67+
$dbconfig['db_status'] = 'true';
68+
69+
// TODO: test if port is empty
70+
// TODO: set db_hostname dependending on db_type
71+
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
72+
73+
// log_sql default value = false
74+
$dbconfig['log_sql'] = false;
75+
76+
// persistent default value = true
77+
$dbconfigoption['persistent'] = true;
78+
79+
// autofree default value = false
80+
$dbconfigoption['autofree'] = false;
81+
82+
// debug default value = 0
83+
$dbconfigoption['debug'] = 0;
84+
85+
// seqname_format default value = '%s_seq'
86+
$dbconfigoption['seqname_format'] = '%s_seq';
87+
88+
// portability default value = 0
89+
$dbconfigoption['portability'] = 0;
90+
91+
// ssl default value = false
92+
$dbconfigoption['ssl'] = false;
93+
94+
$host_name = $dbconfig['db_hostname'];
95+
96+
$site_URL = getenv('VT_SITE_URL') ?: 'http://localhost:'.$_SERVER['SERVER_PORT'].'/';
97+
98+
// url for customer portal (Example: http://vtiger.com/portal)
99+
$PORTAL_URL = $site_URL.'/customerportal';
100+
// root directory path
101+
$root_directory = __DIR__.'/';
102+
103+
// cache direcory path
104+
$cache_dir = 'cache/';
105+
106+
// tmp_dir default value prepended by cache_dir = images/
107+
$tmp_dir = 'cache/images/';
108+
109+
// import_dir default value prepended by cache_dir = import/
110+
$import_dir = 'cache/import/';
111+
112+
// upload_dir default value prepended by cache_dir = upload/
113+
$upload_dir = 'cache/upload/';
114+
115+
// maximum file size for uploaded files in bytes also used when uploading import files
116+
// upload_maxsize default value = 3000000
117+
$upload_maxsize = 3145728;//3MB
118+
119+
// flag to allow export functionality
120+
// 'all' to allow anyone to use exports
121+
// 'admin' to only allow admins to export
122+
// 'none' to block exports completely
123+
// allow_exports default value = all
124+
$allow_exports = 'all';
125+
126+
// files with one of these extensions will have '.txt' appended to their filename on upload
127+
// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
128+
$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'exe', 'bin', 'bat', 'sh', 'dll', 'phps', 'phtml', 'xhtml', 'rb', 'msi', 'jsp', 'shtml', 'sth', 'shtm');
129+
130+
// full path to include directory including the trailing slash
131+
// includeDirectory default value = $root_directory..'include/
132+
$includeDirectory = $root_directory.'include/';
133+
134+
// list_max_entries_per_page default value = 20
135+
$list_max_entries_per_page = '20';
136+
137+
// limitpage_navigation default value = 5
138+
$limitpage_navigation = '5';
139+
140+
// history_max_viewed default value = 5
141+
$history_max_viewed = '5';
142+
143+
// default_module default value = Home
144+
$default_module = 'Home';
145+
146+
// default_action default value = index
147+
$default_action = 'index';
148+
149+
// set default theme
150+
// default_theme default value = blue
151+
$default_theme = 'softed';
152+
153+
// show or hide time to compose each page
154+
// calculate_response_time default value = true
155+
$calculate_response_time = true;
156+
157+
// default text that is placed initially in the login form for user name
158+
// no default_user_name default value
159+
$default_user_name = '';
160+
161+
// default text that is placed initially in the login form for password
162+
// no default_password default value
163+
$default_password = '';
164+
165+
// create user with default username and password
166+
// create_default_user default value = false
167+
$create_default_user = false;
168+
// default_user_is_admin default value = false
169+
$default_user_is_admin = false;
170+
171+
// if your MySQL/PHP configuration does not support persistent connections set this to true to avoid a large performance slowdown
172+
// disable_persistent_connections default value = false
173+
$disable_persistent_connections = false;
174+
175+
//Master currency name
176+
$currency_name = 'USA, Dollars';
177+
178+
// default charset
179+
// default charset default value = 'UTF-8' or 'ISO-8859-1'
180+
$default_charset = 'UTF-8';
181+
182+
// default language
183+
// default_language default value = en_us
184+
$default_language = 'en_us';
185+
186+
// add the language pack name to every translation string in the display.
187+
// translation_string_prefix default value = false
188+
$translation_string_prefix = false;
189+
190+
//Option to cache tabs permissions for speed.
191+
$cache_tab_perms = true;
192+
193+
//Option to hide empty home blocks if no entries.
194+
$display_empty_home_blocks = false;
195+
196+
//Disable Stat Tracking of vtiger CRM instance
197+
$disable_stats_tracking = false;
198+
199+
// Generating Unique Application Key
200+
$application_unique_key = '4fb0ce8557702081d08b32ae0c4e9849';
201+
202+
// trim descriptions, titles in listviews to this value
203+
$listview_max_textlength = 40;
204+
205+
// Maximum time limit for PHP script execution (in seconds)
206+
$php_max_execution_time = 0;
207+
208+
// Set the default timezone as per your preference
209+
$default_timezone = 'UTC';
210+
211+
/** If timezone is configured, try to set it */
212+
if (isset($default_timezone) && function_exists('date_default_timezone_set')) {
213+
@date_default_timezone_set($default_timezone);
214+
}
215+
216+
//Set the default layout
217+
$default_layout = 'v7';
218+
219+
include_once 'config.security.php';

5.1.0/php.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
display_startup_errors = On
2+
display_errors = On
3+
html_errors = On
4+
docref_root = 0
5+
docref_ext = 0
6+
log_errors = On
7+
short_open_tag = On
8+
error_log = /var/www/html/vtigercrm/logs/vtigercrm_error.log
9+
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
10+
;error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
11+
max_execution_time = 0
12+
memory_limit=2G

5.2.0-RC/000-default.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<VirtualHost *:80>
2+
ServerName localhost
3+
ServerAdmin info@javanile.org
4+
DocumentRoot /var/www/html/vtigercrm/
5+
ErrorLog /var/log/apache2/dev_error.log
6+
CustomLog /var/log/apache2/dev_access.log combined
7+
8+
<Directory /var/www/html/vtigercrm/>
9+
Options Indexes FollowSymLinks MultiViews
10+
AllowOverride All
11+
Order allow,deny
12+
allow from all
13+
Require all granted
14+
</Directory>
15+
</VirtualHost>
16+
17+
<VirtualHost *:443>
18+
ServerName localhost
19+
ServerAdmin info@javanile.org
20+
DocumentRoot /var/www/html/vtigercrm/
21+
ErrorLog /var/log/apache2/dev_error.log
22+
CustomLog /var/log/apache2/dev_access.log combined
23+
SSLEngine on
24+
SSLCertificateFile "/etc/apache2/ssl/localhost.crt"
25+
SSLCertificateKeyFile "/etc/apache2/ssl/localhost.pem"
26+
27+
<Directory /var/www/html/vtigercrm/>
28+
Options Indexes FollowSymLinks MultiViews
29+
AllowOverride All
30+
Order allow,deny
31+
allow from all
32+
Require all granted
33+
</Directory>
34+
</VirtualHost>

5.2.0-RC/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ ENV MYSQL_HOST=mysql
1010
ENV MYSQL_DATABASE=vtigercrm
1111

1212
RUN apt-get update \
13-
&& apt-get install -no-install-recommends -y zlib1g-dev libc-client-dev libkrb5-dev cron rsyslog \
13+
&& apt-get install --no-install-recommends -y zlib1g-dev libc-client-dev libkrb5-dev cron rsyslog \
1414
&& docker-php-ext-install zip \
1515
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
1616
&& docker-php-ext-install imap \
1717
&& docker-php-ext-install mysql mysqli pdo pdo_mysql \
1818
&& usermod -u 1000 www-data \
1919
&& groupmod -g 1000 www-data \
2020
&& echo "ServerName localhost" >> /etc/apache2/apache2.conf \
21-
&& mkdir /etc/apache2/ssl
21+
&& mkdir /etc/apache2/ssl \
2222
&& curl -o vt.tar.gz -SL "${VT_DOWNLOAD}" \
2323
&& tar -xzf vt.tar.gz \
2424
&& rm vt.tar.gz \

0 commit comments

Comments
 (0)