Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i correctly write to httpd.conf using cold fusion

Status
Not open for further replies.

jiggy1

Programmer
Oct 8, 2001
7
0
0
US
Hi,

I'm running Cold Fusion 4.5 on Windows 2000 server (and RedHat 7) trying to automate the process of writing to httpd.conf

I'm able to do so with a simple CFFILE tag, however, when I manually STOP/START the Apache service in Services (Windows) the service does not want to start up.

When viewing httpd.conf in Notepad (or whatever) it appears to be correct, in fact if I manually edit the httpd.conf file by (1) simply typing a character anywhere then (2) erasing the character I just typed then (3) save my work -- the service will start up w/o a problem.

I tried trim(write_to_file), but that didn't work.

Does anyone know what the problem is and/or know how to remedy this?

Thanks.

- joe

 
PS- How might I do this w/o using perl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top