execute the php-cgi in the thttpd

2009-05-13 10:41:46来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

modify the libhttpd.c, add the next lines:
(void) my_snprintf(buf, sizeof(buf), "%s%s", hc->hs->cwd, strcmp( hc->origfilename, "." ) == 0 ? "" : hc->origfilename );
envp[envn++] = build_env("SCRIPT_FILENAME=%s", buf);
php-cgi need environment variable SCRIPT_FILENAME to execute the script with the absolute name. php-cgi will print "No input file specified" if it did not find the environment variable SCRIPT_FILENAME or the file name is not absolute.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/132/showart_423686.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FREEBSD软件包的更新管理

下一篇:修改用户shell