zoukankan      html  css  js  c++  java
  • 安装vmall5:从ebak恢复数据,需要配置php.ini

    上传vmall5源码到服务器后访问ebak目录,发现网页不显示。用xshell登录到服务器手动执行ebak/index.php查看输出,发现这样一个错误:

    PHP Parse Error: syntax error, unexpected $end ,blablabla...

    这是因为php没有开启短标签。在php.ini中找到并设定:

    short_open_tag = On

    另一个错误,直接php解释执行根目录的index.php发现说数据库没有指定。那就到报错的文件,手动指定:

    vim /var/www/html/app.hzyuanjian.cn/app/frontend.base.php +565
    $mod->db->query('use my_database');

    第三个错误是时区问题。依然执行根目录的index.php,提示说

    PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /var/www/html/xxxxxx/eccore/controller/message.base.php on line 180

    解决办法:依旧是修改php.ini,找到并修改为:

    date.timezone = "Asia/Shanghai"

    然后,重启httpd进程:

    service httpd restart

  • 相关阅读:
    忠告20岁的年轻人
    mac电脑好用的工具总结
    idea 配置
    mac 安装mysql5.7.28附安装包
    国内外优秀网站收集
    MySql 数据库、数据表操作
    Java 高效代码50例
    Mac 修改版本号
    sql 语句系列(删库跑路系列)[八百章之第七章]
    sql 语句系列(更新系列)[八百章之第六章]
  • 原文地址:https://www.cnblogs.com/zjutzz/p/5708434.html
Copyright © 2011-2022 走看看