hellopython
hellopython
2287 14 0

出现了另外的错误

之前的环境是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
谢谢了

0

See Also

Nearby


Discussion (14)

hellopython
hellopython 2013-04-22 02:50

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

0
ego008
ego008 2013-04-22 03:13

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

主楼所帖的提示和https://www.youbbs.org/t/989 主楼的提示一模一样。

0
hellopython
hellopython 2013-04-22 03:32

@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

0
ego008
ego008 2013-04-22 03:39

@hellopython
chmod 777 index.php

0
hellopython
hellopython 2013-04-23 07:59

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

0
ego008
ego008 2013-04-23 08:22

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

0
hellopython
hellopython 2013-04-23 08:30

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

0
hellopython
hellopython 2013-04-23 08:33

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

0
hellopython
hellopython 2013-04-23 08:33

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

0
ego008
ego008 2013-04-23 08:37

不能装在二级目录下

0
hellopython
hellopython 2013-04-23 08:45

好了。。

0
hellopython
hellopython 2013-04-23 08:45

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

0
flaresun
flaresun 2013-04-24 12:49

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

0
ego008
ego008 2013-04-24 13:10

@flaresun 设定一个二级目录前缀,
如在config.php 里设置
define('BBSPATH', 'mybbs');

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

0
Login Topics