忍者ブログ
[PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。



2024/04/26 22:52 |
Mantis1.2.5 Mantisのインストールでどん詰まった
とりあえずホストを切る。

hosts
	127.0.0.1 mantis.localhost
httpd.conf
	<VirtualHost *:80>
	    ServerName mantis.localhost
	    DocumentRoot "C:\hoge\fuga\mantis\htdocs"
	    ErrorLog "logs/mantis.localhost-error.log"
	    CustomLog "logs/mantis.localhost-access.log" combined
	</VirtualHost>
DBを作成。
	CREATE USER 'mantis'@'localhost' IDENTIFIED BY '***';
	GRANT USAGE ON * . * TO 'mantis'@'localhost' IDENTIFIED BY '***' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
	CREATE DATABASE IF NOT EXISTS `mantis` ;
	GRANT ALL PRIVILEGES ON `mantis` . * TO 'mantis'@'localhost';

Mantis本体を展開。
http://www.alles.or.jp/~sogabe/mantis/
のダウンロードからStableなreleaseを拾ってきます。
今回は1.2.5でした。
持ってきたらmantis\htdocsに解凍。
ちなみにmantis\htdocsと分けてますが、Mantisのファイルは全部DocumentRoot以下に置くのでmantis\には何もありません。

http://mantis.localhost/admin/check.php
にアクセス。

Checking your installation

Warning: The configuration option $g_ldap_port is now obsolete


please use $g_ldap_server instead.
Checking Config File Exists
Please use install.php to perform initial installation Click here

なんか途中で切れてるんだが。

http://mantis.localhost/admin/install.php
にアクセス。
Hostname (for Database Server) 'localhost'
Username (for Database) 'Mantis'
Password (for Database) 'Mantis'
Database name (for Database) 'Mantis'
Admin Username (to create Database if required) 'root'
Admin Password (to create Database if required) 'root'

Checking Installation...
Checking for register_globals are off for mantis GOOD
Attempting to connect to database as user GOOD
checking ability to SELECT records BAD
Database user doesn't have SELECT access to the database ( Table 'mantis.mantis_config_table' doesn't exist )
checking ability to INSERT records BAD
Database user doesn't have INSERT access to the database ( Table 'mantis.mantis_config_table' doesn't exist )
checking ability to UPDATE records BAD
Database user doesn't have UPDATE access to the database ( Table 'mantis.mantis_config_table' doesn't exist )
checking ability to DELETE records BAD
Database user doesn't have DELETE access to the database ( Table 'mantis.mantis_config_table' doesn't exist )
なんだこれ。
もちろんDBは空のまま。

config_inc.phpにはファイルができている。
<?php
	$g_hostname = 'localhost';
	$g_db_type = 'mysql';
	$g_database_name = 'mantis';
	$g_db_username = 'mantis';
	$g_db_password = 'mantis';
接続確認。
<?php
	$db = mysql_connect('localhost', 'mantis', 'mantis');
	mysql_select_db('mantis', $db);
	$result = mysql_query('SHOW GLOBAL STATUS');
	$ret=mysql_fetch_assoc($result);

	array(2) {
	  ["Variable_name"]=>
	  string(15) "Aborted_clients"
	  ["Value"]=>
	  string(1) "0"
	}
接続成功して権限もちゃんとある。
つまりMantisのどこかでおかしなことがおこっている。

もういちどhttp://mantis.localhost/admin/check.phpにアクセス。

APPLICATION ERROR #401

Database query failed. Error received from database was #1146: Table 'mantis.mantis_plugin_table' doesn't exist for the query: SELECT COUNT(*) FROM mantis_plugin_table WHERE basename=?.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.


なんか悪化した。

調べてみようと思ったがソースが適当過ぎて中がどうなってるかさっぱりわからなかった。

悩んだあげくに
	CREATE USER ''@'localhost';
とかいうフリーダムに危険なユーザがいたのをなんとなく削除してみたら何故か動いた。
意味がわからん。
PR


2011/08/06 01:00 | Comments(0) | TrackBack() | PHP

トラックバック

トラックバックURL:

コメント

コメントを投稿する






Vodafone絵文字 i-mode絵文字 Ezweb絵文字 (絵文字)



<<今週の実績 2011/08/07 | HOME | PHP5.3.5 PharDataクラスを使ってみる>>
忍者ブログ[PR]