How to Edit httpd.conf - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jradams439
Posts: 1
Joined: Tue Aug 21, 2012 5:59 am

How to Edit httpd.conf

I am installing Apache as part of my install to the APPDIR selected by the user, however when I use the EDIT TEXT FILE UPDATE to change the http.conf file to reflect the correct path based on where the user choose to install I run into an issue. It rewrites the httpd.conf file with the wrong slash. For example if the user chooses the c:\sample folder the httpd.conf file will show: ServerRoot "C:\sample\Apache Software Foundation/Apache2.2" instead of with the correct forward slashes like:
ServerRoot "C:/sample/Apache Software Foundation/Apache2.2". Can anyone help? I need the appdir property to use the / slash!!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to Edit httpd.conf

Hello and welcome to Advanced Installer forums,

Here is a link with the resolved paths of the folders in the "Files and Folders" Page.

If you need something else in your configuration file, you should parse the property using a custom action. The custom action can get the APPDIR property, replace all "\" occurrences with "/" and set another installer property with the result value.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”