Zurmo is one of open source CRM application based on PHP. Current application isn't supported for PHP 7 environment because some application scripts still implement unsupported (obsolete) PHP function such as
First, we must change some scripts which still implement unsupported PHP 7 functions. The scripts are:
mysql_connect
, mysql_fetch_array
, etc.First, we must change some scripts which still implement unsupported PHP 7 functions. The scripts are:
- app\protected\commands\tests\unit\DatabaseCommandTest.php
- app\protected\core\tests\unit\DatabaseCompatibilityUtilTest.php
- app\protected\core\utils\DatabaseCompatibilityUtil.php
You can download the scripts from HERE. Second, if we run Nginx server, we can use this following configuration.
server {
listen 443 ssl;
root /path/to/zurmo;
index index.php index.html;
server_name yourdomain.com;
ssl_certificate /pat/to/yourdomain.crt;
ssl_certificate_key /path/to/yourdomain.key;
access_log /var/log/nginx/yourdomain-access.log;
error_log /var/log/nginx/yourdomain-error.log error;
location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#let yii catch the calls to unexising PHP files
set $fsn /index.php;
if (-f $document_root$fastcgi_script_name){
set $fsn $fastcgi_script_name;
}
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fsn;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fsn;
}
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}
Comments
Post a Comment