views:

29

answers:

1

How can I determine what add-ons to apache will be required for my php code? I have legacy php code that was setup a long time back (and we dont have the documentation on what was done at that time). I need to get this application working on another new server, but apache has yet to be installed.

I would like to install only those components which are necessary.

+2  A: 

a php module, pal
to run php code you need mod_php installed. That's it.

if you're talking of PHP extensions, that's another matter and it's hard do tell. I'd make it this way: log all errors and watch for "undefined function" ones. And turn appropriate extensions on.

It have to be done anyway.
Legacy code being run on fresh PHP installations usually flood your logs with errors.

Col. Shrapnel
Thanks Col. - is there no systematic way of figuring out what php extensions are used in the system?
tzmatt7447
@tzmatt as far as I know - no. I'd say, at least mysql, gd2 and iconv would suit most of the legacy code.
Col. Shrapnel
Thanks Col.....!
tzmatt7447