pkgsrc/www/php-sugarcrm/MESSAGE
2013-06-09 04:40:03 +00:00

60 lines
1.6 KiB
Text

===========================================================================
$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/
===========================================================================