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
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
mkdir /usr/local/composer cd /usr/local/composer vi composer.json
{ "require-dev": { "phpunit/phpunit": "^4.2.0", "phpunit/php-invoker": "^1.1.0", "phpunit/dbunit": "^1.3.0", "phpunit/phpunit-selenium": "^1.4.0", "phpunit/phpunit-mock-objects": "^2.2.0", "phpunit/phpunit-story": "^1.0.0", "phpunit/phpunit-skeleton-generator": "^2.0.0", "phpunit/php-code-coverage": "~2.0" } }
composer install
mkdir /usr/local/selenium cd /usr/local/selenium wget https://goo.gl/Lyo36k mv Lyo36k selenium-server-standalone-3.0.1.jar java -jar selenium-server-standalone-3.0.1.jar
需要設定開機自動啟動
vi /etc/httpd/conf/httpd.conf
: LoadModule deflate_module modules/mod_deflate.so : ServerName zurmo.ichiayi.com:80 :
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 :
vi /etc/php.ini
[PHP] : include_path = ".:/usr/share/pear:/usr/share/php:/usr/local/composer/vendor/bin" : max_execution_time = 300 : memory_limit = 256M : post_max_size = 20M : file_uploads = On : upload_max_filesize = 20M : [Date] : date.timezone = Asia/Taipei
service mysqld start /usr/bin/mysqladmin -u root password 'root-password'
service httpd start
service memcached start
chkconfig httpd on chkconfig mysqld on chkconfig memcached on
vi /var/www/html/t.php
<?php phpinfo();
透過瀏覽器讀取 http://xxx.xxx.xxx.xxx/t.php 確認以下幾項是否有存在
rm /var/www/html/t.php
cd /var/www/html/ wget http://build.zurmo.com/downloads/zurmo-stable-3.2.5.d5d5f53cc259.tar.gz tar -zxvf zurmo-stable-3.2.5.d5d5f53cc259.tar.gz rm zurmo-stable-3.2.5.d5d5f53cc259.tar.gz chown -R apache:apache zurmo
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
可能是 SELinux 造成, 可以關閉 SELinux 或是將 httpd_can_network_memcache –> off 改成 on
setsebool -P httpd_can_network_memcache true
$instanceConfig['components']['request']['hostInfo'] = 'http://192.168.0.241';