You are here: Re: shell_exec not working on Win2K3 « PHP Programming Language « IT news, forums, messages
Re: shell_exec not working on Win2K3

Posted by d on 02/03/06 14:42

"jonathan.beckett" <jonathan.beckett@gmail.com> wrote in message
news:1138970152.834117.49630@o13g2000cwo.googlegroups.com...
> Hi all,
>
> We have PHP 4 installed on Windows 2003 with Apache 2, and the
> shell_exec has mysteriously stopped working - it hangs the page rather
> then returning anything.
>
> To check it out, I tried shell_exec("dir") which works fine on the
> development machine, but not on the live server.
>
> I'm guessing the network guys have done something to the security of
> the live server that would cause this - but it's very strange; why
> would Apache (running under the default system account) not allow PHP
> to run shell_exec statements?
>
> I have checked PHP and it's not in safe mode.
>
> I'm a bit stuck - any ideas would be appreciated...

Have you checked the permissions of the cmd.exe file in windows\system32?
It has to be executable by the user the web server is running as... Usually
that will return an error, though, so it might not be the cause of your
problem... :)

dave

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация