用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3241|回复: 7
收起左侧

[讨论/交流] 奇怪的问题~ 首页全白、实际的URL也全白

[复制链接]
发表于 2011-8-23 11:00:03 | 显示全部楼层 |阅读模式
本帖最后由 lovebaobao 于 2011-8-23 11:17 编辑

网站是从某台服务器转到某台服务器的,转过去后就出现新问题了
旧平台: AS4_32bit+Apache2.0.61+php5.2.4
新平台: ArchLinux 2.6.32-lts _64bit + Apache 2.2.19-1 + PHP 5.3.6-5

我试过拿 CI2.0 放进去,能正常显示,重写也正确,但把网站放过去就不正常了
首页、原来能正常访问的页面,打开后都是空白的,什么也没有,随便写个URL可以正常提示‘对不起,您浏览的网页可能已被删除、重命名或暂时不可用。

哪位知道什么问题?
PHP 需要支持 Virtual Directory Support 吗?

目前 phpinfo 是显示Virtual Directory Support是关闭的

HTML复制代码
 
# tcpdump -A -s0 port 80
10:57:44.474619 IP 113.106.108.66.65362 > *.*.*.*.http: Flags [R.], seq 980, ack 3635, win 0, length 0
E..(k.@.{...qjlB}YG1.R.PeZ.o.
F.P...V.........
10:57:44.474871 IP 113.106.108.66.65362 > *.*.*.*.http: Flags [R], seq 1700458351, win 0, length 0
E..(k...{.1.qjlB}YG1.R.PeZ.oeZ.oP...dr........
10:57:44.474877 IP 113.106.108.66.65362 > *.*.*.*.http: Flags [R], seq 1700458351, win 0, length 0
E..(k...{.1.qjlB}YG1.R.PeZ.oeZ.oP...dr........
10:57:44.476619 IP 113.106.108.66.65362 > *.*.*.*.http: Flags [R], seq 1700458351, win 0, length 0
E..(k...{.1.qjlB}YG1.R.PeZ.oeZ.oP...dr........
10:57:44.476627 IP 113.106.108.66.65362 > *.*.*.*.http: Flags [R], seq 1700458351, win 0, length 0
E..(k...{.1.qjlB}YG1.R.PeZ.oeZ.oP...dr........
复制代码

HTML复制代码
 
这是php.ini ,基本没有改过
[iPHP]
engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = Off
variables_order = "GPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
include_path = ".:/usr/share/pear"
doc_root =
user_dir =
extension_dir = "/usr/lib/php/modules/"
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
extension=gd.so
extension=gettext.so
extension=mcrypt.so
extension=mysqli.so
extension=mysql.so
[Date]
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[Syslog]
define_syslog_variables  = Off
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.entropy_length = 0
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
 
复制代码





 楼主| 发表于 2011-8-23 11:20:34 | 显示全部楼层
所有包是用 arhclinux 自带的 pacman 安装的,就类似 centos 的 yum ,debian 的 apt

如果要启用Virtual Directory Support是不是一定要编译安装才可以?
 楼主| 发表于 2011-8-23 13:26:24 | 显示全部楼层
自己顶起来。。。
发表于 2011-8-23 13:42:03 | 显示全部楼层
看一看服务器的error_log吧。
 楼主| 发表于 2011-8-23 13:53:32 | 显示全部楼层
accesslog:
183.31.242.62 - - [23/Aug/2011:14:07:57 +0800] "GET /favicon.ico HTTP/1.1" 404 28537
 楼主| 发表于 2011-8-23 13:54:10 | 显示全部楼层
如果数据库连接不成功,会不会有这样的问题啊???

但应该数据库是连接成功的,,用的是localhost 数据库也拷到那台服务器上了。
发表于 2011-8-24 16:36:45 | 显示全部楼层
分析apache的访问日志
 楼主| 发表于 2011-8-24 17:04:18 | 显示全部楼层
deader 发表于 2011-8-24 16:36
分析apache的访问日志

我楼上已经贴出了apache 的访问日志了,没什么能看出问题的地方。。

本版积分规则