How can I install zipArchive on PHP 7.2 with CentOS 7?
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 server. I am searching for an answer for the past 3 days. What shoud I do?
Here is a partial list of "yum list installed:"
php-common.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-json.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-mysqlnd.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-pdo.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php72.x86_64 1.0-1.el7.remi @remi-safe<BR>
php72-php-cli.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-common.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-mbstring.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-pear.noarch 1:1.10.5-6.el7.remi @remi-safe<BR>
php72-php-process.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-xml.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe<BR>
unzip.x86_64 6.0-16.el7 @base<BR>
php
add a comment |
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 server. I am searching for an answer for the past 3 days. What shoud I do?
Here is a partial list of "yum list installed:"
php-common.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-json.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-mysqlnd.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-pdo.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php72.x86_64 1.0-1.el7.remi @remi-safe<BR>
php72-php-cli.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-common.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-mbstring.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-pear.noarch 1:1.10.5-6.el7.remi @remi-safe<BR>
php72-php-process.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-xml.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe<BR>
unzip.x86_64 6.0-16.el7 @base<BR>
php
add a comment |
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 server. I am searching for an answer for the past 3 days. What shoud I do?
Here is a partial list of "yum list installed:"
php-common.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-json.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-mysqlnd.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-pdo.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php72.x86_64 1.0-1.el7.remi @remi-safe<BR>
php72-php-cli.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-common.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-mbstring.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-pear.noarch 1:1.10.5-6.el7.remi @remi-safe<BR>
php72-php-process.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-xml.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe<BR>
unzip.x86_64 6.0-16.el7 @base<BR>
php
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 server. I am searching for an answer for the past 3 days. What shoud I do?
Here is a partial list of "yum list installed:"
php-common.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-json.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-mysqlnd.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php-pdo.x86_64 7.2.3-2.el7.remi @remi-php72<BR>
php72.x86_64 1.0-1.el7.remi @remi-safe<BR>
php72-php-cli.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-common.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-mbstring.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-pear.noarch 1:1.10.5-6.el7.remi @remi-safe<BR>
php72-php-process.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-php-xml.x86_64 7.2.3-2.el7.remi @remi-safe<BR>
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe<BR>
unzip.x86_64 6.0-16.el7 @base<BR>
php
php
edited Nov 13 '18 at 8:44
Rahul Meshram
6,50441839
6,50441839
asked Mar 31 '18 at 3:17
STINGRAYSTINGRAY
111
111
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
php-json.x86_64 7.2.3-2.el7.remi @remi-php72
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe
Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)
Read the FAQ about Difference between php-* and php##-php-* packages ?
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72
As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist
)
Drop the unneeded packages
yum remove php72*
As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it
yum-config-manager --enable remi-php72
yum install php-pecl-zip
echo "extension=zip.so" >> /etc/php.d/zip.in
Never do this, each package provides its configuration file to enable the provided extension.
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
add a comment |
try yum search zip |grep -i php
and install with package name came back
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
add a comment |
You can try: yum install php-pecl-zip.x86_64
Try installing that and enabling it by running: echo "extension=zip.so" >> /etc/php.d/zip.ini
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49583881%2fhow-can-i-install-ziparchive-on-php-7-2-with-centos-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
php-json.x86_64 7.2.3-2.el7.remi @remi-php72
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe
Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)
Read the FAQ about Difference between php-* and php##-php-* packages ?
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72
As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist
)
Drop the unneeded packages
yum remove php72*
As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it
yum-config-manager --enable remi-php72
yum install php-pecl-zip
echo "extension=zip.so" >> /etc/php.d/zip.in
Never do this, each package provides its configuration file to enable the provided extension.
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
add a comment |
php-json.x86_64 7.2.3-2.el7.remi @remi-php72
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe
Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)
Read the FAQ about Difference between php-* and php##-php-* packages ?
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72
As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist
)
Drop the unneeded packages
yum remove php72*
As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it
yum-config-manager --enable remi-php72
yum install php-pecl-zip
echo "extension=zip.so" >> /etc/php.d/zip.in
Never do this, each package provides its configuration file to enable the provided extension.
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
add a comment |
php-json.x86_64 7.2.3-2.el7.remi @remi-php72
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe
Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)
Read the FAQ about Difference between php-* and php##-php-* packages ?
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72
As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist
)
Drop the unneeded packages
yum remove php72*
As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it
yum-config-manager --enable remi-php72
yum install php-pecl-zip
echo "extension=zip.so" >> /etc/php.d/zip.in
Never do this, each package provides its configuration file to enable the provided extension.
php-json.x86_64 7.2.3-2.el7.remi @remi-php72
php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe
Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)
Read the FAQ about Difference between php-* and php##-php-* packages ?
php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72
As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist
)
Drop the unneeded packages
yum remove php72*
As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it
yum-config-manager --enable remi-php72
yum install php-pecl-zip
echo "extension=zip.so" >> /etc/php.d/zip.in
Never do this, each package provides its configuration file to enable the provided extension.
edited Apr 3 '18 at 8:35
answered Apr 3 '18 at 6:32
Remi ColletRemi Collet
2,797714
2,797714
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
add a comment |
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
THIS WORKED! I think you meant "yum remove php72-" Anyway, it unistalled all PHPs, and I reinstalled it, then my problems are gone. Thank you so much!
– STINGRAY
Apr 4 '18 at 19:12
add a comment |
try yum search zip |grep -i php
and install with package name came back
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
add a comment |
try yum search zip |grep -i php
and install with package name came back
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
add a comment |
try yum search zip |grep -i php
and install with package name came back
try yum search zip |grep -i php
and install with package name came back
answered Mar 31 '18 at 4:06
tringuyentringuyen
22513
22513
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
add a comment |
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
Thanks! I was able to install: php72-php-pecl-zip.x86_64. But after I created zip.ini as you said, it still did not work.
– STINGRAY
Mar 31 '18 at 4:30
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
You can write a quick phpinfo(); script and check if Zip is enabled
– tringuyen
Mar 31 '18 at 4:35
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
Zip is not enabled in phpinfo(). Also, zip.ini did not exist, so I created one with vi. Was it wrong?
– STINGRAY
Mar 31 '18 at 5:08
add a comment |
You can try: yum install php-pecl-zip.x86_64
Try installing that and enabling it by running: echo "extension=zip.so" >> /etc/php.d/zip.ini
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
add a comment |
You can try: yum install php-pecl-zip.x86_64
Try installing that and enabling it by running: echo "extension=zip.so" >> /etc/php.d/zip.ini
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
add a comment |
You can try: yum install php-pecl-zip.x86_64
Try installing that and enabling it by running: echo "extension=zip.so" >> /etc/php.d/zip.ini
You can try: yum install php-pecl-zip.x86_64
Try installing that and enabling it by running: echo "extension=zip.so" >> /etc/php.d/zip.ini
answered Mar 31 '18 at 3:34
tringuyentringuyen
22513
22513
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
add a comment |
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
* base: mirror.steadfast.net * epel: mirror.cs.princeton.edu * extras: mirrors.lga7.us.voxel.net * remi-safe: mirror.team-cymru.org * updates: mirror.team-cymru.org No package php-pecl-zip.x86_64 available. Error: Nothing to do WHAT AM I MISSING?
– STINGRAY
Mar 31 '18 at 3:49
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
try yum search zip |grep -i php and install with package name came back.
– tringuyen
Mar 31 '18 at 4:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49583881%2fhow-can-i-install-ziparchive-on-php-7-2-with-centos-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown