• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

php - access denied problems with external executable

Yiorgos

New Pleskian
Hi and happy new year to everyone in this forum.

I have a problem in running an external executable .exe or .bat. For example using the following php code:

$abc=system("test.bat 2>&1");
printf ("TEST1:");
printf ($abc);
$abc=system("whoami 2>&1");
printf ("TEST2:");
printf ($abc);

with test.bat in the current directory and the following batch code:

echo "Hello WOrld!"print"Hello WOrld!!!!"

I get the following response:

TEST1:servername\iwam_plesk(default) TEST2:servername\iwam_plesk(default)

i.e. it seems that test.bat is ignored (!)

I think it is a permissions issue, but I cannot locate the root of the problem.

The user iwam_plesk(default) has execution rights in both the batch file and the cmd.exe.

I am using windows 2008 server and plesk 10.4.4.

Any advice would be appreciated.
 
Back
Top