以前都是直接用别人搭好的apache在写cgi代码,没啥问题 今天下了一个apache2.4.9,启动后按照网上说的一些改了一些配置。 但访问一直显示的是cgi程序的源码。 感觉是没有用perl解析,求大神搭救一把该如何改配置
by xfilesliuli - Perl - 2014-07-03 19:47:27 阅读(2274) 回复(3)
大侠们: 有个文件a.txt,内容如下: 1 abc 2 rhr 3 ghg 4 test 我想将此文件内容读出来 并将现在IE里面 我用cat a.txt 或 more a.txt 只能在后台运行 。
apache+mysql+perl 相比于nginx,apache对perl的支持要更好一些(nginx需要自己写一个wrapper,而且网上down下来的wrapper的版本在post MIME类型的文件时会有问题)。在配置上,从我这个新手的角度来看,apache也是同样简单。 首先从apache官网http://apache.org/上下载httpd模块。用源文件编译就好,没有问题。安装后httpd命令启动http服务器进程。 接着去mysql官网http://mysql.cn/上下载binary或源码。...
1. 安装apache 将apache源代码解压缩: 一、编译和安装apache: # tar zxvf httpd-2.2.11.tar.gz # cd httpd-2.2.11 # ./configure # make # make install 默认安装在/usr/local/apache2中。 安装fcgi 将fcgi解压缩: # tar zxvf fcgi-2.4.0.tar.gz 编译和安装: # cd fcgi-2.4.0 # ./configure # make # make install 将必要的动态库拷贝到/usr/lib中(cgi程序将依赖这些库文件): # cp ./libfcgi/.libs/* /usr/lib/ 二、...
现在服务器上的WEB 环境已经搭建好了。运行了很长时间。 但现在因为业务需要用的perl 因为之前没有编绎。 有什么办法加入么?? 服务器已安装MOD—perl 我想做一个软链接再在httpd.conf 里直接加入。不知道行不行。 有没有做过的。一起讨论下啦!
请问apache支持CGI PL等脚本,是不是只要有perl包就可以了,我已经装了perl,我用rpm -q perl显示如下: [root@Linux root]# rpm -q perl perl-5.8.0-88.4 我怎么配置、才能支持CGI PL脚本 能帮我者我送空间,请联系QQ 165668
最近学着给公司的一个系统添加功能,就是个网页界面的东西。 一直在用perl,就打算用perl的CGI做。 但是在网页这块是0基础。 简单的了解下,apache用来架设网站,tomcat似乎是支持jsp用。 从网上下载apache-tomcat-6.0.29-windows-x64.zip,然后下载JDK包,都安装好了,环境变量也设置好。localhost:8080也可以打开。 目前卡在用perl写的CGI包,输入路径后根本无法使用。 按照网上的web.xml 和context.xml都进行了修改。 在webapps...
怎么有的程序能浏览,有的浏览不了呀,像这样的程序: [code] #!/usr/bin/perl print "Content-type:text/plain \n\n"; use CGI; $query=new CGI; print $query->header, $query->start_html('hello World'), $query->h1({-align=>center},'hello world'), $query->end_html; ~ [/code] 报告500错误:em10: [code] #!/usr/bin/perl print "Conntent-Type: text/plain\n\n"; print "这是CGI的环境变量\n"; foreach $key(keys %ENV...
I donwload the apache1.33 and (not root) ./configure --prefix=/www make make install ok ! but not surport perl,cgi,just print out my cgi code !
apache已经正常启动! 编写hellocgi.pl文件内容如下: #!c:/perl/bin/perl.exe print Content-type:text/html\n\n; print Hello CGI; 将hellocgi.pl文件放到C:\Program Files\apache Group\apache2\cgi-bin\目录下 在IE中运行http://127.0.0.1:8070/cgi-bin/hellocgi.pl 报错如下: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please co...