I am using Apache 2 with windows web server 2003 on the windows XP. I have problem using exec() command. My safe_mode is off. Does anyone know what can be the reason why exec() does not function? It is interesting that immediately when I restart the Apache server exec() command is carried out but only once.

Recommended Answers

All 3 Replies

I think you'll have to set priviliges to the commands you want to execute. Also, check if in your httpd.conf the ExecCGI is in the Options directive, plus the extension has to be somewhere in there.

How can I set priviliges to the commands I want to execute? Could you explain me this in more detail?
Thank you

If you tried the adjustment in httpd.conf and it still doesn't work... I'm sorry, I misread your question. I read Windows Web Server and assumed you had IIS running. You have apache so my solution doesn't apply. I'm really sorry.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.