修改编译spawn-fcgi


修改编译spawn-fcgi
 
因为用spawn-fcgi 启动后不能哟 -u root 启动FastCGI进程。所以修改了源代码:
下载代码
 
[plain] 
wget http://download.lighttpd.net/spawn-fcgi/releases-1.6.x/spawn-fcgi-1.6.3.tar.gz  
 
解压后进入目录,在文件src/spawn-fcgi.c中注释掉一段代码:
 
[plain] 
/*                                                                                                                                   
if (my_uid == 0) {                                                                                                                          
        fprintf(stderr, "spawn-fcgi: I will not set uid to 0\n");                                                                           
        return -1;                                             
}                                                                        
*/  
 
类似的还有两处要注释。
 
运行
./configure
 
然后编译
make 
make install
 
make install 不大灵光,手动拷贝吧。
 
现在再试试看,搞定了。

相关内容

    暂无相关文章