-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopic-79.html
198 lines (180 loc) · 11.2 KB
/
topic-79.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
<head>
<title>日本PHPユーザ会 掲示板: PHP 5 » php-5.2.6 インストール Mysql Mysqli エラー</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="日本PHPユーザ会運営の掲示板です。※ただいまテスト運用中です。" />
<meta name="keywords" content="php,web,php.gr.jp,community,usebb" />
<link rel="stylesheet" type="text/css" href="./templates/phpgrjp0.3/styles.css" />
<link rel="shortcut icon" href="./templates/phpgrjp0.3/gfx/usebb.ico" />
<link rel="alternate" type="application/rss+xml" title="日本PHPユーザ会 掲示板 RSS フィード" href="rss.xml" />
<script type="text/javascript" src="sources/javascript.js"></script>
</head>
<body onload="javascript:init_external()">
<div id="pagebox-bg">
<div id="shadow-left">
<div id="shadow-right">
<p id="logo"><a href="index.html"><img src="./templates/phpgrjp0.3/gfx/usebb.png" alt="UseBB" title="ホーム" /></a></p>
<h1 id="boardname"><span id="line">日本PHPユーザ会 掲示板</span></h1>
<h2 id="boarddescr">日本PHPユーザ会運営の掲示板です。※ただいまテスト運用中です。</h2>
<div id="topmenu"><ul>
<li><a href="index.html">ホーム</a></li><li><a href="faq.html">FAQ</a></li><li><a href="active.html">活発なトピック</a></li>
</ul></div>
<div id="topmenu-shadow"></div>
<p class="locationbar">
• <a href="index.html">日本PHPユーザ会 掲示板</a> » <a href="forum-4.html">PHP 5</a> » php-5.2.6 インストール Mysql Mysqli エラー
</p>
<h3 id="forumname"><a href="topic-79.html">php-5.2.6 インストール Mysql Mysqli エラー</a></h3>
<p id="forummods"></p>
<p id="toolbartop"> </p>
<p id="pagelinkstop">ページ: 1</p>
<table class="maintable">
<tr>
<th>投稿者</th>
<th>投稿</th>
</tr>
<tr class="tr1">
<td class="postername">
<div class="posternamecontainer"><a href="profile-113.html">enzhitan</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post198.html#post198" name="post198" rel="nofollow">#1</a> 2008 年 7 月 7 日(月) 16:54</div>
</td>
</tr>
<tr class="tr1">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 7 2008</div>
<div class="field">返信数: 1</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">php-5.2.6 のインストールですが、どうしてもうまくいかない。お助けください。<br />環境下以下の通りです。<br /> WindowsXp Pro SP2<br /> Apache 2.2.9<br /> Mysql 5.0.51b<br /><br />PHPをインストールしたが、MySQL MYSQLi がエラー<br />Apacheのerror.log が以下の通りです。<br /><br /> PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/ext/php_mysql.dll'<br /> PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/ext/php_mysqli.dll'<br /><br />Pathなどいろいろと変えてみたんですが、だめでした。<br /><br />何か助言をいただければ幸いです。<br />よろしくお願いします。</div>
</td>
</tr>
<tr class="tr2">
<td class="postername">
<div class="posternamecontainer"><a href="profile-36.html">kona@m</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post206.html#post206" name="post206" rel="nofollow">#2</a> 2008 年 7 月 23 日(水) 10:48</div>
</td>
</tr>
<tr class="tr2">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 10 2007</div>
<div class="field">返信数: 71</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">もしかしたらですが、php.ini中で<br />extension_dir='./ext/'<br />もしくは<br />extension_dir='C:/PHP/ext/'<br />のような設定になっているか確認されているでしょうか。<br />もしそうでなければ試してみて下さい。<br />もし確認済み・解決済みならごめんなさい。</div>
</td>
</tr>
<tr class="tr1">
<td class="postername">
<div class="posternamecontainer"><a href="profile-135.html">area88</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post230.html#post230" name="post230" rel="nofollow">#3</a> 2008 年 9 月 24 日(水) 0:39</div>
</td>
</tr>
<tr class="tr1">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 9 2008</div>
<div class="field">返信数: 2</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">enzhitanさんと同じで、extensionが有効になっていない状態が出ています。<br />phpinfoで調べると、extension_dir="c:/php5/" と表示されます。<br />php.iniでは、extension_dir="c:/PHP/ext/" と設定しています。<br />php coreで固定のような状況です。<br />他にも、includes_path = "c:/php/includes" としていますが、phpinfoのcoreでは、./;c:php5.pear と固定の値になっています。<br /><br />どこの設定を変えれば、よいのでしょうか?</div>
</td>
</tr>
<tr class="tr2">
<td class="postername">
<div class="posternamecontainer"><a href="profile-36.html">kona@m</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post232.html#post232" name="post232" rel="nofollow">#4</a> 2008 年 9 月 24 日(水) 8:20</div>
</td>
</tr>
<tr class="tr2">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 10 2007</div>
<div class="field">返信数: 71</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">(1) phpinfoでの"Loaded Configuration File"の値が期待通りのphp.iniへの場所になっているでしょうか?<br />いくつもphp.iniを作ってあると混乱する場合がありますので、"php.ini"はひとつにしておくとよいでしょう。使い分ける場合は名前を変えておくとよいでしょう。<br />またphp.iniが読み込まれていなかった場合はC:\WINDOWSに置くのが一般的のようです。<br /><br />(2) apacheを再起動して設定を反映させてから確認されているでしょうか?<br />phpをモジュール動作させている時にはapacheを再起動させないと設定が反映されません。<br /><br />(3) phpinfoでの"extension_dir"の値が期待通りりにDLLフォルダへの場所になっているでしょうか?<br /><br />試してみて下さい。</div>
</td>
</tr>
<tr class="tr1">
<td class="postername">
<div class="posternamecontainer"><a href="profile-135.html">area88</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post235.html#post235" name="post235" rel="nofollow">#5</a> 2008 年 9 月 25 日(木) 2:55</div>
</td>
</tr>
<tr class="tr1">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 9 2008</div>
<div class="field">返信数: 2</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">どうも、php-5.2.6-win32-installer.msiのモジュールがおかしいようです。<br /><br />試行錯誤し、下記の手順でインストールできました。<br />1)apacheをstopする。<br />2)php-5.2.6-win32-installer.msiにてインストールする。<br /> このとき、途中のオプション設定にて、extensionを有効にする。<br />3)php.iniファイルを、インストールディレクトリphp5から退避<br />4)インストールディレクトリphp5のファイルをすべて削除<br />5)php-5.2.6-Win32.zipをインストールディレクトリphp5に解凍<br />6)httpd.confを設定確認<br /> ファイルの最後に、下記が設定されていることを確認<br />AddDefaultCharset Off<br /><br />#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL<br />PHPIniDir "C:\Program Files\Apache Software Foundation\PHP5\"<br />LoadModule php5_module "C:\Program Files\Apache Software Foundation\PHP5\php5apache2_2.dll"<br />#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL<br /><br />7)php.iniの編集、確認<br /><br />output_handler = mb_output_handler<br />default_charset = "Shift_JIS"<br />doc_root = "c:\home\htdocs"<br />extension_dir ="c:\Program Files\Apache Software Foundation\PHP5\ext"<br />mbstring.language = Japanese<br />mbstring.internal_encoding = SJIS<br />mbstring.http_input = auto<br />mbstring.http_output = SJIS<br />mbstring.encoding_translation = On<br />mbstring.detect_order = auto<br />mbstring.substitute_character = none;<br /><br />必要な、extensionのコメントはずし<br /><br />8)php.iniをphp5インストールディレクトリに移動<br />9)環境変数、pathとphprcを確認<br />10)apacheをstartし、PCを再起動</div>
</td>
</tr>
<tr class="tr2">
<td class="postername">
<div class="posternamecontainer"><a href="profile-36.html">kona@m</a></div>
</td>
<td class="postinfo">
<div class="postlinks"></div>
<div class="postdate"><a href="topic-post236.html#post236" name="post236" rel="nofollow">#6</a> 2008 年 9 月 25 日(木) 12:59</div>
</td>
</tr>
<tr class="tr2">
<td class="posterinfo">
会員
<div class="avatar"></div>
<div class="field">登録者: 10 2007</div>
<div class="field">返信数: 71</div>
<div class="field"></div>
</td>
<td class="postcontent">
<div class="post">ごめんなさい、MSIでのインストールだとは知らずに、ZIPファイルからインストールのパターンで答えてしまいました。<br />私はMSIでのインストーラを使ったことがないので詳しいことはわからなかったのですが、area88さんの情報からすると、インストーラを使った場合はphp.iniの場所が違うみたいですね。<br />http.confの中の、<br />> PHPIniDir "C:\Program Files\Apache Software Foundation\PHP5\"<br />ここに指定されているフォルダのphp.iniが有効になっていそうですね。</div>
</td>
</tr>
</table>
<p id="toolbarbottom"> </p>
<p id="pagelinksbottom">ページ: 1</p>
<div id="bottomfix"></div>
<p id="actionlinks"></p>
<p class="locationbar">
• <a href="index.html">日本PHPユーザ会 掲示板</a> » <a href="forum-4.html">PHP 5</a> » php-5.2.6 インストール Mysql Mysqli エラー
</p>
<p id="linkbar">
</p>
<p id="bottom">
日本PHPユーザ会 掲示板 は <a href="http://www.usebb.net">UseBB 1 フォーラムソフトウェア</a> を使用しています
</p>
<div id="bottom-shadow"></div>
</div>
</div>
</div>
</body>
</html>