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

把大淘客下载的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那样可以自己登陆程序后台,大淘客只是加载了网页,无后台。

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

猜你喜欢

转载自blog.csdn.net/myathappy/article/details/88378423
今日推荐