<a href="#navigator">&uarr;</a>XOOPSインストール(気を取り直してはじめから) <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#lb3fd714" title="lb3fd714">&dagger;</a>

http://s23spps2/index.phpにアクセス インストールに使用する言語 japanese

December 3, 2005 · 1 min · 胡田昌彦

<a href="#navigator">&uarr;</a>Xoops用ユーザー作成 <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#ace5d75d" title="ace5d75d">&dagger;</a>

c:\mysql -r root -p create database xoopsdb; mysql> GRANT ALL PRIVILEGES ON *.* TO xoops@"%" -> IDENTIFIED BY ‘<localadminと一緒のパスワード>’ WITH GRANT OPTION;

December 3, 2005 · 1 min · 胡田昌彦

<a href="#navigator">&uarr;</a>インストール後のトラブルシュート <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#ua7dc213" title="ua7dc213">&dagger;</a>

December 3, 2005 · 0 min · 胡田昌彦

<a href="#navigator">&uarr;</a>きれいにMySQL4.1の再インストール <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#q81d14b6" title="q81d14b6">&dagger;</a>

以下のオプションを選択 SetupType: Typical MySQL.com Sign-Up: Create a new free MySQL.com account 適当に個人情報の登録 Configure the MySQL Server now: True MySQL Server Instance Configuration: Detailed Configuration Server Machine

December 3, 2005 · 1 min · 胡田昌彦

<a href="#navigator">&uarr;</a>セットアップ <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#rf0e0f86" title="rf0e0f86">&dagger;</a>

Xoopsの動作のためにはWeb、データベース、PHPが必要。ということなので、まずはこれらをインストールし、その後Xoopsをインストールする。

December 3, 2005 · 1 min · 胡田昌彦

<a href="#navigator">&uarr;</a>再度MySQLインストール(手戻り・・・) <a href="http://s23spps2/modules/bwiki/index.php?XOOPS#w3be8de7" title="w3be8de7">&dagger;</a>

以下のURIよりMySQL4.0をダウンロード http://download.softagency.net/MySQL/downloads/mysql/4.0.html 以下のパラメーターでインストール Destination Folder: C:\mysql Setup Type: Typical インストール完了するも、サービスが登録されなかったので以下のページを参考にしてC:\MySQL\bin フォルダの「winmysqladmin.exe」を実行 Cancelをクリック

December 3, 2005 · 1 min · 胡田昌彦

<a href="http://s23spps2/index.php">http://s23spps2/index.php</a>にアクセス

インストールに使用する言語 japanese データベースサーバ mysql データベースサーバのホスト名 localhost データベースユーザ名 xoops データベースパスワード <ローカルアドミンと一緒にしました>

December 3, 2005 · 1 min · 胡田昌彦

<pre>mysql&gt; status

-————- mysql Ver 14.7 Distrib 4.1.15, for Win32 (ia32) Connection id: 2 Current database: Current user: root@localhost SSL: Not in use Using delimiter: ; Server version: 4.1.15-nt Protocol version: 10 Connection: localhost via TCP/IP Server characterset: sjis Db characterset: sjis Client characterset: sjis Conn. characterset: sjis TCP port: 3306 Uptime: 21 sec Threads: 1 Questions: 3 Slow queries: 0 Opens: 11 Flush tables: 1 Open tabl es: 5 Queries per second avg: 0.143 ————– ...

December 3, 2005 · 2 min · 胡田昌彦

Active Connections

December 3, 2005 · 0 min · 胡田昌彦

c:\phpを全て削除し、上記ファイルを展開したものを配置

c\:windows\system32\php4ts.dllを削除 c\:windows\system32\php5ts.dllを配置 php\dlls フォルダにあるDLLをすべて「C:\WINDOWS\system32」の中へコピー C:\php フォルダにある「php.ini-recommended」を「C:\WINDOWS」の中へコピーし、名前を「php.ini」に変更 上記php.iniを以下のように変更 register_globals = On magic_quotes_gpc = Off extension_dir = C:\php\ext\

December 3, 2005 · 1 min · 胡田昌彦

c:\phpを全て削除し、上記ファイルを展開したものを配置

c\:windows\system32\php4ts.dllを削除 c\:windows\system32\php5ts.dllを配置 php\dlls フォルダにあるDLLをすべて「C:\WINDOWS\system32」の中へコピー C:\php フォルダにある「php.ini-recommended」を「C:\WINDOWS」の中へコピーし、名前を「php.ini」に変更 上記php.iniを以下のように変更 register_globals = On magic_quotes_gpc = Off extension_dir = C:\php\ext\

December 3, 2005 · 1 min · 胡田昌彦

extension=php_mbstring.dll(先頭のコメントをはずす)

[mbstring]エントリを以下のように編集 o m m m ; m m u b b b m b b t s s s b s s p t t t s t t u r r r t r r t i i i r i i _ n n n i n n h g g g n g g a . . . g . . n i h h . d s d n t t e e u l t t t n t b e e p p c e s r r _ _ o c t n i o d t i = a n u i _ t l p t n o u m _ u p g r t b e t u _ d e _ n t t e _ o c = r r c u o = a h t d a n = a p i u S s r u n t J l a a t g o I a u c _ S t t t h = i o e a o r n E n d U = l C = e - n r J O o P f n f e ; [mail function]エントリを編集 [mail function] ; For Win32 only. SMTP = s2kexg1 smtp_port = 25 ; For Win32 only. sendmail_from = s23spps2@jbs.co.jp ...

December 3, 2005 · 2 min · 胡田昌彦

extension=php_mbstring.dll(先頭のコメントをはずす)

[mbstring]エントリを以下のように編集 o m m m ; m m u b b b m b b t s s s b s s p t t t s t t u r r r t r r t i i i r i i _ n n n i n n h g g g n g g a . . . g . . n i h h . d s d n t t e e u l t t t n t b e e p p c e s r r _ _ o c t n i o d t i = a n u i _ t l p t n o u m _ u p g r t b e t u _ d e _ n t t e _ o c = r r c u o = a h t d a n = a p i u S s r u n t J l a a t g o I a u c _ S t t t h = i o e a o r n E n d U = l C = e - n r J O o P f n f e ; cgi.force_redirectに関して以下のように変更。ただしセキュリティに関連する箇所のようだが内容をよく理解できていないので、追加で調査の必要あり。 ; cgi.force_redirect = 1 cgi.force_redirect = 0 ...

December 3, 2005 · 2 min · 胡田昌彦

flush privileges;

December 3, 2005 · 0 min · 胡田昌彦

flush privileges;

これでもまだDBに接続できないとのエラーが出てセットアップできない。 原因不明。 Apacheのログを見ると以下のエラーが表示されている。 F C i h l a e r a ' c c t : e \ r m y s s e q t l \ ' s # h 3 a 3 r ' e \ i c s h a n r o s t e t a s c ? . m c p o i n l f e ' d n c o h t a r f a o c u t n e d r ( s E e r t r c a o n d d e : i s 2 ) n o t s p e c i f i e d i n t h e ' c : \ m y s q l \ s h a r e \ c h a r s e t s \ I n d e x ' f i l e 特に現在のエラーとは関係ないようだけれども気持ちがわるいので 以下のサイトを参考にしてC:\mysqlにファイルを配置する。 http://64.233.167.104/search?q=cache:jIJ9uteyhCMJ:xoops.smej.com/modules/newbb/viewtopic.php%3Fpost_id%3D103%26topic_id%3D26%26forum%3D1+%22mysql%5Cshare%5Ccharsets%5C%3F.conf%27%22&hl=ja&lr=lang_ja 配置後もエラーは消えない・・・。なぜ? Webを検索しても拉致があかないので、ソースを追いかけてみるとmysqldatabase.phpにて以下のようにコネクトしていた。 ...

December 3, 2005 · 2 min · 胡田昌彦

Install As Windows Service: True

Service Name: MySQL Launch the MySQL Server automatically root password: サーバーのローカルアドミンのパスワードと一緒

December 3, 2005 · 1 min · 胡田昌彦

japanese

データベースサーバ mysql データベースサーバのホスト名 localhost データベースユーザ名 root データベースパスワード <ローカルアドミンと一緒にしました> データベース名 xoopsdb

December 3, 2005 · 1 min · 胡田昌彦

Multifunctional Database

C:\MySQL Datafiles\ Decision Suport(DSS)/OLAP(少数ユーザーモードのようなもの?) Enable TCP/IP Networking: True Port: 3306 Best Support For Multilingualism Install As Windows Service: True Service Name: MySQL Launch the MySQL Server automatically root password: サーバーのローカルアドミンのパスワードと一緒

December 3, 2005 · 1 min · 胡田昌彦

mysql_connect関数に注目して自分でPHPを書いてテストしてみる。

とりあえずmysql_connectを単純に使うと以下のように怒られた。 m l y s r q e l q _ u c e o s n t n e e d c t b ( y ) : s e C r l v i e e r n ; t c d o o n e s s i d n e o r t u s p u g p r p a o d r i t n g a u M t y h S e Q n L t i c c l a i t e i n o t n i p n r o t o c o エラーメッセージでググッてみると以下のページが見つかる。 http://64.233.167.104/search?q=cache:6VcrFxAe6koJ:www.atmarkit.co.jp/bbs/phpBB/viewtopic.php%3Ftopic%3D16165%26forum%3D26%263+%22mysql_connect():+Client+does+not+support+authentication%22&hl=ja&lr=lang_ja どうやら、PHPとMySQLのバージョンとであまりうまくない組み合わせの模様。 PHPを5系にすることで対応することにする。 ...

December 3, 2005 · 1 min · 胡田昌彦

MySQLは動作したが、おそらくDBがなく、ユーザーがいないため、接続できない、先にMySQLにDB,ユーザーを作成する。

以下のサイトが非常に参考になった。 http://www.bitscope.co.jp/tep/MySQL/quickMySQL.html MySQL Command Line Client起動 create database xoopsdb; mysql> GRANT ALL PRIVILEGES ON *.* TO xoops@"%" -> IDENTIFIED BY ‘<localadminと一緒のパスワード>’ WITH GRANT OPTION;

December 3, 2005 · 1 min · 胡田昌彦