0

初心者の質問-Coldfusion/MySQLを初めて試し、ローカルで実行できるようにしました。

Apache Webサーバー(2.2)を実行しています。2つの.sqlファイルをMySQL(5.2。)ワークベンチにインポートし、これらからデータベースをフォワードエンジニアリングし、動作するデータベース接続とMySQLサーバーをセットアップします。これも実行中です。Coldfusion8 Adminで、データベースをデータソースとして追加しました。

これで十分だと思いました:-)

それでも、http:// localhostでは、Apachehtdocsフォルダー内のすべてのファイルのインデックスしか取得していません。ファイルの1つを開くと、Coldfusion Markup/HTMLソースコードが表示されます。何も解析されません。

私が見逃している可能性のあるものについてのヒントをありがとう?

編集:
わかりやすくしようとしている3つの質問:1。D
:/ Coldfusion8 / lib ...のような絶対パスを使用してモジュールをロードできますか?
2.私のlib/wsconfigフォルダーには、jrunwin32.dllという名前のdllファイルしか含まれていません。これを使おうとしていますか?
3. lib/wsconfigフォルダーにjrunserver.storeファイルが含まれていません。ここで何をすべきかわからない

4

1 に答える 1

1

It sounds as if your Apache config is not correct, as it doesn't sound as if it's having the cfm files handled correctly.

First of all, is there a specific reason for using CF8? CF9 has been around for a while, so if going from scratch then I'd advise taking a look at that instead.

That aside, I'd check for the following in your httpd.conf (or whatever your apache config file is named)

Firstly, that .cfm is acceptable as a DirectoryIndex (can have other indexes as well)

DirectoryIndex index.cfm

Secondly, that the JRUN handler is configured properly (so again, in httpd.conf)

LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so
<IfModule mod_jrun22.c>
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:51801
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
</IfModule>

This is taken from my development VM, I have CF8 as a single-server install in /opt/coldfusion8/

Once you have those lines in (with the paths/ports etc appropriate for your environment) restart apache and it should work fine.

If you have installed CF8 in a Multiserver etc. install then please specify and will look to adjust my advice accordingly

于 2012-04-18T09:38:58.123 に答える