raman Posted March 12, 2012 Share Posted March 12, 2012 I have a PHP script containing the function exec which works fine in PHP 4 in IIS 7 on Windows 7. However this function does not work in PHP 4 in IIS 5 on windows server 2003. But I have to make it work there because that is what we have on our web server. Can someone provide a solution? Quote Link to comment https://forums.phpfreaks.com/topic/258717-exec-function-in-php-4-and-iis7-on-windows-server-2003/ Share on other sites More sharing options...
Muddy_Funster Posted March 12, 2012 Share Posted March 12, 2012 Why do you think this is a PHP problem, when your PHP version is the only constant here? I would suggest looking over the IIS5 configuration and checking the runtime implememntation of PHP and the permissions that it is granted. IIS7 and IIS5 use different implememntations of the CGI/FastCGI runtimes for scrip languages, and servers have more restrictive runtime permissions that desktops do. Quote Link to comment https://forums.phpfreaks.com/topic/258717-exec-function-in-php-4-and-iis7-on-windows-server-2003/#findComment-1326303 Share on other sites More sharing options...
raman Posted March 12, 2012 Author Share Posted March 12, 2012 I am sorry for the mistake in the question. Actually the PHP version with IIS 7 is PHP 5. Infact, PHP 4 was not compatible with IIS 7 and Mysql 5 which I have. That's why I think that this is a PHP problem. This page provides some clues: http://php.net/manual/en/ref.exec.php However I did not know how to give rights of read and execute for the cmd.exe file to the IIS user. Quote Link to comment https://forums.phpfreaks.com/topic/258717-exec-function-in-php-4-and-iis7-on-windows-server-2003/#findComment-1326306 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.