Articles of cgi

Bugzilla CGI不在Windows 7的Apache下工作

我正试图在我的Windows 7机器上安装Bugzilla。 我只能通过安装XAMPP来获得apache,mysql,perl堆栈。 Apache很适合php,而且mysql看起来挺开心的,但是我不能让apache执行cgi for bugzilla。 当我浏览到“ http:// localhost / bugzilla / ”时,出现以下错误: couldn't create child process: 720002: index.cgi 我发现这个网页时,谷歌search错误, https: //wiki.mozilla.org/Bugzilla:Win32Install,但它build议增加或取消注释在Apache的httpd.conf中的所有设置已经存在。 我还可以做些什么?

python中有没有和php5-cgi等价的东西?

nginx不允许直接执行外部程序,所以为了运行CGI,你需要运行一个独立的fcgi后端并用fastcgi_pass指令连接它。 对于PHP很容易,例如使用spawn-fcgi和php5-cgi ,但我还没有发现任何类似的Python。 我知道有特定的应用程序和框架的fcgi实现,但是,有没有什么可以运行普通的Python CGI(用通用的CGI模块实现的CGI)呢?

libidn.so存在,但cgi找不到它

我有一个Debian 6服务器,64位… 我检查了ldconfig,ldconfigpath,符号链接…,重新启动等等…但仍然是一个cgi无法findlibidn.so.11。 安装libidn11软件包(包括libidn11-dev和libnet-libidn-perl ) root@server:/home/user/public_html/cgi-bin/# ldd tbk_bp_pago.cgi linux-gate.so.1 => (0xf77c4000) **libidn.so.11 => not found** libc.so.6 => /lib32/libc.so.6 (0xf7676000) libnsl.so.1 => /lib32/libnsl.so.1 (0xf765e000) libdl.so.2 => /lib32/libdl.so.2 (0xf765a000) librt.so.1 => /lib32/librt.so.1 (0xf7651000) libpthread.so.0 => /lib32/libpthread.so.0 (0xf7638000) /lib/ld-linux.so.2 (0xf77c5000) 图书馆存在 root@server:/home/user/log# locate libidn.so.11 /usr/lib/libidn.so.11 /usr/lib/libidn.so.11.5.44 root@server:/home/user/log# ldconfig -v | grep "libidn.so.11" libidn.so.11 -> libidn.so.11.5.44 我在Centos 5,64位机器上也testing过,同样的问题出现了。 任何帮助表示赞赏。 […]

服务器显示我的VPS主机上的默认CGI页面

即使将index.php放在root / public_html文件夹中,我也得到了默认的cgi [ http://xx.xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi]page 。 我的VPS上的Httpd Conf具有以下条目 <VirtualHost 127.0.0.1:80 *> ServerName server1.mydomain.com ServerAlias cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.* DocumentRoot /usr/local/apache/htdocs ServerAdmin [email protected] <IfModule mod_suphp.c> suPHP_UserGroup nobody nobody </IfModule> RewriteEngine On <IfModule core.c> SSLProxyEngine On </IfModule> RewriteCond %{HTTP_HOST} ^cpanel\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P] RewriteCond %{HTTP_HOST} ^webmail\. RewriteCond %{HTTPS} on RewriteRule ^/(.*) […]

Mod重写cgi-bin

所以我想重写下面的url结构 mysite.com/cgi-bin/shop/shop.cgi/ 至 mysite.com/+ 我有这个作为一个规则,它的工作原理,但它不强制url打印在浏览器中,当你仍然指向旧的url。 所以我有重复的内容。 我已经尝试添加[R = 302],它不起作用。 [R = 302]使它打印出原来的旧url结构(/cgi-bin/shop/shop.cgi/%)。 有任何想法吗? RewriteRule ^\+([^*]+)/?$ /cgi-bin/shop/shop.cgi/$1 任何帮助将不胜感激!

在IIS 7中安装CGI exe – 将始终下载为.exe文件而不是执行

尝试在新的Windows 2008 R2服务器上安装传统的CGI.exe文件。 我添加了CGI和ISAPI限制列表的exepath(它被设置为允许)。 虚拟目录中.exe的处理程序映射也是以执行权限设置的。 每次我尝试在浏览器中调出脚本时,都会将.exe作为文件下载,而不是在服务器上运行。 任何build议,将不胜感激。

CGI脚本不在PHP文件中运行

我在服务器中有一个名为script.cgi的CGI脚本,我已经将下面的代码添加到域vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html 我已经改变它: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html .php 如果页面是HTML代码将运行,但如果页面是PHP的代码将不会运行。 有什么代码我需要添加到虚拟主机,使PHP文件可以运行这个脚本? ****编辑:**** 我想在服务器的每个可能的页面中“注入”HTML代码,这包括HTML和PHP文件。 该代码只适用于HTML文件,我不知道为什么。

允许CGI-EXE应用程序访问registry

我有一个exe应用程序,我在IIS上运行(从DefaultAppPool C:\inetpub\wwwwroot ),需要访问registry,但它不工作,似乎没有权限。 有什么奇怪的是我在Windows 8上运行它,它工作正常,但在Windows 7和Server 2012的主机,它不运行。 我知道registry项有权限,我甚至试图设置Everyone完全控制,但仍然失败。 我也尝试了HKEY_CURRENT_USER和HKEY_LOCAL_MACHINE ,没有运气。 我确实了解了信任级别,但是我不确定这些信息是什么,只有我可以find与ASP应用相关的参考信息。 有什么我需要添加到web.config或IISpipe理控制台允许我的CGI应用程序访问registry,最好在HKCU? 编辑:试图看看过程监视器发生了什么,但我看不到任何线。 但是我写了这个快速的Perl脚本来复制这个: use strict; use Win32API::Registry qw (:ALL); print "Content-type: text/plain\n\n"; RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\TestingRegistryAccess", 0, "", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, [], my $rh, []) or print regLastError(); if(defined($rh)) { RegCloseKey($rh); } 输出是: Access is denied. 所以必须有一些方法来允许CGI脚本访问它,它可以在我的Win8桌面上运行。

使用Nginx的uwsgiconfiguration,使用python脚本作为cgi-502 Bad Gateway

这是我的.ini文件来运行uwsgi“pyApp.py” [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python 我在位置/usr/share/test/firstapp.py有一个“firstapp.py”文件它的内容是 #!/usr/bin/python print "Content-type: text/html\n\n" print "<html><body><h1>It works! Cool!!</h1></body></html>" 我正在用命令运行uwsgi的实例 uwsgi –http :9011 –http-modifier1 9 –ini pyApp.ini –master 我已经使用nginxconfiguration了几个虚拟主机。 而其中的一个必须指向/ usr / share / test /目录,当其中有“/ cgi-bin /”的url时。 nginxconfiguration是 – [也是唯一默认的] server { listen 80 default_server; listen [::]:80 […]

Nginx提供C ++ cgi脚本:响应是二进制格式

我想在nginx上运行C ++ CGI脚本。 我使用nginx网站的脚本使用FCGIWrap。 程序代码是这样的: #include <iostream> using namespace std; int main () { cout << "Content-type:text/html\n\n"; cout << "<html>\n"; cout << "<head>\n"; cout << "<title>Hello World – First CGI Program</title>\n"; cout << "</head>\n"; cout << "<body>\n"; cout << "<h2>Hello World! This is my first CGI program</h2>\n"; cout << "</body>\n"; cout << "</html>\n"; return 0; […]