ZipArchive and Shell Exec are not enabled on this server

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

ZipArchive and Shell Exec are not enabled on this server

Postby Sanchez C-131 » 07. March 2023 09:54

Hello,

I've just upgraded to XAMPP 8.2.0 and now I get an error message when I want to run a script.

ZipArchive and Shell Exec are not enabled on this server


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

However, when I inspect the php.ini file, no functions are disabled at disable_functions. So shell_exec should not be disabled.

I also tried the solution given in this Stackoverflow article: https://stackoverflow.com/questions/12757891/enable-shell-exec-in-wamp-server

but that doesn't work either.

I never had this problem with the previous version I was running.

Does anyone perhaps have an idea on how I can solve this problem?
Sanchez C-131
 
Posts: 3
Joined: 02. March 2023 13:28
XAMPP version: 8.2.0
Operating System: Windows

Re: ZipArchive and Shell Exec are not enabled on this server

Postby Altrea » 07. March 2023 18:45

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: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 177 guests