简体   繁体   English

如何在Ubuntu 10.04的“ root-directory / cgi-bin”中的“ root-directory / sub-directory / cgi-bin”中设置服务器以运行perl脚本?

[英]How to set server to run the perl script in “root-directory/sub-directory/cgi-bin” from “root-directory/cgi-bin” in Ubuntu 10.04?

I am using PHPmotion in my local ubuntu machine. 我在本地ubuntu机器中使用PHPmotion Uber-uploader is used in phpmotion for uploading files to the server.This is using perl script ( at " www/cgi-bin ") to uploading files. Uber-uploader在phpmotion中用于将文件上传到服务器。这是使用perl脚本(位于“ www / cgi-bin ”)来上传文件。 But in my machine perl script is running fine when PHPmotion is installed in root directory. 但是在我的机器上,将PHPmotion安装在根目录中时,perl脚本运行良好。 But when I moved the whole files from www to www/subdirectory .Now uber-uploader is not running, instead its downloaded. 但是当我将整个文件从www移到www / subdirectory时,现在uber-uploader没有运行,而是下载了。 I know the server is not running the PERL scripts in www/subdirectory/cgi-bin . 我知道服务器未在www / subdirectory / cgi-bin中运行PERL脚本。 How can I run the PERL scripts that are locating in www/subdirectory/cgi-bin .? 如何运行www / subdirectory / cgi-bin中的PERL脚本?

Check your webserver configuration files. 检查您的Web服务器配置文件。 In case of Apache , you'll probably want to check for the line where www/cgi-bin is declared to contain executable scripts, and do the same for www/subdir/cgi-bin . 对于Apache ,您可能需要检查声明www/cgi-bin包含可执行脚本的行,并对www/subdir/cgi-bin执行相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM