In windows server 2008 R2, the php execute command fails to call the. Exe file, but the php file is executed in the command line, and the. Exe file can be called.
The security mechanism of windows server is not the same as that of linux. Apart from opening ports, components and services are also required. php running users must have full permissions on the components.
In windows server, how to open the port is not mentioned. The following describes how to allow users to have component permissions.
1, "start"-> "run"-> 32-bit system input dcomcnfg or 64-bit system input comexp. msc
2. "component service"-> "computer"-> "My Computer"-> "DCOM configuration" find the component you want to execute, add the everyone user and modify the ID
Add everyone users to components
3. "server management devices"-> "configuration"-> "service"-> "apache" right-click Properties
Modify the login user of apache
After the modification, restart apache so that you can use php to call the. Exe program of the group. The preceding example uses word as an example. In the end, we recommend that you do not use a windows System. windows is a pitfall.