安装大淘客出现的两个问题和解决方法

本文详细介绍了在遇到“mbstring未开启”和“cache无效”问题时,如何通过安装mbstring扩展和设置缓存目录权限来解决大淘客index.php文件在网站部署中遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

把大淘客下载的index.php文件下载到本地之后,要上传到网站的根目录,此时访问一般会出现两个问题

cms 版本:8
php 版本:5.4.45
curl 已经开启 
mbstring 未开启,请先开启mbstring扩展,否则无法运行 
cache 无效,请先设置目录读写权限,请联系您的空间或者服务器提供商

解决方法:

第一个问题:“mbstring 未开启,请先开启mbstring扩展,否则无法运行”

解决方法:两个命令

yum install php-mbstring

service httpd restart

运行的具体过程如下:

[root@VM_45_133_centos ~]# yum install php-mbstring
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-49.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================
 Package                Arch             Version                  Repository    Size
=====================================================================================
Installing:
 php-mbstring           x86_64           5.3.3-49.el6             os           460 k

Transaction Summary
=====================================================================================
Install       1 Package(s)

Total download size: 460 k
Installed size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
php-mbstring-5.3.3-49.el6.x86_64.rpm                          | 460 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-mbstring-5.3.3-49.el6.x86_64                                  1/1 
  Verifying  : php-mbstring-5.3.3-49.el6.x86_64                                  1/1 

Installed:
  php-mbstring.x86_64 0:5.3.3-49.el6                                                 

Complete!
[root@VM_45_133_centos ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]

 

第二个问题:cache 无效,请先设置目录读写权限,请联系您的空间或者服务器提供商

解决方法:

Linux php根目录下:
1: cd /var/www/html/
2:mkdir cache
3:chmod 777 cache
4:重新访问连接下载数据即可

 

运行过程如下:

[root@VM_45_133_centos ~]# cd /var/www/html/
[root@VM_45_133_centos html]# mkdir cache
[root@VM_45_133_centos html]# chmod 777 cache

后记:

大淘客我一开始以为是一个离线的安装程序包,而且大淘客网站下载下来的只是个index.php文件,我以为index.php文件放到网站根目录之后可以自己下载网站完整的程序,结果不是我想的那样。index.php是相当于把大淘客推荐的内容做了一份镜像到自己的网站。这相当于是为别人做嫁衣。不向discuz那样可以自己登陆程序后台,大淘客只是加载了网页,无后台。

我使用的是腾讯云虚拟实验室的主机试了一下,结果是下面这样的。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值