Here are step to install Zurmo CRM into Ubuntu 16.04 Xenial Xerus.
Since Ubuntu 16.04 doesn’t have php5, we would like to install PHP5
1 2 3 4 | sudo apt-get install software-properties-common sudo apt-get purge `dpkg -l | grep php| awk ‘{print $2}’ |tr "\n" " "` sudo add-apt-repository ppa:ondrej/php sudo apt-get update |
1. Install php5.6
1 | sudo apt-get install php5.6-dev php5.6-mysql php5.6-gd php5.6-imap php5.6-mcrypt php5.6-fpm php5.6-mbstring php5.6-curl php5.6-xml |
2. Now we need to switch from php7 to php5.6 by:
1 | sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart ; echo 1 | sudo update-alternatives –config php |
3. Change listener in “/etc/php/5.6/fpm/pool.d/www.conf”, take a look on listen and change
1 | listen = /var/run/php5-fpm.sock |
4. Setup Zurmo NGINX sites-enabled configuration
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 | server { listen 80; server_name zurmo.yodiaditya.com; root /var/zurmo; index index.php; location / { try_files $uri $uri/ /index.php?$args; } location ~ ^/(protected|framework|themes/\w+/views) { deny all; } location ~ /\. { deny all; access_log off; log_not_found off; } location = /favicon.ico { log_not_found off; access_log off; } location ~ \.(js|css|png|jpg|gif|ico|pdf|zip|rar)$ { try_files $uri =404; } location ~ \.php { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_send_timeout 3800; fastcgi_read_timeout 3800; fastcgi_connect_timeout 2800; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } |
5. Change Mysql Configuration at “/etc/mysql/mysql.conf.d/mysqld.cnf” :
1 2 3 4 5 6 7 | 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 |
6. Now restart the services
1 2 | sudo service php5.6-fpm restart sudo service nginx restart |