在论坛学习有一段时间了,今天下午整理了一下思路,开始动手操作,先弄了个域名安装prosper202,折腾了一个晚上。过程中遇到两个问题,最终总算解决了,记录一下,希望对同样问题的坛友有所帮助:8 i# k' L6 I" Z/ x C
; E3 u* J0 @- _$ Z$ s. I
我用的是linode的VPS,centos系统,安装的国产wdcp面板(自带PHP+APACH+NIGINX+MYSQL环境),所有都是按照默认设置。 . B( r& Q( F% f7 |8 O, C3 g, [$ {" Z) r 问题一、上传prosper202程序到根目录,打开任何页面都是空白的,无法安装。 : B/ Z9 y; v& ^7 L6 F D& P ?3 ?! a, D5 | [7 z! o
这个我在用其它程序时也遇到过,当时未找到解决办法,今天也是几经周折找到解决方案:' U8 A3 J/ v+ P+ k! I: ~
1. 修改php.ini配置:short_open_tag = On 0 z! m& C) s* M. {' v! `6 Y2. 重启web
这个可能是由于prosper202程序做得比较早,我看了代码有很多地方都是使用<? ?>z作为代码标志,而新版本的PHP已经规范使用<?php ?>,开启short_open_tag就相当于兼容了<? ?>代码标志,这个就不深入研究了。 8 S: ~# Z+ R3 a$ R4 V' j9 | R: e; D& z E7 \ 问题二、安装好之后,登录后台,出现以下错误提示: I, S7 n. T6 r" J+ C7 _8 V! R- ?7 M, v, ]
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 ‘UTC’ for ’8.0/no DST’ instead in , x2 V7 ~% J# X# m" H 4 I, Q' e0 b0 m" c8 }8 {) p! z2 `我只能看出是时区的问题,重新安装了N遍(选择其它时区)仍旧无法解决,最终解决是通过这个办法:, Q9 |( @) ^5 @$ W- J1 b4 r