出现了另外的错误

By hellopython at 2013-04-22 10:49:12 • 807次点击

之前的环境是wamp,出现错误:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log
不知道是不是和php apache版本有问题

现在换了ubuntu12.04 ,然后是这个错误

服务器错误
网站在检索 http://127.0.0.1/youbbs/ 时遇到错误。 该网站可能关闭进行维护或配置不正确。

有没有知情的说一下是不是和服务器还有php版本有关系,现在在用bbs v1.03
谢谢了


请问除了修改config.php里边数据库的密码用户之外,还需要修改什么别的吗?

hellopython at 2013-04-22 10:50:21
1

看最后一句话
More information about this error may be available in the server error log

主楼所帖的提示和http://youbbs.sinaapp.com/t/989 主楼的提示一模一样。

ego008 at 2013-04-22 11:13:58
2

@ego008 e...那个帖子就是我贴的

日志
[Mon Apr 22 11:31:56 2013] [notice] caught SIGTERM, shutting down
[Mon Apr 22 11:31:57 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Apr 22 11:32:03 2013] [error] [client 127.0.0.1] PHP Warning:

Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Apr 22 11:32:03 2013] [error] [client 127.0.0.1] PHP Fatal error:

Unknown: Failed opening required '/var/www/youbbs/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

hellopython at 2013-04-22 11:32:51
3

@hellopython

chmod 777 index.php

ego008 at 2013-04-22 11:39:20
4

@ego008 权限是777.。。config.php里边密码用户名都改了,不知还需要配置别的么?

hellopython at 2013-04-23 15:59:36
5

@hellopython 问Google
PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

ego008 at 2013-04-23 16:22:14
6

@ego008 不知道是不是这个版本的bug,修改权限之后开始还是不好,不过突然又好了,然后出现了首界面,不过还存在问题,先谢谢了

hellopython at 2013-04-23 16:30:46
7

好吧,现在点所有地方都是not found,在ubuntu环境,通过sudo a2enmod rewrite开启了rewirte

hellopython at 2013-04-23 16:33:31
8

同时所有样式都没有。。。

hellopython at 2013-04-23 16:33:52
9

不能装在二级目录下

ego008 at 2013-04-23 16:37:18
10

好了。。

hellopython at 2013-04-23 16:45:18
11

@ego008 3q~有些毛病我自己找找吧,不懂再来问~

hellopython at 2013-04-23 16:45:47
12

@ego008 如果要装在二级目录 那该怎么办啊

flaresun at 2013-04-24 20:49:14
13

@flaresun 设定一个二级目录前缀,
如在config.php 里设置

define('BBSPATH', 'mybbs');

然后在模板里所有链接的地方加上BBSPATH,在程序里有跳转的地方也加上BBSPATH。

ego008 at 2013-04-24 21:10:36
14
登录 后发表评论