急~~~Apache+CGI,系统调用后,出现服务器错误页面,怎么办啊~大牛帮帮忙拉
我在do.c程序里使用了system("/tmp/test"),test是我已经写好的程序,在命令行下没有问题。test会在标准输出上有一些文字。
do是一个页面上的form,中间有个按钮提交信息,当按下时会执行system这句。
我曾经使用execve()代替system(),倒是不出页面错误了,test程序却不执行!
各位大牛帮帮忙吧!!!
错误显示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, phonix@fwgate.hisense.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.26 Server at fwgate.hisense.com Port 443