差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:zurmo [2016/10/19 12:03] – jonathan | tech:zurmo [2019/02/23 12:02] (目前版本) – [常見問題] jonathan_tsai | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== CentOS 7 安裝 Zurmo CRM ====== | ||
+ | * 安裝環境 : CentOS Linux release 7.5.1804 (Core) | ||
+ | * 安裝版本 : Zurmo 3.2.5 (zurmo-stable-3.2.5.d5d5f53cc259.tar.gz) | ||
+ | ===== 安裝程序 ===== | ||
+ | * 依據[[http:// | ||
+ | * Apache >= 2.2.1 | ||
+ | * PHP >= 5.3.3 | ||
+ | * MySQL Server >= 5.1 | ||
+ | * CentOS 7 內版本都能符合,不需要另外升級 | ||
+ | * 安窗所有套件 <code sh> | ||
+ | yum install epel-release | ||
+ | yum install wget httpd mariadb-server memcached java php php-mbstring pcre php-soap php-imap php-pdo php-mysql php-gd php-pecl-memcache php-ldap php-phpunit-PHPUnit mercurial php-pear php-devel httpd-devel pcre-devel php-pecl-apcu | ||
+ | yum install php-mcrypt --enablerepo=centosplus | ||
+ | </ | ||
+ | * 安裝 composer <code sh> | ||
+ | curl -sS https:// | ||
+ | mv composer.phar / | ||
+ | </ | ||
+ | * 設定與下載 composer 元件< | ||
+ | mkdir / | ||
+ | cd / | ||
+ | vi composer.json | ||
+ | </ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | composer install | ||
+ | </ | ||
+ | * 安裝 Selenium Server< | ||
+ | mkdir / | ||
+ | cd / | ||
+ | wget https:// | ||
+ | mv Lyo36k selenium-server-standalone-3.0.1.jar | ||
+ | java -jar selenium-server-standalone-3.0.1.jar | ||
+ | </ | ||
+ | * 設定 Apache <code sh> | ||
+ | vi / | ||
+ | : | ||
+ | LoadModule deflate_module modules/ | ||
+ | : | ||
+ | ServerName zurmo.ichiayi.com: | ||
+ | : | ||
+ | </ | ||
+ | * 設定 MySQL <code sh> | ||
+ | vi /etc/my.cnf | ||
+ | </ | ||
+ | [mysqld] | ||
+ | : | ||
+ | # Zurmo Setting | ||
+ | character-set-server=utf8 | ||
+ | collation-server=utf8_unicode_ci | ||
+ | default-storage-engine=INNODB | ||
+ | max_sp_recursion_depth=100 | ||
+ | max_allowed_packet = 20M | ||
+ | thread_stack = 512K | ||
+ | optimizer-search-depth = 0 | ||
+ | skip-log-bin | ||
+ | : | ||
+ | </ | ||
+ | * 設定 php <code sh> | ||
+ | vi / | ||
+ | </ | ||
+ | [PHP] | ||
+ | : | ||
+ | include_path = " | ||
+ | : | ||
+ | max_execution_time = 300 | ||
+ | : | ||
+ | memory_limit = 256M | ||
+ | : | ||
+ | post_max_size = 20M | ||
+ | : | ||
+ | file_uploads = On | ||
+ | : | ||
+ | upload_max_filesize = 20M | ||
+ | |||
+ | |||
+ | : | ||
+ | [Date] | ||
+ | : | ||
+ | date.timezone = Asia/Taipei | ||
+ | |||
+ | </ | ||
+ | * 第一次啟動 MySQL 與設定 root 密碼< | ||
+ | service mysqld start | ||
+ | / | ||
+ | </ | ||
+ | * 第一次啟動 Apache< | ||
+ | service httpd start | ||
+ | </ | ||
+ | * 第一次啟動 memcached< | ||
+ | service memcached start | ||
+ | </ | ||
+ | * 設定自動啟動 Apache 與 MySQL、memcached <code sh> | ||
+ | chkconfig httpd on | ||
+ | chkconfig mysqld on | ||
+ | chkconfig memcached on | ||
+ | </ | ||
+ | * 確認 php 設定是否正確< | ||
+ | vi / | ||
+ | <?php | ||
+ | phpinfo(); | ||
+ | </ | ||
+ | * apache2handler -> Loaded Modules -> mod_deflate | ||
+ | * date -> Default timezone -> Asia/ | ||
+ | * Core -> memory_limit -> 256M | ||
+ | * Core -> file_uploads -> On | ||
+ | * Core -> upload_max_filesize -> 20M | ||
+ | * Core -> post_max_size -> 20M | ||
+ | * Core -> max_execution_time -> 300 | ||
+ | * Core -> include_path -> .:/ | ||
+ | * PHP Variables -> _SERVER[" | ||
+ | * pcre -> PCRE (Perl Compatible Regular Expressions) Support | ||
+ | * SPL -> SPL support -> enabled | ||
+ | * ctype -> ctype functions -> enabled | ||
+ | * soap -> Soap Client -> enabled | ||
+ | * soap -> Soap Server -> enabled | ||
+ | * curl -> cURL support -> enabled | ||
+ | * curl -> cURL Information -> 7.19.7 | ||
+ | * mbstring -> Multibyte Support -> enabled | ||
+ | * imap -> IMAP c-Client Version -> 2007e | ||
+ | * PDO -> PDO support -> enabled | ||
+ | * pdo_mysql -> PDO Driver for MySQL -> enabled | ||
+ | * zip -> Zip -> enabled | ||
+ | * gd -> GD Support -> enabled | ||
+ | * 測試沒問題就移除 t.php< | ||
+ | rm / | ||
+ | </ | ||
+ | * 下載與安裝 Zurmo <code sh> | ||
+ | cd / | ||
+ | wget http:// | ||
+ | tar -zxvf zurmo-stable-3.2.5.d5d5f53cc259.tar.gz | ||
+ | rm zurmo-stable-3.2.5.d5d5f53cc259.tar.gz | ||
+ | chown -R apache: | ||
+ | </ | ||
+ | * 直接連入網頁 http:// | ||
+ | Database host <- localhost | ||
+ | Database admin username <- root | ||
+ | Database admin password <- root-password | ||
+ | Database name <- zurmo | ||
+ | Database username <- zurmo | ||
+ | Database password <- zurmo-password | ||
+ | Memcache host <- localhost | ||
+ | Memcache port number <- 11211 | ||
+ | </ | ||
+ | |||
+ | <note important> | ||
+ | Message(Memcached): | ||
+ | |||
+ | 可能是 SELinux 造成, 可以關閉 SELinux 或是將 httpd_can_network_memcache --> off 改成 on<code sh> | ||
+ | setsebool -P httpd_can_network_memcache true | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 更版程序 ===== | ||
+ | * 參考 - http:// | ||
+ | * 先將目前的版本備份起來, | ||
+ | |||
+ | |||
+ | ===== 常見問題 ===== | ||
+ | * Q : 如何更改成新的網址, | ||
+ | * A : 參考網址 - http:// | ||
+ | - 編輯 app/ | ||
+ | - 修改 < | ||
+ | |||
+ | ===== 參考網址 ===== | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | |||
+ | {{tag> |