Ask your questions here.
Post a reply

cgi with apache

Sat Nov 09, 2013 3:37 am

I am trying to set up pnopaste.
It needs cgi.
I looked at the debian wiki, at ubuntuusers.de wiki and at apache docu.
If i click on pnopaste (localhost/cgi-bin/pnopaste) it tries to download the file, but doesn't execute it.

Any ideas?

Re: cgi with apache

Sat Nov 09, 2013 5:30 am

yes, ideas, but phpBB is rejecting what I tried to post
so I pasted it here:
http://pastebin.com/MTMNiPwb

Re: cgi with apache

Sat Nov 09, 2013 12:33 pm

$ grep FollowSymlink * -r
mods-available/alias.conf: Options FollowSymlinks

sites-enabled/000-default

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
and:
<Directory /var/www/cgi-bin>
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>

Re: cgi with apache

Sat Nov 09, 2013 12:36 pm

error.log is empty.
there ain't no cgi.log

Re: cgi with apache

Sat Nov 09, 2013 6:41 pm

httpd.apache.org/docs/2.2/howto/cgi.html
tries to download the file, but doesn't execute it

? correct chmod permissions for the cgi scriptfile
? correct path declared in the scripts shebang line

Re: cgi with apache

Sat Nov 09, 2013 7:50 pm

Besides the debian wiki that is the how-to i used (+ the german ubuntu wiki), like said in the first post.

permissions are good and the path is fine.
I moved the pnopaste folder to /var/www/pnopaste (instead of using /cgi-bin), and that works.

Hence i assume that this:
Options Indexes FollowSymLinks ...blahblah... _ExecCGI
Or something similar to that is the problem.

There are many threads to be found on the internet, but none gives the solution (or i didn't find it).
Example:
http://www.debian-administration.org/ar ... s_globally
Post a reply