Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just a quick question. I have a developement server that I've changed various PHP settings in using different extensions, etc. I'm having a bit of trouble with the PHP installation on the production server. Can I just copy the PHP folder from development to production?



share|improve this question

You need to document the extensions and parameter changes, then implement the same into the production server. This will also come in handy when you need to move to a new server.

share|improve this answer
so is that a no for copying the PHP folder? – iamjonesy Nov 29 '10 at 15:06
Its less of a no and more of a "You should never put something on a production server that you can't reliable recreate and deploy yourself." You should always be aware of what changes you're making to configuration files--not just on production, but on development. – Andrew M. Nov 29 '10 at 16:41
Btw, what do you mean when you say PHP folder? Is that your application folder? Installed extensions are not stored in your application folder. – gAMBOOKa Nov 30 '10 at 9:06

Technically yes, if that's where PHP is looking for the php.ini file.
If you're running on Windows, it should be in the PHP folder, but it's also possible that the version being used is in the Windows folder.

Copying the PHP folder directly should work, but gAMBOOKa is right, configuring the new installation by hand will let you review each option, and help you familiarise yourself with the configuration.

share|improve this answer

You need to look for available extensions, and even for PHP version, which may differ too

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.