Forum Moderators: coopster
I can set one up automatically then manually do the other, but I can't get it to work. There must be a file I'm not updating. Please help. Thanks
Maybe PHP.ini needs to be changed, too. I don't know. I want to set PHP to run on IIS through the control panel, then make a manual change so it will work on Apache. That involves editing httpd.conf.
I guess I can configure for one, save PHP.ini, configure for the other, then see what's different. When swiching server I will then have to make that change.
The php.ini file is the key then. As long as you have php.ini configured correctly, each server will use it as it needs. According to the installation page for IIS [php.net], I don't see any php.ini directives that are going to require updates when you switch between servers. That's the beauty of a configuration file.
If I auto configure for IIS, then go into httpd.conf and add PHP information for Apache, PHP should then work for Apache. This should not be too hard. I've tried it the other way, too. I've auto configured for Apache then does the IIS manual instructions.