问题描述
新手问题 - 我在ColdFusion的/ MySQL的第一次尝试,并得到它在本地运行
Newbie question - my first attempt at Coldfusion/MySQL and getting it to run locally.
我运行Apache服务器(2.2),我已经importet 2 .sql文件到MySQL(5.2)工作台,推进这些工程的数据库,设置工作数据库连接和MySQL服务器。这也是运行。在Coldfusion8联系我加我的数据库作为数据源。
I'm running Apache Webserver (2.2), I have importet two .sql files into MySQL (5.2.) workbench, forward engineered a database from these, setup working database connection and MySQL Server. This is also running. In Coldfusion8 Admin I added my database as a data source.
我想这将是足够的:-)
I thought this would be enough :-)
不过,在我仍然只得到所有文件的索引,在我的Apache htdocs文件夹。如果我打开其中一个文件,它只是显示了ColdFusion标记/ HTML源代码code。没有解析。
Still, on http://localhost I'm still only getting an index of all files in my Apache htdocs folder. If I open one of the files it just shows the Coldfusion Markup/HTML source code. Nothing parsed.
感谢您的任何暗示什么可能会错过吗?
Thanks for any hints on what I could be missing?
编辑:结果
的三个问题想implenent:的结果
1.我可以加载使用绝对路径的模块,如D:/ Coldfusion8 / lib中...结果
2.我的lib /文件夹WSCONFIG只包含jrunwin32.dll一个名为dll文件。尝试使用此?结果
3. LIB / WSCONFIG夹不包含jrunserver.store文件。不知道这里做什么
Three questions trying to implenent:
1. Can I load modules using absolute paths, like D:/Coldfusion8/lib...?
2. My lib/wsconfig folder only contains a dll file named jrunwin32.dll. Trying to use this?
3. The lib/wsconfig folder does not contain a jrunserver.store file. Not sure what to do here
推荐答案
这听起来就好像你的Apache配置是不正确的,因为它不会听起来似乎是有正确处理的CFM文件。
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.
首先,是有使用CF8特殊原因? CF9已经一段时间了,所以如果从头开始去那么我建议采取看看这个吧。
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.
这一边,我会为您在你的httpd.conf以下(或任何你Apache的配置文件被命名为)
That aside, I'd check for the following in your httpd.conf (or whatever your apache config file is named)
首先,这是.CFM作为的DirectoryIndex可以接受的(可以有其他的指标也一样)
Firstly, that .cfm is acceptable as a DirectoryIndex (can have other indexes as well)
DirectoryIndex index.cfm
其次,该JRUN处理程序正确配置(如此反复,在httpd.conf)
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>
这是从我的开发VM拍摄,我有CF8作为一个单一的服务器安装在的/ opt / coldfusion8 /
This is taken from my development VM, I have CF8 as a single-server install in /opt/coldfusion8/
一旦你有了这些线(与路径/端口等适合您的环境)重新启动Apache,它应该工作正常。
Once you have those lines in (with the paths/ports etc appropriate for your environment) restart apache and it should work fine.
如果您已在多服务器安装等安装CF8然后请注明,并期待相应地调整我的意见
If you have installed CF8 in a Multiserver etc. install then please specify and will look to adjust my advice accordingly
这篇关于为什么ColdFusion的MySQL的的Apache未在本地主机上运行,如果一切设置和连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!