开源电商商城部署笔记(包括遇到的问题解决)

部署前:

  安装yum源

安装 EPEL 源。
yum install epel-release

安装remi 源
CentOS 6:rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-6.rpm

CentOS 7:rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm

  需要开放端口: 80 443 20002-20010

1.基础环境

 >运行环境要求PHP7.1+。

 >yum install php73-php.x86_64 php73-php-bcmath.x86_64 php73-php-cli.x86_64 php73-php-common.x86_64 php73-php-fpm.x86_64 php73-php-gd.x86_64 php73-php-json.x86_64 php73-php-mbstring.x86_64 php73-php-mysqlnd.x86_64 php73-php-oci8.x86_64 php73-php-pdo.x86_64 php73-php-pecl-mysql.x86_64 php73-php-process.x86_64 php73-runtime.x86_64 php73-php-xml.x86_64

2.代码部署参考官方文档

  https://help.crmeb.net/crmeb_30/1248068

  

3.服务跑起来以后需要关注:

  1)定时任务:https://help.crmeb.net/crmeb_30/1248074

  2)长链接:https://help.crmeb.net/crmeb_30/1248075

 

问题汇总:

1.php-oci8 - libclntsh.so.19.1:无法打开共享对象文件  参考文档:https://cloud.tencent.com/developer/ask/213567/answer/329300

需要安装Oracle Client支持,下载路径https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html 下载后解压即可

临时生效方法:export LD_LIBRARY_PATH=/usr/local/instantclient_19_6

重启后依然生效方法:echo "/usr/local/instantclient_19_6" > /etc/ld.so.conf.d/instantclient_19_6.conf 执行ldconfig生效。(locate libclntsh.so.19.1 可以查看是否支持)

/opt/remi/php73/root/bin/php -m  查看生效的模块

 

2.workerman 在centos下报PHP Fatal error: Call to undefined function Workerman\posix_getpid

解决办法:

   >posix在下面这个包中php-process,安装组件 php73-php-process.x86_64

3. 公众号关键词回复故障,查看日志报错:Call to undefined function EasyWeChat\Support\simplexml_load_string()[/usr/local/nginx/html/pd/CRMEB/crmeb/vendor/overtrue/wechat/src/Support/XML.php:42]

解决办法:

     >缺少组件 php73-php-xml.x86_64,安装后重启php73-php-fpm即可

posted @ 2020-05-26 15:08  南非波波  阅读(289)  评论(0编辑  收藏  举报