We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Installing on Amazon Linux 2

How Do I?

deeciduous's avatar
deeciduous
30 posts
7 years ago
deeciduous's avatar deeciduous

I am installing EE3 on AWS EC2 running Amazon Linux 2. The EE Wizard says ZipArchive is not installed, but I can’t for the life of me get the package installed. Has anyone been through this?

I’m running php7.2

Trying to install php-zip gives me:

$ sudo yum install php-zip
Loaded plugins: langpacks, update-motd
Package matching php-common-5.4.16-43.amzn2.0.1.x86_64 already installed. Checking for update.
Nothing to do

So after some digging I found that perhaps I should be installing via pear. I installed pecl, and ran this:

pecl install zip

Which gives me:

checking for libzip... configure: error: system libzip must be upgraded to version >= 0.11

And apparently because Amazon Linux is based on Centos 7, it’s using libzip 0.10.1

I’m at a loss. I’m hoping somebody has successfully installed EE on AWS EC2 and can help??

       
bobural's avatar
bobural
20 posts
7 years ago
bobural's avatar bobural

few things that came in my mind.

  • see where is php7.2 is installed and check to see if you have the modules loaded: the command is php -i or -m. You should see something like this:

Zip => enabled Zip version => 1.13.5 Libzip version => 1.0.1

on my Ubuntu server: PHP 7.0.25-0ubuntu0.16.04.1

I suspect you have php 5.4 installed on the default path ‘/usr/bin/php’ and php 7.2 on a different location but I’ve been wrong before.

  • try installing php7.0-zip.

I forgot how it is on Centos but maybe extra repos are needed to install the desired version. Also, if you have multiple version of php (in case you specifically need them) you should clean that up and run in Docker.

just my 2 cents…

       
deeciduous's avatar
deeciduous
30 posts
7 years ago
deeciduous's avatar deeciduous

Thanks, bobural.

I gave up on Amazon Linux 2 and created a new EC2 instance with Ubuntu. That solved all my problems.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.