CFMX on Intel Macs - The Definitive Guide
Updates
-
wordpress.com - I moved over to wordpress.com for hosting. The switch will save me about $300/year. WordPress.com doesn’t support all the features/custom plugins I was using, which is actually nice because those were causing me some headaches.
Also, I discovered that the “losless” export feature, is only as losless as the import feature. For some reason wordpress.com wouldn’t import the article, most likely because of those self-same plugins. So I had to recreate it and in doing so, I have lost the comments. I do have a backup of the comments, and will be integrating some of the more salient points (compile time, apache config issues, support for other apache versions). It turns out - the comments were imported, just associated with a url that doesn’t exist (probably because of the failure to import my pages). I’ve requested some assistance from the wordpress.com support staff to see if I can get them mapped back to the correct post.
The import/export also doesn’t handle importing users, so everyone will have to re-create their accounts.
I apologize for everyone for any inconvenience.
-
NATIVE INTEL SUPPORT! - that’s right. But not from Adobe. Beta two of Blue Dragon, the CFML Runtime from New Atlanta, works natively on intel macs. For some reason the website downloads seem broken, but you can pull it from their ftp site: ftp://ftp.newatlanta.com/public/. The installer isn’t a universal binary, but it seems to run ok. And I’m not thrilled about the way the app is launched (startup item vs. launchd), but it seems to run pretty well here. It’s definitely a contender.
Overview
On June 6, 2005, Apple formally announced the coming switch to the Intel processor, as well as the Developer Transition Kit (an intel mac with development software and preview releases). Fast forward to one year later. Intel based Mac notebooks and mini’s have been out in the hands of the public for several months. Many application vendors including major ones like Adobe, the former Macromedia, and Microsoft have yet to deliver even beta versions of many of their products for Intel based macs.
In some sense the delay is understandable. There are no Intel based Mac servers, or even pro desktops. However, I still find the lack of an Adobe JRun or CFMX port a little troubling. There is very little C code involved in these applications, being Java based. The Verity search engine has never been supported on Mac OS X (and we all know Lucene is better anyway). But Java runs great on the Intel Macs.
In fact, JRun and CFMX can be made to run very nicely on the Intel Macs. By mostly bypassing the C/C++ code and where that’s not an option a straight recompile seems to do the job (mod_jrun), CFMX runs extremely fast on a MacBook Pro.
This guide does require some level of comfort with a command prompt, compiling code, modifying config files, dealing with apache issues, and understanding unix permissions. If this sounds even remotely scary or difficult to you, you’ll probably want to wait for a supported version.
Disclaimer
The intent of this is guide it to walk you through the installation and configuration of CFMX Developer Edition on an Intel based Mac. I developed this guide on my own personal MacBook Pro. I can’t guarantee any of this will actually work for you, and if you hose your machine or loose data following these instructions, it’s nobody’s fault but your own. Please back up any files before you edit them!
Please also note that nothing in this guide is supported or endorsed by Adobe.
Index
- Downloads
- Install
- Compile the Apache HTTPD/JRun4 Connector
- Configure JRun to use the Connector
- Manually configure Apache
- Start/Restart Services
- MySQL DataSource Setup
- Multiple Instances
- Conclusion
Downloads
You will need the following downloads:
- Apple Developer Tools (XCode)
- CFMX 7 (Developer Edition)
- Lingon
- JRun OEM SDK (full version, not platform specific)
- MySQL Connector-J (optional)
note: more recent versions are available, but do not seem to work correctly. 3.1.10 is the last version known to work properly with CFMX, and support MySQL 5 advanced features, such as stored procedures.
Install
- Install the Developer Tools
- Perform a full, default install. I know it’s large, but it works. Cherry picking components has caused folks problems.
- Install CFMX 7.02.
- The installer runs under Rosetta (PPC Emulation), but works just fine.
- Do not install the startup script.
- Do use the multi-server configuration.
- Do use the built-in web server.
- Install Lingon
- take a few minutes to familiarize yourself with the user interface.
- JRun OEM SDK
- warning: do not use stuffit! This must be uncompressed from the command line.
- this doesn’t have an installer, so for now, just move it to it’s own folder.
- create a jrun_sdk folder, and move the zip file to it.
- MySQL Connector-J
- no installer here either, just unzip the archive (stuffit’s ok)
- Copy the mysql-connector-java-3.1.10-bin.jar into /Applications/JRun4/servers/cfusion/cfusion-ear/\
cfusion-war/WEB-INF/cfusion/lib
Verify the Installation
The first thing we need to check is that we can actuall launch CF. To do this, open up a terminal window, and enter the following command:
sudo /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -server -Djava.awt.headless=true -jar /Applications/JRun4/lib/jrun.jar -start cfusion
If everything is installed properly, you should be able to browse to
http://127.0.0.1:8300/CFIDE/Administrator/,
where you should be able to complete the installation, and access the admin.
Setup Lingon
Launch Lingon. Fire up the assistant, which will walk you through setting up CF as a daemon (service). A the “What do I want to do” screen, select “Run a job at startup” (the default), and click Next. On the next screen, the label can be anything you want, but something descriptive such as “CFMX Service” would be appropriate. Uncheck “Launch only when I log in”, and check “Must run as root” (the server will start for all users, and be started by root). Click Next. The last step is to enter the job, which will be the same as the command we started above, but without the “sudo”, so:
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -server -Djava.awt.headless=true -jar /Applications/JRun4/lib/jrun.jar -start cfusion
In Lingon, the Load, Unload, and Reload buttons will act to start, stop, and restart ColdFusion.
Compile the Apache HTTPD/JRun4 Connector
If you’re running a regular Mac OS X installation, you have Apache 1.3 already installed. If you’re running Mac OS X Server, you have Apache 1.3 and/or 2.0. Some folks may have a self-compiled Apache 2.1 or Apache 2.2, or possibly a third-party build. That’s over 4 different versions of Apache to support, so building modules for all these can be a bit sticky. This guide currently presents instructions for compiling the module for Apache 1.3, as I only have access to a single machine (Macbook Pro) running a non-server OS X install. Steven Ross has a blog entry on how he was able to successfully get things going with Apache 2.2, which should translate fairly well for Apache 2.
I would distribute my binary, but I don’t know that it’s legal, nor would it necessarily work with your machine. So you’re going to have to compile the connector yourself. Fortunately it’s not all that difficult to do, if you’ve ever compiled apache from source, or any other apache modules, this shouldn’t be too difficult for you. The difficult part was locating the source code for the module. It used to be distributed along with CFMX, but in recent releases it’s been left out. Turns out there’s an “OEM” kit for JRun4 (as you now know), that has what we need.
Open a terminal, and cd into the folder where the JRun OEM SDK is located. Once there, from the command line, issue the command unzip -a jrun4-sdk.zip. The -a is a critical piece, don’t miss it. Now, cd into src/connectors/src. This is where the connector source code is located. This needs unzipped in the same manner: unzip -a ApacheModule.zip. Now the source code is available for you to compile.
Compiling the source code utilizes the Apache apxs command line utility which will configure the source for your specific Apache installation. I’m using the bundled Apache web server that’s enabled with Personal Web Sharing, via the Sharing System Preference Pane. The command line is:
apxs -c -Wc,-w mod_jrun.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c
This will chug away for a bit, and when it’s done, you’ll have a mod_jrun.so file. This should not take a long time to run at all. These Core Duo and Core 2 Duo Intel processors are very quick. Unless you’re already using up all your available system memory, and are recording video to disk or something, it should only take a few seconds.
The last step is to copy the .so file to the location apache puts it’s modules:
sudo cp mod_jrun.so /usr/libexec/httpd
This isn’t strictly necessary — the .so can be put anywhere on your local filesystem, and Apache can find it as long as it’s referenced correctly in Apache’s configuration. I prefer to keep everything together however.
Configure JRun to use the Connector.
This is the part I hate. The manual configuration of JRun and Apache has to be done because wsconfig is fairly broken under OS X Intel.
This bit involves disabling the built-in web server (optional), and enabling the connector proxy service. To do this, edit the /Applications/JRun4/servers/cfusion/SERVER-INF/jrun.xml You’ll need to change a few entries.
To disable the web server (optional), we need to find the section around line 408 that looks something like this:
<service class="jrun.servlet.http.WebService" name="WebService">
<attribute name="activeHandlerThreads">25</attribute>
<attribute name="backlog">500</attribute>
<attribute name="interface">*</attribute>
<attribute name="keepAlive">false</attribute>
<attribute name="maxHandlerThreads">1000</attribute>
<attribute name="minHandlerThreads">1</attribute>
<attribute name="port">8300</attribute>
<attribute name="threadWaitTimeout">300</attribute>
<attribute name="timeout">300</attribute>
</service>
Inside of that service tag, we need to add an attribute named deactivated, and set
it to true. If the attribute already exists for you, you’ll just need to change it
to true. The resulting code should look like this (the change being bolded):
<service class="jrun.servlet.http.WebService" name="WebService">
<attribute name="activeHandlerThreads">25</attribute>
<attribute name="backlog">500</attribute>
<attribute name="interface">*</attribute>
<attribute name=”deactivated”>true</attribute>
<attribute name=”keepAlive”>false</attribute>
<attribute name=”maxHandlerThreads”>1000</attribute>
<attribute name=”minHandlerThreads”>1</attribute>
<attribute name=”port”>8300</attribute>
<attribute name=”threadWaitTimeout”>300</attribute>
<attribute name=”timeout”>300</attribute>
</service>
If you choose not to disable the built-in web server, you will be able to access the coldfusion admin via the http://localhost:8300/CFIDE/Administrator/ URL even if there’s a problem with your apache configuration. This can come in handy in determining why CF is not working (is it apache, or is it cf?). If CF isn’t working via the built-in webserver, something is seriously wrong with CF.
The change to enable the connector proxy is also in the jrun.xml. In fact, it should be in the next section, looking like this:
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService">
<attribute name="activeHandlerThreads">25</attribute>
<attribute name="backlog">500</attribute>
<attribute name="deactivated">true</attribute>
<attribute name="interface">*</attribute>
Just change the deactivated attribute to false, like so:
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService">
<attribute name="activeHandlerThreads">25</attribute>
<attribute name="backlog">500</attribute>
<attribute name="deactivated">false</attribute>
<attribute name=”interface”>*</attribute>
There’s one last thing to do to configure JRun, and that’s setup the server store and wsconfig.properties. You’ll need to create the /Applications/JRun4/lib/wsconfig directory, and create a “1″ directory underneath it. Inside the wsconfig directory, create a wsconfig.properties file. It’s just a text file, and it’s contents should be something like this:
1=Apache,/etc/httpd,"","","" 1 .srv=localhost,"server1"
Inside the new “1″ directory, create a new jrunserver.store file (again, just a text file). That file should look something like this:
proxyservers=127.0.0.1:51020
Note that your port (default 51020), may be different. This can be determined from the JRunProxyService section of the jrun.xml file you edited eariler, if the default doesn’t work for you. This is highly unlikely however.
That’s it for setting up JRun, so on to Apache!
Manually Configure Apache
Since wsconfig does not work with OS X Intel (it doesn’t recognize any web servers as supported), we’re going to have to configure Apache manually. To modify the configuration of the system web server, you’ll need to edit the /etc/httpd/httpd.conf file, as root. To do this, you can sudo emacs /etc/httpd/httpd.conf, or temporarily change the permissions on the file (using sudo chown/chmod), or figure out how to launch your favorite text editor as root.
The module needs to be defined and loaded before we can do anything with it. This will require adding an AddModule Line and a LoadModule line. Look through your httpd.conf, and find the two sections. At the bottom of each, add the appropriate version of these two lines:
LoadModule jrun_module libexec/httpd/mod_jrun.so AddModule mod_jrun.c
Now we need to configure the module. Note that your bootstrap port (default 51020) may be different. This can be determined from the JRunProxyService section of the jrun.xml file you edited eariler, if the default doesn’t work for you. After the end of the AddModule section of the httpd.conf, add the
following:
<IfModule mod_jrun.c> JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore /Applications/JRun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf </IfModule>
It’s handy to be able to access the coldfusion administrator and cfdocs, so we’ll need to add some aliases. Doing it this way, if you have multiple virtual hosts, and multiple cf instances, you can keep the cfadmin in one location, which makes upgrading easier. Locate the section of the httpd.conf where the Alias /icons line is, and add the following:
Alias /CFIDE/ "/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE/" Alias /cfide/ "/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE/" Alias /CFIDE/Administrator/ "/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE/administrator/" Alias /cfdocs/ "/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/cfdocs/" <Directory "/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
Last but not least for our Apache configuration, we want to be able to go to http://localhost/~user/, and have it automatically load up an index.cfm file. Simply find the DirectoryIndex line, and add index.cfm to it, something like this:
DirectoryIndex index.cfm index.php index.html dochome.htm
That’s it for the apache configuration!
Start/Restart Services
In Lingon, reload your CFMX User Daemon. In the Sharing System Preference, enable Personal Web Sharing if it’s disabled, or turn it off and then back on if it is enabled. If you start it, and it stops at “starting”, and never starts, you have a problem with your apache configuration. Once you correct the problems, you will need to either reboot your machine, or start apache from the command line.
Finally, after everything is up and running, go to http://127.0.0.1/CFIDE/Administrator/, you should be able to log in using the password you specified during the CFMX installation.
MySQL DataSource Setup
Well my dear readers, consider this a bonus for having gotten this far. I
know not everybody will be using MySQL, but it’s popular enough I thought it
was important to include. Want to use mysql 5, with all the nice features?
Well, if you followed the install instructions for MySQL Connector-J, you
will be able to.
Create a new datasource, and for the driver, select “other”. For the JDBC
Url, use “jdbc:mysql://[host]:[port]/[database]” (replacing [host], [port],
and [database] with the appropriate values. For Driver Class and Driver
name, use “com.mysql.jdbc.Driver”. Everything else (including login and
password), is like a normal datasource setup.
Multiple Instances
Rather than duplicate the effort, Stephen Collins, author of the The ACME Guide,has documented on his blog what’s required to get this going. Thanks Stephen!
Conclusion
Well, by now you’re probably bored to tears, asking yourself “why, oh why
did I inflict this pain upon myself?”. If you made it through, then I
welcome you to the wonderful world of CFMX on MacIntel. I can’t believe I
wrote this whole thing!
If you find any errors, omissions, or typo’s, or have any suggestions for
improving this document, please don’t hesitate to let me know.
So long for now, and thanks for all the CF!
Mark
[...] which is what r1i.com’s runs on. Hell, apparently, with the whole Intel thing, you can run ColdFusion on your Mac now so that’s going to make coding even easier. I also got the Adobe CS2 suite put on here, [...]
When I’m trying to compile the connector i get this error please help me
travis-computer:~/desktop/cf/src/connectors/src root# apxs -c -Wc,-w mod_jrun.c jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c jrun_mutex.c jrun_proxy.c jrun_utils.c
gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -w -c mod_jrun.c
apxs:Break: Command failed with rc=16777215
travis-computer:~/desktop/cf/src/connectors/src root#
Hi Mark,
First, I would like to thank you for writing all this out - its been more than helpful. And I would also like to preface my question with I’m a Mac newbie - only been using it for 3 days and very confused.
I went through each of your steps [successfully, I thought] and upon completion ,the CF Admin isn’t coming up.
http://127.0.0.1/CFIDE/Administrator shows me a directory list
and
http://127.0.0.1/CFIDE/Administrator/index.cfm gives me a 500 error
I went through and re-checked all my work and it SEEMS right [obviously, something isn't]. Have you ever encountered this sort of issue?
I appreciate any help you can provide.
Thanks,
Sarah
Mark, like Sarah, I have to thank you for your post, I’ve gone through it as she did, and I too have the same issues that she listed above. Although I don’t get a 500 error, just nothing happens. Any ideas or thoughts on what’s going on would be appreciated.
Thanks
Mark
Sorry for the double comment, but wanted to share how I fixed the above errors. I didn’t check to make sure the cp command worked for .so file, so I naviagated to the src folder and ran it again just to make sure. But I think what corrected it was modifying the DirectoryIndex line in the right place, first time I modified the DirectoryIndex line inside mod_dir.c inside mod_php4.c which is close to the bottom and not what I should have done, I went back and modified the one in mod_dir.c.
Thanks again for the post … off to code
Thank you for writing all of this out as it is very helpful as I make my transition to my new intel mac smoother. Is it possible to add screen shots for the post? I got half way thru installing CFMX on my system last night and will hope to be done tonight.
Here’s another way to get CF installed under OS X for development purposes. It bypasses most of the problems and adds a few benefits as well…
http://www.cfinternals.org/blog/2007/05/deploying_coldf.html
You are the best!!! I have been trying to get this to work and your instructions are the most accurate for the Intel Macs. I forgot the sudo when trying to copy the .so file and about had it (this is my 4th day of trying different instructions) but I looked at your instructions again, retyped, and it went through. Whoohoo!! For those who wants to edit outside of the Terminal, download TextWrangler. It’s free and it lets you view and edit invisible files. Just need to install MySQL and try this thing out!
I am having problems connecting CF to MySQL 5.0.41. I get this error message: Connection verification failed for data source: test
java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
The root cause was that: java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
You think maybe I need to place the connector somewhere else? Or is there a different port? I tried 8300, 51020. I tried to look for info on other sites but not sure — I moved my .jar file for the connector to the JRun servers/lib/ per another site but nothing. Help? Thanks!
Hello Mark:
First thanks for share this information and take the time to writted.
We got the same error that dothedo (comment 2) and we try to find the answer for all wordPress, but we failed, please can you tell us how to solve this?
p.d. I’ sorry for my english, is not my first lenguage
Just finished step 2 of “Install CFMX 7.02.” The directions mention not to install start up scripts. This might be a dumb question, but just to verify, this just means not to start CF on start up right?
(step 1 of installing the Developer Tools went fine - but the file sure was large coming in at around 2.8 gigs or something for the install).
So far, I’m running into the same error as before, when I install with a built in server instead of the multi server. The installation gets done and I get the warning:
You have successfully completed the first step in installing Macromedia
ColdFusion MX 7.
However, the ColdFusion service did not install successfully, and the web
server and/or website could not be reached on port 80. Possible reasons include
the ColdFusion service failing to start, blocked 2920 or 51011 ports, or the
web server and/or website is not running or is not configured to listen on port
80 (in which case this is not an error).
Please complete the following steps to complete the installation…
- - -
but I haven’t Installed Lingon, JRun OEM SDK, and MySQL Connector-J yet so I’m crossing my fingers that this will go away once all this was done. I just wanted to post my progress to see what the thoughts were.
The problem mentioned is the same problem mentioned here:
http://groups.google.com/group/macromedia.coldfusion.getting_started/browse_thread/thread/94cb31ed1e502732/a6c4772583520f5e?lnk=st&q=&rnum=4
And the solution was actually the blog post on this page.
dothedo & letza,
Errors during the module compilation are the result of not having the Apple Developer tools fully installed, or not following the instructions when it comes to unzipping the jrun sdk.
scwilder,
Make sure you have MySQL up and running, and accessible via TCP/IP. If you can’t get it working, try the MySQL mailing lists.
srizvi1,
If you follow the instructions to the letter, you won’t get that error, because you’ll be installing for the standalone server, then making the Apache integration working.
During installation there’s a checkbox for installing startup scripts. These startup scripts try and call the jrun executable, which will not work. If you install them, your machine will start slower as it attempts to, and fails, in starting CF. That’s what Lingon is for.
Mark, excellent tutorial. I now have ColdFusion running on my Intel MacBook Pro. I have to still figure out and get used to a couple of things, but I’ll work on that on my own (for example, I installed coldfusion on my work PC and that runs on http://localhost:8500, but on my mac, its different without the port - and thats confusing me a little for the tutorials I’m trying to follow).
I also have to figure out how to do MySQL. If you have any advice on that, its definitely welcome. I did the connector installation, but dont have actual MySQL installed and set up.
- - -
Here are some suggestions for your tutorial that I think would make it a little easier to follow:
Suggestion 1: The start up scripts thing is a little confusing. It never asked me anything about start up scripts, just “do you want CMFX to run on start up?”
I know you clarified this a bit, but I still quite didn’t get this.
Suggestion 2: Make a new folder for jrun prior to the extract. I got confused and just extracted where I had downloaded the file.
Suggestion 3: Tell us what point to get out of terminal. I followed this step:
srizvis-computer:/Applications/jrun_sdk srizvi1$ sudo /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -server -Djava.awt.headless=true -jar /Applications/JRun4/lib/jrun.jar -start cfusion
Password:
and then got this…
Starting Macromedia JRun 4.0 (Build 92909), cfusion server
07/11 09:30:30 warning The Trial License evaluation period will expire in 30 days.
07/11 09:30:32 info JRun Naming Service listening on *:2902
07/11 09:30:32 warning No sessionSecret has been specified in jrun.xml. Installing a self generated sessionSecret.
07/11 09:30:32 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
07/11 09:30:32 info JRun Web Server listening on *:8300
07/11 09:30:33 info Deploying enterprise application “JRun 4.0 Internal J2EE Components” from: file:/Applications/JRun4/lib/jrun-comp.ear
07/11 09:30:33 info Deploying EJB “JRunSQLInvoker” from: file:/Applications/JRun4/lib/jrun-comp.ear
Server cfusion ready (startup time: 4 seconds)
07/11 09:30:33 info Deploying enterprise application “cfusion-ear” from: file:/Applications/JRun4/servers/cfusion/cfusion-ear/
07/11 09:30:33 info Deploying web application “Macromedia Coldfusion MX” from: file:/Applications/JRun4/servers/cfusion/cfusion-ear/
07/11 09:30:35 INFO License Service: Flex 1.5 CF Edition enabled
07/11 09:30:35 INFO Starting Flex 1.5 CF Edition
07/11 09:30:35 user JSPServlet: init
07/11 09:30:35 user CFMxmlServlet: init
07/11 09:30:35 user CFMxmlServlet: Macromedia Flex Build: 87315.134646
07/11 09:30:35 INFO Macromedia Flex Build: 87315.134646
07/11 09:30:36 user MessageBrokerServlet: init
07/11 09:30:36 user ColdFusionStartUpServlet: init
07/11 09:30:36 user ColdFusionStartUpServlet: ColdFusion MX: Starting application services
07/11 09:30:36 user ColdFusionStartUpServlet: ColdFusion MX: VM version = 1.4.2-76
07/11 09:30:37 Information [scheduler-9] - /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/logs/server.log initialized
07/11 09:30:37 Information [scheduler-9] - Starting logging…
07/11 09:30:37 Information [scheduler-9] - Starting crypto…
07/11 09:30:37 Information [scheduler-9] - Starting license…
07/11 09:30:37 Information [scheduler-9] - Starting License server …
07/11 09:30:40 Information [scheduler-9] - Starting scheduler…
07/11 09:30:40 Information [scheduler-9] - Starting WatchService…
07/11 09:30:40 Information [scheduler-9] - Starting debugging…
07/11 09:30:40 Information [scheduler-9] - Starting sql…
07/11 09:30:40 Information [scheduler-9] - Starting mail…
07/11 09:30:41 Information [scheduler-9] - CORBA Configuration not enabled
07/11 09:30:41 Information [scheduler-9] - Starting cron…
07/11 09:30:41 Information [scheduler-9] - Starting registry…
07/11 09:30:41 Information [scheduler-9] - Starting client…
07/11 09:30:41 Information [scheduler-9] - The metrics service is disabled for the J2EE edition
07/11 09:30:41 Information [scheduler-9] - Starting xmlrpc…
07/11 09:30:41 Information [scheduler-9] - Starting graphing…
07/11 09:30:42 Information [scheduler-9] - Starting verity…
07/11 09:30:42 Information [scheduler-9] - Starting archive…
07/11 09:30:42 Information [scheduler-9] - Starting document…
07/11 09:30:42 Information [scheduler-9] - Starting eventgateway…
07/11 09:30:43 Information [scheduler-9] - /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/logs/eventgateway.log initialized
07/11 09:30:43 Information [scheduler-9] - Starting Event Backend Handlers
07/11 09:30:43 Information [scheduler-9] - Initialized EventRequestDispatcher with a Thread Pool size of 10
07/11 09:30:43 Information [scheduler-9] - Initializing EventRequestHandler
07/11 09:30:43 Information [scheduler-9] - Starting Event Gateways
RMI Registry started and listening on port 1099
07/11 09:30:43 Information [scheduler-9] - Starting FlexAssembler…
07/11 09:30:43 Information [scheduler-9] - ColdFusion started
07/11 09:30:43 user ColdFusionStartUpServlet: ColdFusion MX: application services are now available
07/11 09:30:43 user CFSwfServlet: init
07/11 09:30:43 user CFCServlet: init
07/11 09:30:43 user FlashGateway: init
07/11 09:30:43 user CFFormGateway: init
07/11 09:30:43 user CFInternalServlet: init
07/11 09:31:21 user FileServlet: init
07/11 09:31:22 Information [web-0] - Initialize client.properties file
07/11 12:34:13 Information [scheduler-0] - Run Client Storage Purge
07/11 20:26:10 Information [scheduler-0] - Run Client Storage Purge
07/11 20:50:57 error Requested resource ‘/favicon.ico’ (%2ffavicon.ico) not found
07/11 20:51:02 Information [web-0] - Pool Manager Started
07/11 20:51:09 Information [web-0] - Started the SMS test server.
07/11 20:51:09 Information [web-0] - SMSGateway (Book Club 5551212) Initializing SMS gateway with configuration file /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/gateway/config/sms-test.cfg
07/11 20:51:09 Information [Thread-25] - Starting Gateway: ID=Book Club 5551212, Class=coldfusion.eventgateway.sms.SMSGateway
07/11 20:51:09 Information [Thread-25] - SMSGateway (Book Club 5551212) Binding to SMSC
07/11 20:51:10 Information [Thread-25] - SMSGateway (Book Club 5551212) Bind was successful
(installing Lingon)
07/11 20:57:13 error Security alert: attempt to connect to JRun server from a 192.168.1.136 host.
07/11 20:57:15 error Security alert: attempt to connect to JRun server from a 192.168.1.136 host.
07/11 20:57:16 error Security alert: attempt to connect to JRun server from a 192.168.1.136 host.
- — -
I really didn’t know when to get out.
- - — -
Ok, this last suggestion is a ltitle confusing because its been a few days since I did this. I just pasted the following:
In the compile apache section..
“This will chug away for a bit, and when it’s done, you’ll have a mod_jrun.so file. This should not take a long time to run at all. T”
then perhaps mention the password request?
- - - -
I can’t remember, was there a password request that comes up? I’m sorry, I can’t remember clearer feel free to disregard that. I thought I would paste it to you anyways in case you knew what I was trying to say.
Here is a little TIP:
When you are editing the MySQL portion:
YOU QUOTE:
For the JDBC Url, use “jdbc:mysql://[host]:[port]/[database]” (replacing [host], [port], and [database] with the appropriate values.
UNQUOTE
Remember to NOT USE the brackets! That has thrown alot of people off.
so as an example use (for use on my laptop):
jdbc:mysql://localhost:3306/database_name_here
I’ve been using CF 7 for a while now thanks to your excellent guide, but now I want to switch to CF 8. Do you have any suggestions for removing CF 7 after it has been installed using your guide? Thanks!
After following this tutorial to get CF up and running on my intel macbook pro, it seems that to view web pages off my computer, I need to know various file locations and web addresses. So I’m making this post to make sure that I have everything down. I also was wondering a little bit on the “why” of all these file locations, various web addresses, etc. in case anyone wanted to shed some light.
1) Now, when I go to http://localhost/index.cfm, I see my custom coldfusion “hello world” page ( Hello world.. The time is now {ts ‘2007-09-03 09:23:44′} ) that I’ve created.
And when I go to http://localhost/CFIDE/administrator/, it brings me up to my ColdFusion administrator page.
So for updating these pages (ie, updating my ColdFusion content), I do this by updating content in:
Applications/Jrun4/servers/cfusion/cfusion-ear/cfusion-war/
2) However, when I go to just http://localhost/ in my browser, it brings me up to that apache page that says this:
“Seeing this instead of the website you expected? This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software…. ” etc.
And after following the trail of the apache_pb.gif file via spotlight, it seems that the files for this page are located in:
Macintosh HD/Library/WebServer/Documents/
So I now know the location of that, which is kind of weird to me because “localhost” gets its info from one place, while “localhost/anything” gets its info from another.
3) I’m trying to get PHP and MySQL running on my Comp now so that I can use MySQL with ColdFusion. [Before, I used to use MS Access (my site's not really that high traffic which is why I can get away with MS Access) since I did most of my development on a PC. But now that I want to work off of my Mac, unless there's some sort of method via parallels or something to get MS Access working with the CF on my comp, I should probably start using MySQL.]
So I installed MySQL and then because I wanted to run phpMyAdmin, I also installed PHP 5. (I’ll post the details on how I did MySQL and PHP 5 in a separate post to help out anyone like me who had the same initial questions - trying to do my part to help make this page a 1 stop page).
Anyways, after the PHP 5 and MySQL installation, I put all the phpMyAdmin files in my Sites folder. But to see the sites folder, I have to go to a different IP everytime /~myusername/… to get the IP, I have to open up my system preferences, then select Sharing, and then select Personal Web Sharing. Once I get the IP address, I put it in my browser, and because my phpMyAdmin files are at the root, my phpMyAdmin just fires up.
So now the content in my sites folder is seen at yet another web address, and I have now a third location on my computer to put in web content I want to see off of webpages.
So after all this is said and done, what’s the best place for me to put my phpMyAdmin files?
I used these steps when I first bought my MBP a few months ago. Do I need to reverse everything to install CF 8?
I forgot to post but I got everything running. I didn’t follow your directions to the T I found out. I wasn’t clear on a few items and assumed you were suppose to do it one way and not really want you recommended. So everything is working after I tried going through the instructions again one more time. Thanks!!!