简体   繁体   English

在Ubuntu2上的Apache2中获取一组要执行的CGI文件

[英]Getting a group of CGI-Files to Execute in Apache2 on Ubuntu

Hi I have had an incredibly rough time trying to run three cgi-files for a website that i am working on. 嗨,我在尝试为我正在工作的网站运行三个cgi文件时经历了非常艰难的时光。 After reading up a ton, I have honestly found no solution and have tried many recommended solutions. 看了很多书后,老实说,我没有找到解决方案,并尝试了许多推荐的解决方案。 I am on Ubuntu 13.10 and I installed Apache2. 我在Ubuntu 13.10上安装了Apache2。 Right now I am following these instructions Configure Apache 现在,我正在按照以下说明配置Apache

I go thru all the steps and everything works fine, but I get to this step sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/fiz-ix and it returns this in the terminal. 我经过所有步骤,一切正常,但是到了这一步, sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/fiz-ix ,它在终端sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/fiz-ix其返回。 cp: cannot stat '/etc/apache2/sites-available/default': No such file or directory

I then put the files inside sites-available into a folder in sites-available that i made called default and it sitll didn't work though. 然后,我将文件放到了站点内(可放入站点内的文件夹中),我将其称为“默认”,但它却无法正常运行。

I really need some help. 我真的需要一些帮助。 I have invested hours trying to get this to work and I really need to get apache to run CGI-Files soon. 我已经花了数小时试图使它工作,我确实需要尽快运行CGI-Files。

Thanks 谢谢

After some trial and error with cgi and ubuntu 13.10 the following worked 经过对cgi和ubuntu 13.10的反复试验后,以下方法起作用

cd /etc/apache2/mods-enabled 
sudo ln -s ../mods-available/cgi.load .
sudo ln -s ../mods-available/cgid.load .
sudo service apache2 restart

Regards, Olav 问候,奥拉夫

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

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