I am trying to install ziparchive and domdocument on nginx web server that has the latest WordPress. In order to run Avada theme, I need these two on the local CentOS 7 test
This worked for me!
yum install php-pecl-zip apachectl restart