如何使用Widows 7为CGI perl / C ++演示设置Apache Web服务器? [英] How do I setup the Apache web-server for CGI perl/C++ demonstration with Widows 7?
问题描述
我安装了Apache Web Server,但我无法让它执行CGI程序。起初,我想执行C ++;但是我发现它也无法执行包含的perl文件样本,所以我也安装了Perl;我希望尽可能简化整体解决方案,尽可能地避开依赖于操作系统的解决方案,因为解决方案需要跨所有平台工作。 Apache Web服务器符合要求。
我之前在Unix下安装了Apache Web服务器,我怀疑这可能是基于我以前经验的配置问题。
参考:
问题:修复Apache服务器安装
1.问题:修复Apache服务器安装
http://www.quackit.com/html/online -html-editor / full /
2. Apache支持论坛-Google
3.支持 - 常见问题 - Apache HTTP Server
http://httpd.apache.org/docs/2.0/faq/support.html
4.支持 - 常见问题 - Apache HTTP服务器
http://httpd.apache.org/docs/2.0/faq/support.html#support.what2do.user-support
5.关于网络
http://freenode.net/
6 .Connect - freenode Web IRC
https://webchat.freenode.net/
7. Apache休息室
http://www.apachelounge.com/
I installed the Apache Web Server, but I am unable to get it to execute CGI programs. At first, I wanted to execute C++; but I found out that it also is unable to execute a sample perl file included, so I also installed Perl; I want to keep the overall solution as simple as possible and stay out of operating-system dependent solutions as much as possible since the solution needs to work across all platforms. Apache web-server fits the bill.
I have setup Apache web server previously under Unix, and I suspect that this might be a configuration issue based on my previous experience.
Reference:
Issue: Fix Apache Server Installation
1. Issue: Fix Apache Server Installation
http://www.quackit.com/html/online-html-editor/full/
2. Apache support forum -Google
3. Support - Frequently Asked Questions - Apache HTTP Server
http://httpd.apache.org/docs/2.0/faq/support.html
4. Support - Frequently Asked Questions - Apache HTTP Server
http://httpd.apache.org/docs/2.0/faq/support.html#support.what2do.user-support
5. About the Network
http://freenode.net/
6. Connect - freenode Web IRC
https://webchat.freenode.net/
7. Apache Lounge
http://www.apachelounge.com/
推荐答案
解决方法是检查可执行文件实际上在cgi目录中运行。制作可执行文件的副本,而不使用普通的cgi扩展名,而是exe扩展名。我这样做了:我复制了cplusplus.cgi并将其重命名为cplusplus.exe;我从命令窗口启动了cplusplus.exe,发现一些dll库文件丢失了。我将它们放在工作目录中,谢天谢地,一切正常。
The solution is to check that the executable actually runs in the cgi directory. Make a copy of the executable without the the normal cgi extension but rather the exe extension. I did that: I made a copy of cplusplus.cgi and renamed it to cplusplus.exe; I launched cplusplus.exe from the command window and found that some dll library files were missing. I placed those in the working directory, and thankfully everything worked fine.
这篇关于如何使用Widows 7为CGI perl / C ++演示设置Apache Web服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!