PDA

View Full Version : xoopsを設置したが画像が表示されない。重い


yamk2222
2002/03/21, 12:28 PM
xoops v1 rc2.0.2英語版をdomain.xrea.comで取得した独自ドメインで運用しようと思ったのですがlogo.gifなどの
画像ファイルが表示されない上に、めちゃめちゃ重いです。
(ファイルは存在している)
どなたかs10サーバーに限らず、xoopsの設置に成功された方が
いらっしゃいましたらご教示ください。

現在の状況。

http://yamk2222.s10.xrea.com:8080/html/index.php

Loading Imagesのゲージを始め、画像ファイル関連全滅。
htmlの表示などレスポンスがめちゃ重い。
おそらく何らかの原因で404エラーを頻発しているかと推測。


どういう作業をしたか。

(1)shared直下にxoopsのアーカイブをそのまんま展開

(2)phpmyadminで/extrasのxoops.sqlを実行

(3)/html/install.phpを実行

途中で表示されるエラーメッセージにしたがって

mainfile.phpを設定
define("XOOPS_ROOT_PATH","/work/yamk2222/shared_html/html");

include/config.phpを設定

// Database Configuration
$xoopsConfig['database'] = "mysql";
$xoopsConfig['dbhost'] = "localhost";
$xoopsConfig['dbuname'] = "yamk2222";
$xoopsConfig['dbpass'] = "自分のパスワード";
$xoopsConfig['dbname'] = "yamk2222";
$xoopsConfig['db_pconnect'] = 1;

// Site Configuration
$xoopsConfig['xoops_url'] = "http://www.elf4.net:8080/html/index.php";

に変更。

prefixを指定せよと怒られ

$xoopsConfig['prefix'] = "yamk2222";を設定

prefixの意味がわからなかったので適当に付けたら
yamk2222_?????????????というテーブルが作成

adminのid,pw,メールアドレスを聞いてきたので入力

と、ここまで出来てます。

cats
2002/03/21, 02:11 PM
たとえばロゴらしい画像がhttp://www.elf4.net:8080/html/index.php/themes/phpkaox/images/logo.gifになってます
ソースを見るとスタイルシートの外部ファイルなんかもそうなってます
画像を出す度に自分自身を呼ぶわけですからタイムアウトになるまでくり返します
設置する手順ぐらいちゃんと読んだ方が良いです

すぐに改善しないと暴走してるようなものなのでたぶん凍結・削除されます

yamk2222
2002/03/23, 09:20 AM
読みましたが、判りません。

Installation Procedure
----------------------

Unzip the package into the directory you want to use on you web
server, if you're unsure where that is, ask you system administrator.

1) Edit file "include/config.php" and put the required database settings. If you dont have a database created yet, just enter a name for the database and the install script will attempt to create it for you. Then, upload the edited file to the server.

2) After that, point your browser to:

http://yourdomain.com/install.php

2) Follow the instructions displayed on the screen

3) That's it!...

4) You would also "need" to chmod 755(or 777) all "cache" folders under "modules" directory, and chmod 666 all files included in each "cache" folder.

5) After the installation, please delete the install.php file
from your server.

*** If you had problems using the install script, please manually create tables using the sql dump file included in "extras" folder. To create tables manually, use phpMyAdmin or type in the following command from the command line:

mysql -u<username> -p<password> <databasename> < xoops.sql

This will create tables with the prefix "xoops_" and a user with username "webmaster" and password "webmaster".

この通りにしました。


Please open include/config.php and enter required DB settings data

$xoopsConfig['xoops_url'] is the virtual path (URL) to the main directory of XOOPS (Generally, it is the directory where this install script is uploaded.). Please DO NOT add "/" at the end.

/include/config.phpの$xoopsConfig['xoops_url']は
$xoopsConfig['xoops_url'] ="."

何しろ仮想パスを(URL)を設定しろと書いてあるので、
通常のプロバイダならhttp://からの指定でよいと思われますが
XREAでshared直下で走らせる場合、
http://xxxx.s10.xrea.com:8080/html/index.phpでいいのでしょうか?
そうやって設定した結果が、暴走した次第でして・・・・

cats
2002/03/23, 12:49 PM
$xoopsConfig['xoops_url][']はXOOPSの主要なディレクトリにバーチャルな(URL)パスです(機械翻訳そのまま)
と書いてあるのです
ですからindex.phpまで書いてはだめなんじゃないですか

このスクリプトは以前宣伝してた方がいらっしゃるので直接聞いた方が良いかもしれませんね
http://sb.xrea.com/search.php?s=&action=showresults&searchid=26999&sortby=lastpost&sortorder=descending

yamk2222
2002/03/24, 07:22 AM
直りました。config.phpの問題ではなくてDBのテーブルが数箇所壊れてました。初期化して、解決。
参照URL紹介有難うっす。:)

cats
2002/03/24, 05:12 PM
データベースが壊れると暴走するんですか?
とんでもないスクリプトですね