PDA

View Full Version : cgi-bin will not working on IPSconfig3


Gigashop
30th August 2009, 10:56
Hello all

I downloaded Perfect Server ISPconfig3 SUSE 11 VmWare Image

All work find, but cgi scripts will not work.
On the Site Config i enabled CGI and SuEXEC.

For Test i upload test.cgi to the cgi-bin folder (755)
(http://www.MyDomain.com/cgi-bin/test.cgi)
But i have Error 403

(Same Test CGI: http://www.rzuser.uni-heidelberg.de/~x22/ht/cgi.cgi )

#!/bin/sh
echo "Content-type: text/html"
echo
echo "<HTML><HEAD>"
echo "<TITLE>Beispiel CGI</TITLE></HEAD>"
echo "<BODY><H1>CGI - Beispiel</H1>"
echo "Das aktuelle Datum ist<HR><PRE>"
date
echo "</PRE><HR></BODY></HTML>"


On Site Options the Apache directives ist empty

Thanke you for Help

till
30th August 2009, 11:54
Take a lookmat the error log file for a detialed error message.

Gigashop
30th August 2009, 16:17
Now after a new manual installation of ispconfig3 x64 Debian 5 i have the same Problem.
The Sites are working but no cgi.

Found in Log :

[Sun Aug 30 14:59:37 2009] [error] [client 192.168.2.4] suexec policy violation: see suexec log for more details
[Sun Aug 30 14:59:37 2009] [error] [client 192.168.2.4] Premature end of script headers: test.cgi

Found in Suexec log

[2009-08-30 14:59:45]: uid: (5003/web3) gid: (5005/client3) cmd: test.cgi
[2009-08-30 14:59:45]: (2)No such file or directory: exec failed (test.cgi)

Thanks

till
31st August 2009, 12:34
Please make sure that the script is owned by the user and group of the website.

Gigashop
31st August 2009, 12:54
How can i do this ?

I logged with FTP in with Username and Password of the Site Client.

till
1st September 2009, 12:56
Login on the shell and then run:

ls -la

in the cgi-bin directory so that we see the permissions of the file and subdirectory.