Can't migrate website becuase shell_exec is disabled

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't migrate website becuase shell_exec is disabled

Postby sinergyinaction » 10. February 2023 18:13

Hi,
I'm trying to recover a wordpress website thanks to a backup I have from a previous version of XAMPP to the latest 8.2.0
I am using the DUPLICATOR plugin.
When I run the installer.php script the resulting install window says that an error

Code: Select all
An error has occurred. In order to load the full installer please resolve the issue below.
NOTICE: ZipArchive and Shell Exec are not enabled on this server please talk to your host or server admin about enabling ZipArchive or Shell Exec on this server or manually extract archive then choose Advanced > Manual Extract in installer


Indicating SHELL EXEC is not enabled in the PHP running with this version of XAMPP.

However, when I inspect the php.ini file the variable disabled_functions is empty, meaning that shell_exec is not disabled. Still the installer can't find it.
is there any other place on XAMMP where shell_exec can be enabled?
sinergyinaction
 
Posts: 12
Joined: 17. November 2022 13:15
XAMPP version: 7.4.30
Operating System: windows 10

Re: Can't migrate website becuase shell_exec is disabled

Postby Sanchez C-131 » 02. March 2023 13:32

Hello mate,

Did you find the solution for this? I'm experiencing the same problem.
Sanchez C-131
 
Posts: 3
Joined: 02. March 2023 13:28
XAMPP version: 8.2.0
Operating System: Windows

Re: Can't migrate website becuase shell_exec is disabled

Postby Altrea » 07. March 2023 18:46

Hi,

I have checked shell_exec on my Windows 11 XAMPP 8.2.0 test environment.
It is working flawlessly.

Code
Code: Select all
<?php

$var = shell_exec("cd");
var_dump($var);


Execution result
Code: Select all
string(16) "C:\xampp\htdocs "


Maybe it is a problem with your third party script not checking correctly.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Can't migrate website becuase shell_exec is disabled

Postby sinergyinaction » 08. March 2023 01:42

Hi, thanks for your reply. Eventually it worked but can't remember exactly how, or if I did anything special to make it work.
sinergyinaction
 
Posts: 12
Joined: 17. November 2022 13:15
XAMPP version: 7.4.30
Operating System: windows 10

Re: Can't migrate website becuase shell_exec is disabled

Postby Sanchez C-131 » 22. March 2023 14:35

Hello,

Thanks for the help.

I eventually found the solution to this issue.

Enable ZIP in XAMPP

XAMPP v8.2.00
Source: https://stackoverflow.com/questions/30558950/ziparchive-not-installed-in-xampp

Stop the xampp and then remove the starting semicolon ( ; ) before ;extension=zip from your xampp/php/php.ini the following code, and start xammp again.

Detailed:

Find (line 952, v8.2.00):
;extension=zip

replace with:
extension=zip

And now it works.
Sanchez C-131
 
Posts: 3
Joined: 02. March 2023 13:28
XAMPP version: 8.2.0
Operating System: Windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests