ackerchez
ackerchez

Reputation: 1744

Elastic Beanstalk compile php with ZipArchive enabled

I need to set my PHP project to compile php with ZipArchive enabled. I am running php7 on Elastic Beanstalk and need help on how to write a ".ebextensions" file to accomplish this task. Can someone help me out here?

Thank!

Upvotes: 4

Views: 1119

Answers (1)

Wale
Wale

Reputation: 71

You can create this easily.

1. Create a directory ".ebextensions";
(If MAC, in your terminal run mkdir .ebextensions and cd .ebextensions)

2. Create a file php7zip.config so you have .ebextensions/php7zip.config touch php7zip.config
3. paste this inside the file packages: yum: php70-zip: []
Save the file.
4. Run eb deploy

There you go. You should have the extension install. You can use this same method to install other extensions on Elastic Beanstalk.

Goodluck

Upvotes: 7

Related Questions