+ -
当前位置:首页 → 问答吧 → php 和 wordpress [搞定]

php 和 wordpress [搞定]

时间:2007-08-13

来源:互联网

我昨天升级了php.
原来直接http://localhost/wordpress/
就可以打开了。
今天打开以后,不是出现网页,而是出现了
一个列表样地东西

Index of /wordpress

[DIR] Parent Directory -
[TXT] index.php 19-Nov-2006 20:56 94
[TXT] license.txt 02-Apr-2003 02:12 15K
[TXT] readme.html 21-Apr-2007 14:20 7.5K
[DIR] wp-admin/ 16-May-2007 12:38 -
[TXT] wp-app.php 19-Apr-2007 15:03 35K
[ ] wp-atom.php 23-Feb-2007 15:50 127
[TXT] wp-blog-header.php 10-May-2007 04:17 1.0K
[TXT] wp-comments-post.php 29-Mar-2007 05:34 2.8K
[ ] wp-commentsrss2.php 23-Feb-2007 15:50 151
[TXT] wp-config.php 04-Jun-2007 18:18 941
[DIR] wp-content/ 04-Jun-2007 22:08 -
[ ] wp-cron.php 17-Apr-2007 08:47 849
[ ] wp-feed.php 19-Nov-2006 20:56 120
[DIR] wp-includes/ 04-Jun-2007 18:24 -
[TXT] wp-links-opml.php 01-Apr-2007 08:15 1.5K
[TXT] wp-login.php

我检测了 可以读php文件。
请问这是怎么回事?怎么解决

----------------------------
搞定了!!!/etc/apache2/vhosts.d/00_default_vhost.conf
把 这句 NameVirtualHost *:80 mark掉就好了!



作者: coolone   发布时间: 2007-08-13

/etc/conf.d/apache2
APACHE2_OPTS="-D PHP5……”

/etc/apache2/vhosts.d/default_vhost.include
35c35
< Options FollowSymLinks
---
> Options Indexes FollowSymLinks

作者: midx   发布时间: 2007-08-13

谢谢楼上。
都有!

没办法重新编了一次!
好了!

作者: coolone   发布时间: 2007-08-13

还是不行!有的可以显示,有的不可以!!
奇怪了!

作者: coolone   发布时间: 2007-08-13

现在的问题是,直接打开http://localhost/wordpress/index.php不行。直接出现字符
如果这样打开http://localhost/wordpress/
就没问题
请问是怎么回事?

我刚才用ROOT进去然后就没问题了!
真晕了回到user又不行了!

作者: coolone   发布时间: 2007-08-13