Copy link to clipboard
Copied
I know this is going to sound daft as wrong password is wrong password, right? Well i swear to you i know my passwords and it's not having it.
I'm running coldfusion 9 and i want to change the default/internal server that i set it up with on installation to the apache server that comes with mac osx. So i started the coldfusion launcher and clicked the webserver connection utility button to set it up, it asks for a password to continue but wont accept it.. I've tried both of the passwords that i use for secure stuff in case i was confused which one it was asking for but it's not having either.
I tried changing the password in coldfusion administrator and still no joy. I know this sounds stupid but i don't understand... how do i get in if it wont accept my admin passwords... i haven't tried uninstalling and trying again as stuff like this is a nightmare to get rid of in my experience... always leaves a file somewhere that you can never seem to isolate that mucks up the following installation so i've left it for now. Anyone got any ideas?
ok, you can't just double click the wsconfig file, cause then you are not running it as sudo, so you won't have permission. "sudo" is "Super User Do" and allows you to run a program, temporarily, as a super user. If you don't do that you won't have permission to change the httpd config file.
Try the following.
Run Terminal
type: cd /Applications/ColdFusion9/runtime/lib (change it to the proper path if this not the path to your ColdFusion)
hit enter
type: sudo java -jar wsconfig.jar
hit enter
it shou
...Copy link to clipboard
Copied
I just tried this on my own Mac. The password it accepted from me was my ColdFusion administrator password. This does not seem like a very good utility. Now that it has accepted my password it seems it will, henceforth, accept any password.
You could bypass the ColdFusion Launcher and go right to the web server config tool like this:
1. Go to your <ColdFusion Directory>/runtime/lib (For example, mine is at /Applications/ColdFusion9/runtime/lib)
2. Run: sudo java -jar wsconfig.jar
3. Enter your OSX user sudo password
Hope this help.
Copy link to clipboard
Copied
Thanks for response, it still doesn't want to accept my password so i'm just going to do the 2nd thing you said. However, in the setup of this under the web server properties where should the config directory be?
Copy link to clipboard
Copied
The config dir it is refernecing is the Apache config folder, which on a Mac (at least on my Snow Leopard) is in /etc/apache
Copy link to clipboard
Copied
Thanks. It's the httpd.config file isnt it? Comes back permission denied when i try and restart the server with that configuration. Think i'm a little out of my depth with all this and feel a little overwhelmed to be honest; don't even know if the things i'm trying to do and learn is right. I'll keep chipping away though. Going to leave it where it is for now till i know more and need to change it to apache. Thanks for your responses.
Copy link to clipboard
Copied
When you try to restart which server? What says permission deinied?
Can you tell me which commands you are running? Or does it all happen within that config utility? Are you running the config utility with the "sudo" command at the beginning?
Jason
Copy link to clipboard
Copied
I guess the server that's running at the moment in place of apache. The web server config utility tells me permission is denied on the /private/etc/apache2/httpd.conf path when i input the details and try and reconfigure it to apache.
It all happens within the config utility.
When you say 'run', do you mean open up a terminal and type in sudo -jar wsconfig.jar? I tried that and it said it couldn't access it so i just doubled-clicked the wsconfig file and it opened the web utility.
Copy link to clipboard
Copied
ok, you can't just double click the wsconfig file, cause then you are not running it as sudo, so you won't have permission. "sudo" is "Super User Do" and allows you to run a program, temporarily, as a super user. If you don't do that you won't have permission to change the httpd config file.
Try the following.
Run Terminal
type: cd /Applications/ColdFusion9/runtime/lib (change it to the proper path if this not the path to your ColdFusion)
hit enter
type: sudo java -jar wsconfig.jar
hit enter
it should prompt you for your password. Enter it and hit enter again.
It should launch the config tool, this time with the proper permissions to edit the httd.conf file.
Good luck
Copy link to clipboard
Copied
Done. Thank you!
ps. apologies for being a bit of a noob 🙂
Copy link to clipboard
Copied
Awesome, glad it worked out. I was a n00b once. Glad to help.
Jason