Ask your questions here.
Post a reply
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## 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?
thwak

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## 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
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## 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>
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: cgi with apache

Sat Nov 09, 2013 12:36 pm

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

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## 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
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## 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
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.