• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP shell_exec prohibited ?

Rhapsody

New Pleskian
Hi,

I am trying to intall a Learning-Management-System called ILIAS (v4.4.10) on my Windows Server 2012 R2 with Plesk. I have Admin rights on that server and the fileupload and MySQL is working fine.

The system executes a unzip.exe to unzip uploaded files. But this does not happen on my server. I already checked the PHP.ini settings (5.5) and everything is set up the same way as it is on my local Windows 8 machine. On the local system without plesk everything works as intended but on the Plesk system the php program can not unzip the files.

<?php
if (isEnabled('shell_exec')) {

shell_exec('echo "hello world"');​
}​
?>
Does not give any response.

The php error log is empty.
I don't get any error messages.

Is this behaviour prohibited by PLESK and is there a way to allow it ?
 
Looks like that you script is incorrect. I have checked following and it works:

<?php
$output = shell_exec('powershell get-process < NUL');
echo $output;
?>

C:\Users\Administrator> 'C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP56\php.exe' C:\ee.php

Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
40 3 1604 2672 14 0.00 2964 cmd
43 5 680 2852 23 0.00 1156 conhost
41 4 564 2668 23 0.02 1896 conhost
58 7 1816 7508 57 0.09 3040 conhost
55 7 992 8960 58 0.11 3308 conhost
484 15 1940 3760 49 5.52 296 csrss
88 8 1472 2604 39 0.11 348 csrss
210 13 1868 30012 70 0.30 1540 csrss
115 8 3052 5600 419 0.16 1144 cygrunsrv
10240 10168 88472 86084 139 1.44 2052 dns
357 29 194896 201128 265 10.53 3204 DrWebCom
202 15 20352 22432 92 0.19 636 dwm
201 20 12860 70748 164 0.20 4980 dwm
1180 55 34388 86820 439 1.23 1788 explorer
251 20 11188 21444 167 0.16 3124 Far
0 0 0 24 0 0 Idle
147 14 6148 12632 53 0.03 2868 inetinfo
294 22 9052 24224 131 0.25 632 LogonUI
993 19 4336 10692 37 10.75 448 lsass
488 44 183960 20988 661 0.34 72 MEIMAPS
60 6 1100 4076 26 0.27 2060 MELSC
92 8 2560 5048 52 0.47 2024 MEMTA
96 9 2188 5516 41 0.31 896 MEPOC
142 13 3452 6544 45 0.03 2912 MEPOPS
164 16 3904 7912 68 0.42 2852 MESMTPC
110 10 1344 6540 82 0.02 1892 METray
161 11 1996 6404 40 0.09 2648 msdtc

and make sure that your php.ini contains line

disable_functions=""
 
Back
Top