WHMCS安装流程

whmcs安装环境:

1. PHP Version 5.6.0 or later
2. MySQL Version 5.2.0 or later
3. Curl Support (with SSL)
4. GD2 Image Library
5. PHP JSON support
6. PHP PDO (PDO & MySQL PDO)
7. PHP Memory Limit 64MB (minimum)
8. MySQL Strict Mode disabled
9. Ioncube Loader 10.1.0 or later

 

1 安装centos7

2 安装

MYSQL本身自带的maridb(5.5)能满足需要   yum -y install mariadb*

create database whmcs default charset utf8;  //创建数据库

set password for root@localhost=password(kkkkkk); //修改密码

 

 

php centos7自带为php5.4,需要手工安装(

PHP高版本,使用webtatic源来安装   rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

webtatic包括高版本的php55w php56w php70w php71w php72w

我们选择安装php72w

yum -y install php72w*

 

systemctl enable php-fpm

systemtctl start php-fpm

)

 

 

ioncube https://www.ioncube.com/loaders.php从官方下载最新版就可以了

文件解压后,复制7.2的两个so文件到/usr/lib64/php/modules中

cat /etc/php.d/ioncube.ini 
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.2.so

 

安装nginx

yum -y install nginx*

在/etc/nginx/nginx.conf中增加支持php模块

  server {
        listen       80;
        listen       [::]:80;
        server_name  _;
 ##       root         /usr/share/nginx/html;
        root         /var/www/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        error_page 404 /404.html;
        location = /404.html {
        }

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
        }
        location ~ \.php?.*$ {
        root           /var/www/html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
    }

 

WHMCS安装流程

上一篇:OO第四单元总结


下一篇:硬盘分区与速率