0

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?

Thank,

Jonesy

2

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.

| improve this answer | |
  • so is that a no for copying the PHP folder? – iamjonesy Nov 29 '10 at 15:06
  • 2
    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
1

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.

| improve this answer | |
0

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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