Skip to main content
Inspiring
October 14, 2007
Answered

Cant Access CFadmin with Apache2.2

  • October 14, 2007
  • 21 replies
  • 2386 views
CAN SOMEONE PLEASE HELP ME OUT HERE?

Please can someone tell me what to do in order for me to access the CFMX7 admin. this is what i can tel you so far:

My conf file is located here:
C:\Program Files\Apache Software Foundation\Apache2.2\conf

the CFIDE file is located here:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\CFIDE

my CF server files are located here:
C:\JRun4

my CF install details are:
CFMX7 (enterprice edition) installed with multi server support.

I admit i'm a novice so please explain any suggestions very simply. I could really do with some help here 😞 Ive read all kinds of conflicting instructions online, and most of which have confused me.

one thing i am concerned/confused about is that most of what i have read mentions a file called:
JRunConfig Serverstore "C:/JRun4/lib/wsconfig/1/ jrunserver.store"

the jrunserver.store file simply does not exist on my system!???
This topic has been closed for replies.
Correct answer zac1234
.RIGHT THATS IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I HAVE GIVEN UP

or have i?........

to finish this very long thread off - i uninstalled CF and Apache 2.2 and removed all evidence of them being on my system.

then...

i reinstalled CF (single server version) then i installed apache 1.3.39 and guess what - it all works.

i don’t know why it works, i don’t know why i even thought to try it and i don’t care why either. it works and that all that matters.

what’s worrying me is that all this was just a test on my local PC before the real thing takes place at my office on a 2003 server.

if only i could just keep it to CF on IIS, life would be so much simpler.

THANK YOU ALL VERY MUCH FOR YOUR HELP. I HAVE LEARNT ALLOT FROM THE INFO YOU HAVE POSTED

zac1234 is signing off.

21 replies

zac1234AuthorCorrect answer
Inspiring
October 16, 2007
.RIGHT THATS IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I HAVE GIVEN UP

or have i?........

to finish this very long thread off - i uninstalled CF and Apache 2.2 and removed all evidence of them being on my system.

then...

i reinstalled CF (single server version) then i installed apache 1.3.39 and guess what - it all works.

i don’t know why it works, i don’t know why i even thought to try it and i don’t care why either. it works and that all that matters.

what’s worrying me is that all this was just a test on my local PC before the real thing takes place at my office on a 2003 server.

if only i could just keep it to CF on IIS, life would be so much simpler.

THANK YOU ALL VERY MUCH FOR YOUR HELP. I HAVE LEARNT ALLOT FROM THE INFO YOU HAVE POSTED

zac1234 is signing off.
BKBK
Community Expert
Community Expert
October 16, 2007
Zac1234 wrote:
However if i type http://127.0.0.1:8300 the result is "it works"

So it should. 8300 is the default port for a multiserver installation.

Inspiring
October 16, 2007
Yes I saw your reply about the servername and network, but can't help there.

See this post:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=2&threadid=1191527&CFID=10989581

Particularly this one:

Ok, here is the solution that worked for me. In italics I'll put the notes version, and In bold I'll put the actual commands that I
ran with the output generated.

NOTE: {cf_root} = C:\YourColdFusionLocation\
(Mine was D:\ColdFusionMX7 (as I used to use this on linux and I like this format)

Also NOTE: {apache_path} = C:\Apache Software Foundation
(Mine was D:\Apache Software Foundation [I use C:\ for Windows and D:\ for data etc])

cd {cf_root}\runtime\jre\bin
(I have ran the coldfusion installer and the wsconfig was generated with a Jrun config of the "bad" non-working version of
wsconfig.jar, note: get the new version of wsconfig.jar before moving forward with this procedure!)

EDIT: ColdfusionMX must be running for this procedure to work.

java -jar {cf_root}\runtime\lib\wsconfig.jar -remove -ws Apache -dir "{apache_path}\Apache2.2\conf" -v
(this removes the Jrun config from Apache config files etc)

java -Dtrace.ci=1 -jar {cf_root}\runtime\lib\wsconfig.jar -server coldfusion -ws apache -dir "{apache_path}\Apache2.2\conf" -bin
"{apache_path}\Apache2.2\bin\httpd.exe" -coldfusion -v
(this creates the new Jrun connector and configures your httpd.conf again)


OK Here is my "REAL" commands and the output generated.


D:\ColdFusionMX7\runtime\jre\bin>java -jar D:\ColdFusionMX7\runtime\lib\wsconfig
.jar -remove -ws Apache -dir "d:\Apache Software Foundation\Apache2.2\conf" -v

The output was as follows:


Created file D:\ColdFusionMX7\runtime\lib\wsconfig\jrunwin32.dll
Could not find file D:\Apache Software Foundation\Apache2.2\apache.exe
Could not find file D:\Apache Software Foundation\Apache2.2\bin\apache.exe
Using Apache binary D:\Apache Software Foundation\Apache2.2\bin\httpd.exe
Parsing Apache configuration file D:\Apache Software Foundation\Apache2.2\conf\h
ttpd.conf
Wrote file D:\Apache Software Foundation\Apache2.2\conf\httpd.conf
Removed JRun configuration from Apache configuration file D:\Apache Software Fou
ndation\Apache2.2\conf\httpd.conf
Stopped Apache2.2 service
Deleted directory D:\ColdFusionMX7\runtime\lib\wsconfig\1
Wrote file D:\ColdFusionMX7\runtime\lib\wsconfig\wsconfig.properties
Started Apache2.2 service
The Apache connector was removed from "D:\Apache Software Foundation\Apache2.2\c
onf"

Now we re-create the Jrun connector by running this:

D:\ColdFusionMX7\runtime\jre\bin>java -Dtrace.ci=1 -jar D:\ColdFusionMX7\runtime\lib\wsconfig.jar -server coldfusion -ws apache -dir
"D:\Apache Software Foundation\Apache2.2\conf" -bin "D:\Apache Software Foundation\Apache2.2\bin\httpd.exe" -coldfusion -v

And the output was as follows:


Macromedia JRun 4.0 (Build 107948)
os.name: Windows 2003
os.version: 5.2
os.arch: x86
platform: intel-win
Extracting resource connectors/installers/intel-win/prebuilt/jrunwin32.dll
file defaulted
last modification date: Thu Apr 06 13:07:04 PDT 2006
size/compressed size: 73728/26315
to D:\ColdFusionMX7\runtime\lib\wsconfig\jrunwin32.dll
Created file D:\ColdFusionMX7\runtime\lib\wsconfig\jrunwin32.dll
findServers(): found server coldfusion at 127.0.0.1:2920
Found JRun server coldfusion at 127.0.0.1:2920
this host is safehaven:192.168.20.7
web server: Apache
web server directory: D:/Apache Software Foundation/Apache2.2/conf
verbose connector logging: false
apialloc: false
force resource extract from jar: true
CFMX: true
mappings: .jsp,.jws,.cfm,.cfml,.cfc,.cfr,.cfswf
filter mapping prefix: false
Using Apache binary "D:\Apache Software Foundation\Apache2.2\bin\httpd.exe"
Server version: Apache/2.2.3
Apache 2.2.3 is recognized
isValidVersion(): Apache is 2.2.3
Compiled in modules:
core.c
mod_win32.c
mpm_winnt.c
http_core.c
mod_so.c
Parsing Apache configuration file D:\Apache Software Foundation\Apache2.2\conf\h
ttpd.conf
Extracting resource connectors/apache/intel-win/prebuilt/mod_jrun22.so
file defaulted
last modification date: Thu Apr 06 13:07:04 PDT 2006
size/compressed size: 65536/25836
to D:\ColdFusionMX7\runtime\lib\wsconfig\1\mod_jrun22.so
Created file D:\ColdFusionMX7\runtime\lib\wsconfig\1\mod_jrun22.so
getProxyServerUrl(): 127.0.0.1:51011
Wrote file D:\Apache Software Foundation\Apache2.2\conf\httpd.conf
Added JRun configuration to Apache configuration file D:\Apache Software Foundat
ion\Apache2.2\conf\httpd.conf
Created file D:\ColdFusionMX7\runtime\lib\wsconfig\1\README.txt
Wrote file D:\ColdFusionMX7\runtime\lib\wsconfig\wsconfig.properties
Error stopping service. The web server must be restarted to complete this oper
ation.

IMPORTANT FINAL NOTES:

In the command I excluded the "- service SERVICENAME" (for use with windows) because it didnt work at all. So at this point you have
to MANUALLY restart Apache Service (through your Service panel, or start menu, whatever you feel like".

You should now be able to go to your IE and configure Coldfusion.

http://localhost/CFIDE/administrator/



ANOTHER IMPORTANT NOTE:

IN THE INSTRUCTIONS PROVIDED BY ADOBE IT STATES

cd {cf_root}/runtime/lib
java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache
-dir /opt/apache22/conf
-bin /opt/apache22/bin/httpd
-script /opt/apache22/bin/apachectl
-coldfusion -v
[-apxs]

First of all [-axps] is meant to be -axps without the brackets.. but it doesnt work anyhow, so just ignore it.

Secondly, the -script is SPECIFICALLY UNIX / LINUX. The proper command would be -service SERVICENAME, but I tried this also
using -service Apache2.2 (that was the service name in my Windows SERVICES console) but that didnt work either. So just ignore that
crap, and run the commands like I did and hopefully it will work for you.

Thanks, and good luck.



--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"zac1234" <webforumsuser@macromedia.com> wrote in message news:ff1nf1$8jq$1@forums.macromedia.com...
> thanks ken, have read through that but he doesnt offer anything different to
> what ive already done.
>
> did you see my earlier question about servername & network domain? what about
> that - could that be the problem?
>

zac1234Author
Inspiring
October 16, 2007
actually something interesting is happening.

in my jrunserver.store file the ip address keeps going missing.

it looks like this:

proxyservers=10.0.0.1

then i click save

restart the server

but then when i open up the jrunserver.store file again it looks like this:

proxyservers= ip missing????
zac1234Author
Inspiring
October 16, 2007
thanks ken, have read through that but he doesnt offer anything different to what ive already done.

did you see my earlier question about servername & network domain? what about that - could that be the problem?
Inspiring
October 15, 2007
See if this helps:

http://mattwoodward.com/blog/index.cfm?event=showEntry&entryID=019337C3-D191-780E-6D8875C588B0E4EA

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"zac1234" <webforumsuser@macromedia.com> wrote in message news:fevv0o$77r$1@forums.macromedia.com...
> ok i did as you said exactly but still no joy when tryign to access
> http://127.0.0.1/CFIDE/administrator/index.cfm.
>
> two things i would like to point out.
> 1, under my JRun4 folder i dont have a 'runtime' folder but i do have a lib so
> i cut out the 'runtime' bit
>
> 2, i have posted the results of runinng that comand on the cmd prompt. from
> looking at the httpd file it hasnt added the jrun info - should it have or
> should i now be opening the server config tool?
>
> these are the results of the cmp promp thingy
>
> C:\Documents and Settings\zac>cd \JRun4\lib
>
> C:\JRun4\lib>java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache
> -
> dir C:\Program Files\Apache Software Foundation\Apache2.2\conf -bin
> C:\ProgramFi
> les\Apache Software Foundation\Apache2.2\conf\bin\httpd -script C:\Program
> Files
> \Apache Software Foundation\Apache2.2\conf\bin\-coldfusion -v
> Usage:
> To use GUI:
> java -jar wsconfig.jar
> To use property file to specifiy options:
> java -jar wsconfig.jar -f <property-file-path>
> To use command line to specify options:
> java -jar wsconfig.jar [options]
>
> Options
> To install web server connector:
> -ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site>
> [-host <hostname>] [-server <servername>] | [-cluster <clustername>]
> [-username <username>] [-password <password>]
> [-norestart] [-l] [-a] [-v]
> [-map <.ext1[,.extn]>]
> [-filter-prefix-only]
> [-coldfusion] [-cfwebroot [<dir>]]
> [-bin <path>] [-service <servicename>] (Apache/Windows only)
> [-bin <path>] [-script <path>] [-apxs] (Apache/UNIX only)
> To remove web server connector:
> -remove -ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site>
> [
> -v]
> To remove all web server connectors:
> -uninstall [-v]
> To upgrade web server connector:
> -upgrade -ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site>
> [-v]
> To upgrade all web server connectors:
> -upgrade [-v]
> To list configured web servers:
> -list [-ws <IIS|Apache|SunONE|iPlanet|NES>] [-v]
> To list all JRun servers/clusters on specified host:
> -list -host <hostname> [-v]
> To get JRun version information for this jar file:
> -info
> To get this help:
> -help
>
> Descriptions
> -ws <IIS|Apache|SunONE|iPlanet|NES> web server
> -dir <path> Apache conf, SunONE, iPlanet or NES config
> direc
> tory
> -site <site> IIS web site name or number
> -host <hostname> JRun server address (default=localhost)
> -server <servername> JRun server name (default=default)
> -cluster <clustername> JRun cluster name
> -username <username> JRun server user name (default=guest account)
> -password <password> JRun server password (defaults=guest account)
> -norestart do not restart web server
> -l enable verbose logging for connector
> -a enable native OS memory allocation
> -v verbose output from connector installer
> -map <.ext1[,.extn]>
> -filter-prefix-only used with -map to allow suffix mappings
> thru the filter to the extension handler
> -coldfusion signifies CFMX rather than JRun
> -cfwebroot [<dir>] Directory containing CFMX web root
> (defaults=web
> root from cfmx install)
> -service <servicename> Apache Windows service name
> -bin <path> Apache server binary file
> -script <path> Apache Unix control script file
> -apxs build Apache module from source
>
> C:\JRun4\lib>
>
> i'm just about to try the virtual host thing now so i'll post back the results.
>
> thanks for your help so far.
>
>
>
zac1234Author
Inspiring
October 15, 2007
FAO Ken,

just though i'd let you know. ive got one of the problems sorted. the virtual hosts is now working.

for anyone else reading this post always remember if your document root containes spaces it should be enclosed with " " so for example:

DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/the_domain_folder

should be

DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/the_domain_folder"

get in there, back of the net, come on england - and all those other types of cheers!

1 problem down, 1 left
zac1234Author
Inspiring
October 15, 2007
ok i think i might know whats wrong here... well its just a guess anyway..... you know when you install apache.exe and it asks you to put in network domain and server domain ? should i have put in there localhost? or shoud i have put in there www.something.com ??? cus i think i did the latter.

zac1234Author
Inspiring
October 15, 2007
ok, if copy and paste this code in at the bottom of the httpd file i cannot get apache to start/restart.

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.wingmedia.co.uk
ServerAlias wingmedia.co.uk *.wingmedia.co.uk
DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wingmedia
</VirtualHost>

<VirtualHost *:80>
ServerName www.uassembly.com
ServerAlias uassembly.com *.uassembly.com
DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\uassembly
</VirtualHost>

i have checked through that text above and according to http://httpd.apache.org/docs/2.2/vhosts/name-based.html its spot on.

i'm gettiing really hacked off with this now. is there anyome i can pay to sign in remotly and do this for me? then i can just learn from what they have done.

aaahhhhhgggggrgrrr!
zac1234Author
Inspiring
October 15, 2007
ok i did as you said exactly but still no joy when tryign to access http://127.0.0.1/CFIDE/administrator/index.cfm.

two things i would like to point out.
1, under my JRun4 folder i dont have a 'runtime' folder but i do have a lib so i cut out the 'runtime' bit

2, i have posted the results of runinng that comand on the cmd prompt. from looking at the httpd file it hasnt added the jrun info - should it have or should i now be opening the server config tool?

these are the results of the cmp promp thingy

C:\Documents and Settings\zac>cd \JRun4\lib

C:\JRun4\lib>java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache -
dir C:\Program Files\Apache Software Foundation\Apache2.2\conf -bin C:\ProgramFi
les\Apache Software Foundation\Apache2.2\conf\bin\httpd -script C:\Program Files
\Apache Software Foundation\Apache2.2\conf\bin\-coldfusion -v
Usage:
To use GUI:
java -jar wsconfig.jar
To use property file to specifiy options:
java -jar wsconfig.jar -f <property-file-path>
To use command line to specify options:
java -jar wsconfig.jar [options]

Options
To install web server connector:
-ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site>
[-host <hostname>] [-server <servername>] | [-cluster <clustername>]
[-username <username>] [-password <password>]
[-norestart] [-l] [-a] [-v]
[-map <.ext1[,.extn]>]
[-filter-prefix-only]
[-coldfusion] [-cfwebroot [<dir>]]
[-bin <path>] [-service <servicename>] (Apache/Windows only)
[-bin <path>] [-script <path>] [-apxs] (Apache/UNIX only)
To remove web server connector:
-remove -ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site> [
-v]
To remove all web server connectors:
-uninstall [-v]
To upgrade web server connector:
-upgrade -ws <IIS|Apache|SunONE|iPlanet|NES> -dir <path> | -site <site>
[-v]
To upgrade all web server connectors:
-upgrade [-v]
To list configured web servers:
-list [-ws <IIS|Apache|SunONE|iPlanet|NES>] [-v]
To list all JRun servers/clusters on specified host:
-list -host <hostname> [-v]
To get JRun version information for this jar file:
-info
To get this help:
-help

Descriptions
-ws <IIS|Apache|SunONE|iPlanet|NES> web server
-dir <path> Apache conf, SunONE, iPlanet or NES config direc
tory
-site <site> IIS web site name or number
-host <hostname> JRun server address (default=localhost)
-server <servername> JRun server name (default=default)
-cluster <clustername> JRun cluster name
-username <username> JRun server user name (default=guest account)
-password <password> JRun server password (defaults=guest account)
-norestart do not restart web server
-l enable verbose logging for connector
-a enable native OS memory allocation
-v verbose output from connector installer
-map <.ext1[,.extn]>
-filter-prefix-only used with -map to allow suffix mappings
thru the filter to the extension handler
-coldfusion signifies CFMX rather than JRun
-cfwebroot [<dir>] Directory containing CFMX web root (defaults=web
root from cfmx install)
-service <servicename> Apache Windows service name
-bin <path> Apache server binary file
-script <path> Apache Unix control script file
-apxs build Apache module from source

C:\JRun4\lib>

i'm just about to try the virtual host thing now so i'll post back the results.

thanks for your help so far.