Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 5, 2008 - Time to Submit Your Links for the August 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2008, 08:20:35 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: I need help with CGI on a paid account?????  (Read 182 times)
sgu
Spacescooter Operator
*****
Offline Offline

Posts: 38


WWW
« on: February 25, 2002, 02:09:00 AM »

Hello Im having some major problems with cgi on my account. First off where do I put the script? Do I makde a directory called cgi-sys, cgi-bin or scgi-bin? Ive been using scgi-bin, I put the cgi in and then go to it and I get this everytime with any script:

scgiwrap: no execute permission on cgi script/binary--------------------------------------------------------------------------------DOCUMENT_ROOT=/home/fga/public_html
HTTP_ACCEPT=*/*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=questions=%2C3%2Cxx
HTTP_HOST=fga.lunarpages.com
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 4.01; MSN 2.6; Windows 98)
PATH=/usr/bin:/bin
REMOTE_ADDR=199.60.237.100
REMOTE_PORT=1421
SCRIPT_FILENAME=/usr/local/cpanel/cgi-sys/scgiwrap
SERVER_ADDR=65.204.170.135
SERVER_ADMIN=webmaster@fga.lunarpages.com
SERVER_NAME=www.fga.lunarpages.com
SERVER_PORT=80
SERVER_SIGNATURE=Apache/1.3.23 Server at www.fga.lunarpages.com Port 80

SERVER_SOFTWARE=Apache/1.3.23 (Unix) mod_gzip/1.3.19.1a mod_jk mod_perl/1.26 mod_bwlimited/1.0 PHP/4.1.1 DAV/1.0.2 mod_log_bytes/0.3 FrontPage/5.0.2.2510 mod_ssl/2.8.6 OpenSSL/0.9.6
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
QUERY_STRING=
REQUEST_URI=/scgi-bin/ikonboard.cgi
SCRIPT_NAME=/scgi-bin
PATH_INFO=/ikonboard.cgi
PATH_TRANSLATED=/home/fga/public_html/ikonboard.cgi


For that one I was trying to set up a ikonboard. So everytime I got to http://fga.lunarpages.com/scgi-bin/ikonboard.cgi I get that and not what should be happening. Can someone help me please?

Also what is this whole cgi-wraper thing?
Logged

"You know Mother, life is like a box of chocolates [he presents her with a box], you never know what you’re going to get, your life however is more like a box of active grenades! [the box has grenades in it] Now I offer you one last chance for deliverance- return my mind control device, or be destroyed." - Stewie (Family Guy)

 http://fga.lunarpages.com
Santos
Jabba the Hutt
*****
Offline Offline

Posts: 562


WWW
« Reply #1 on: February 25, 2002, 02:25:00 AM »

NICE SITE,  i will try to help ya, not sure what the issue is but i will pass it on.
Logged

Smile, it makes people wonder what you're up to...
sgu
Spacescooter Operator
*****
Offline Offline

Posts: 38


WWW
« Reply #2 on: February 25, 2002, 02:31:00 AM »

ok thank you. I hope somebody can help me because me and some other people have all tried and were having a bad time.
Logged

"You know Mother, life is like a box of chocolates [he presents her with a box], you never know what you’re going to get, your life however is more like a box of active grenades! [the box has grenades in it] Now I offer you one last chance for deliverance- return my mind control device, or be destroyed." - Stewie (Family Guy)

 http://fga.lunarpages.com
Max
Lunarpages
Über Jedi
*****
Offline Offline

Posts: 2550



WWW
« Reply #3 on: February 25, 2002, 02:57:00 AM »

You need to run your cgi in the cgi-bin, under public_html, be sure to have the right permissions on the files
Logged
sgu
Spacescooter Operator
*****
Offline Offline

Posts: 38


WWW
« Reply #4 on: February 25, 2002, 03:45:00 AM »

Ok I used the same script so I have it as http://fga.lunarpages.com/cgi-bin/ikonboard.cgi instead of http://fga.lunarpages.com/scgi-bin/ikonboard.cgi and now when you go there you get this:

Forbidden
You don't have permission to access /cgi-bin/ikonboard.cgi on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.23 Server at www.fga.lunarpages.com Port 80

And what would be the right permissions ?
Logged

"You know Mother, life is like a box of chocolates [he presents her with a box], you never know what you’re going to get, your life however is more like a box of active grenades! [the box has grenades in it] Now I offer you one last chance for deliverance- return my mind control device, or be destroyed." - Stewie (Family Guy)

 http://fga.lunarpages.com
stephan
Guest
« Reply #5 on: February 25, 2002, 06:43:00 AM »

The correct permissions can be set using an ftp program and the "CHMOD" command.

Normally you can just right click the file, and click on "properties" but it might be called chmod.

Anyway, the right setting for a cgi file is probably Read, Write, Execute.

That is, make sure that it can be read, written to and executed.

You don't really need it to be able to be written to, but you might aswell. If you're paranoid about security, leave it so it's just readable and writeable.
Logged
Max
Lunarpages
Über Jedi
*****
Offline Offline

Posts: 2550



WWW
« Reply #6 on: February 25, 2002, 07:06:00 AM »

Yep, it is a permission problem...

you need to have the correct file permissions on the cgi files.

please read the installation instructions that came along your script.
Logged
sgu
Spacescooter Operator
*****
Offline Offline

Posts: 38


WWW
« Reply #7 on: February 25, 2002, 07:58:00 AM »

Ok I got it to work, thank you very much you guys are the best.  

[ February 25, 2002: Message edited by: sgu ]

Logged

"You know Mother, life is like a box of chocolates [he presents her with a box], you never know what you’re going to get, your life however is more like a box of active grenades! [the box has grenades in it] Now I offer you one last chance for deliverance- return my mind control device, or be destroyed." - Stewie (Family Guy)

 http://fga.lunarpages.com
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM