|
安装mediawiki, 系统是debian testing,用它自己的安装包,按说很简单。可是在页面设置完后出现这样的信息。
# PHP 5.2.0-10 installed
# Found database drivers for: MySQL
# PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
# Have XML / Latin1-UTF-8 conversion support.
# PHP's memory_limit is 20M. If this is too low, installation may fail!
# Have zlib support; enabling output compression.
# Neither Turck MMCache nor eAccelerator nor APC are installed, can't use object caching functions
# Found GNU diff3: /usr/bin/diff3.
# Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
# Installation directory: /var/lib/mediawiki1.7
# Script URI path: /mediawiki
# Environment checked. You can install MediaWiki.
Generating configuration file...
# Database type: MySQL
# Loading class: DatabaseMysql
# Attempting to connect to database server as root...success.
# Connected to 5.0.38-Debian_1-log; enabling MySQL 4.1/5.0 charset mode
# Database wikidb exists
# There are already MediaWiki tables in this database. Checking if updates are needed...
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/share/mediawiki1.7/includes/Database.php on line 620
A database query syntax error has occurred. The last attempted database query was: "(SQL query hidden)" from within function "". MySQL returned error "0: "
这里 MySQL returned error "0: " 有点小强的,不知道什么意思。MySQL貌似没有这么个error code。网上查也没法查到这个error code。
另在README.Debian 里这样说的
Configuration:
The configuration uses an easy web-based system ; just go to this URL :
http://www.myserver.org/mediawiki/config/index.php
(replace by your own servername)
Then just copy the generated config to the real system location :
mv /var/lib/mediawiki1.7/config/LocalSettings.php \
/etc/mediawiki1.7
After being configured, you should begin your surf on your new wiki
using this url:
http://www.myserver.org/mediawiki
(replace by your own servername)
Enjoy !!!
可现实是/var/lib/mediawiki1.7/config/里面没有生成那个php。应该就是配置最后报错引起的。
说明,我不懂php的,所以不高兴花大功夫从看那个620行出发找问题。 |
|