Hi there,
>> So, would it be possible to check httpd.conf for those lines and notify
>> in
>> the case of a conflicting install request?
>>
>> 'Uninstall' would just mean deleting those two lines, not the mime type
>> support or the directory index entry.
>
> I still prefer the method of including a file instead of altering the
> httpd.conf file; it's cleaner and easier to rollback on an uninstall.
Erm, the only way I know to include a file in httpd.conf is to use the
ResourceConfig file (conf/srm.conf), so I'm not sure how overwriting that
helps... am I missing something?
Check out this:
http://httpd.apache.org/docs/1.3/mod/core.html#include
> And I'm not sure I want to go as far as trying to undo or correct
> previous PHP setting in there either; I'll make the include file
> assume we are working with a stock httpd.conf file and if the user has
> previous directives it's thier responsibility to correct them.
I wasn't suggesting altering existing settings other than for uninstall. I
just meant notify the user of a potential conflict if they tried to
overwrite an existing PHP installation and check they really meant to do
that (or ignore it silently if the directive && path were the same as those
already existing).
I'm still leary of making changes right in the file; I'd prefer to
keep the install changes in an include file so that backing them out
is as simple as removing one line and one file. And I'd rather let the
user handle conflicts manually on thier own, for the same maintainance
reasons as above. It just feels much cleaner to me, especially since
you found out that the placement of directives doesn't matter ( i.e.
we can put them in an include at the end ).
>> I do think it should be made clear that this is a global install on the
>> Apache server and that anything more complex (vhosts or whatever) needs
>> to
>> be done manually. I didn't see any obvious way to open a file for editing
>> from within a wix installer though - is that possible or not?
>
> This isn't directly possible, but you can create call external scripts
> to do this ( this is how IIS is configured ). Probably I'd do the same
> here.
I think it's the only option for Apache if not global. Isn't there some exec
equivalent? - yeah there is I remember seeing it, it allows cmd without a
dos box. so you could just use that to open up httpd.conf with (say)
notepad... or is that too yucky?
Sure we could, but like you said it's a bit yucky. You are right about
it being able to execute a command without a DOS box, but you have to
be careful to make sure that that command is available on the
computer. That's why I'm thinking a simple PHP script ( the
CustomActions I use run after the files are copied so PHP should be
available then ).
Thanks again for all your insight into how to get Apache configured correctly.
--
Later,
John Mertic
"Explaining a joke is like dissecting a frog: you
[EMAIL PROTECTED] understand it
better, but the frog dies in the
process."
-Mark Twain
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php