Forums: Help With Cgi - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help With Cgi cant run cgi!!

#1 User is offline   informatech 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 52
  • Joined: 25-January 06

Posted 02 April 2006 - 06:42 AM

hello i'm sort of an experienced person with computers
my question is a rather simple one that i can't figure out.
i try to install this jameswarshall cgi script on my free hosting

hxxp://install.xav.com/index.cgi

it installs succesfully and everything is right but when i enter the url to the cgi it tells me that it is forbidden! i tried to move the script to other folder and even set full 777 permission on the folder and file. nothing works so far. i've had this cgi work on other hosts but here it won't work. I should be able to run cgi's becuase the cpanel lets me install ones and they do work.

btw this james marshall script is just a web proxy that i set up so my friends in school can use

the host that i use is hostneo.com

help plz!!! :(
NO IMAGES IN SIGNATURE!
0

#2 User is offline   darkbluefirefly 

  • Private
  • Icon
  • Group: Members
  • Posts: 10
  • Joined: 19-January 04

Posted 02 April 2006 - 09:34 AM

cmod it to 777, or just allow anyone to write to it.
0

#3 User is offline   stay 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 493
  • Joined: 19-June 05

Posted 02 April 2006 - 09:49 AM

contact your host/the support of your host?
0

#4 User is offline   informatech 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 52
  • Joined: 25-January 06

Posted 02 April 2006 - 11:41 AM

yeah i already set permissions (chmod) to 777 to both the folder containing it and the file intself. i also tried using both the cgi "*.cgi" and perl "*.pl" file. both give me the same bull. maybe i will contact the host but first i want to see if i can, or you guys can figure this one out. I've never had a problem like this one before. :blink:
NO IMAGES IN SIGNATURE!
0

#5 User is offline   mulander 

  • Private
  • Icon
  • Group: Members
  • Posts: 18
  • Joined: 21-June 05

Posted 05 May 2006 - 03:25 AM

View Postinformatech, on Apr 2 2006, 07:41 PM, said:

yeah i already set permissions (chmod) to 777 to both the folder containing it and the file intself. i also tried using both the cgi "*.cgi" and perl "*.pl" file. both give me the same bull. maybe i will contact the host but first i want to see if i can, or you guys can figure this one out. I've never had a problem like this one before. :blink:


Where are you placing your scripts? Try placing this in /public_html/cgi-bin/

#!/usr/bin/perl
# cgi print_env.pl or print_env.cgi
use warnings;
use strict;

use CGI qw(:standard);

print header(),start_html();

print p("$_ => $ENV{$_}") for keys %ENV;

print end_html();


do chmod 755 on the file.
If all goes well, this should display the enviroment variables set in perl.
and if you don't have a cgi-bin directory, try to create one and chmod 755 on it also.

If that doesn't work, ask your admin if the cgi is activated in apache configuration, and if so ask what directory is treated as a cgi directory.

By the way, on what operating system the server runs? Is it apache? or maybe some microsoft web server? Another porblem may be in the shebang line, if the system has perl placed somewhere else then the shebang points, try doing which perl command, and see if the path to perl matches the one in the shebang line.
0

#6 User is offline   funtu$h 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 547
  • Joined: 26-October 05

Posted 05 May 2006 - 02:20 PM

View Postinformatech, on Apr 2 2006, 02:42 PM, said:

help plz!!! :(


Why dont u use the automatic online installer

hxxp://install.xav.com/?p=cgiproxy

Have fun <_< <_<
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting