Jump to content

abacus2015

New Members
  • Posts

    5
  • Joined

  • Last visited

abacus2015's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. just upgraded to PLESK 12 from PLESK 10 and it seems to solve the problem. Obviously this was a bug of PLESK v.10.
  2. Using $abc=exec("test.bat 2>&1", $abc_output); printf ("TEST1:"); print_r ($abc_output); $abc=system("whoami 2>&1"); printf ("TEST2:"); printf ($abc); gives TEST1:Array ( ) servername\iwam_plesk(default) TEST2:servername\iwam_plesk(default) so it still seems to return nothing!! this is so strange!
  3. Hi there and happy new year! The specific user has execution rights for cmd.exe. In addition I am escaping the backslashes in the path, this does not seem to be the issue. For example if I place the file in the current directory (to avoid the backslashes): $abc=system("test.bat 2>&1"); printf ("TEST1:"); printf ($abc); $abc=system("whoami 2>&1"); printf ("TEST2:"); printf ($abc); assuming that test.bat is just the following: echo "Hello WOrld!" print "Hello WOrld!!!!" I get the following response TEST1:servername\iwam_plesk(default) TEST2:servername\iwam_plesk(default) i.e. the test.bat seems to be ignored and does not return anything whereas if I change the code to this (testttt.bat is missing from the current folder): $abc=system("testttt.bat 2>&1"); printf ("TEST1:"); printf ($abc); $abc=system("whoami 2>&1"); printf ("TEST2:"); printf ($abc); I get 'testtttt.bat' is not recognized as an internal or external command, operable program or batch file. TEST1:operable program or batch file.servername\iwam_plesk(default) TEST2:servername\iwam_plesk(default) I think it is a permissions issue, but I cannot locate the root of the problem. Any advice would be highly appreciated.
  4. Actually the iwam_plesk user has full permissions. The cacls command show this: Any other ideas? cacls test.bat C:\test\test.bat servername\IWAM_plesk(default):(ID)F
  5. Hi I have a problem in running an external executable .exe or .bat. For example using the following php code: $abc= system("C:\test\test.bat 2>&1"); printf ("TEST1:"); printf ($abc); $abc= system("whoami 2>&1"); printf ("TEST2:"); printf ($abc); I get the following result: Access is denied. TEST1:Access is denied.servername\iwam_plesk(default) TEST2:servername\iwam_plesk(default) Obviously the file test.bat exists in the directory C:\test\. And I am running this on a windows 2008 server with access from the web. Any help would be appreciated, thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.