summaryrefslogtreecommitdiff
path: root/www/php-sugarcrm/MESSAGE
blob: 642ac6b310ef8824ed05beeab9e40cd8b053e7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
===========================================================================
$NetBSD: MESSAGE,v 1.2 2013/06/09 04:40:03 ryoon Exp $

To use SugerCRM with Apache 2.4 and PHP 5.4, you will need to perform
the following steps.

1. Install www/apache24 and www/ap-php

2. Setup PHP. At least, ${PREFIX}/etc/php.ini should have date.timezone line.
   If your machine are located in Tokyo, Japan, you should get the following.

	# cat ${PREFIX}/etc/php.ini | grep date.timezone
	date.timezone ="Asia/Tokyo"

3. ${PREFIX}/etc/php.ini should have the following too. This should be 7M
   or higher.

	# cat ${PREFIX}/etc/php.ini | grep upload_max_filesize
	upload_max_filesize = 7M

4. Install MySQL database server.

	# cd databases/mysql55-server
	# make install

5. Start MySQL server, and setup MySQL server

	# ${RCD_SCRIPTS_DIR}/mysqld start
	And follow messages.

6. Be sure to have the following lines in ${PREFIX}/etc/php.ini.

	extension=zip.so
	extension=zlib.so
	extension=mbstring.so
	extension=mysql.so
	extension=posix.so
	extension=gd.so
	extension=imap.so
	extension=json.so
	extension=curl.so

7. Be sure to have the following lines in ${PREFIX}/etc/httpd/httpd.conf

	DocumentRoot "${PREFIX}/share/sugercrm"
	LoadModule php5_module lib/httpd/mod_php5.so
	AddType application/x-httpd-php .php
	<Directory ${PREFIX}/share/sugercrm>
                DirectoryIndex index.php
                Options All
                Allow from All
                AllowOverride All
                Require all granted
	</Directory>

8. Start Apache httpd
	# ${RCD_SCRIPTS_DIR}/apache start

9. Access http://localhost/
===========================================================================