Problem to run cgi scripts - No IRC - Corey help?

Status
Not open for further replies.

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
I asked for Corey because I see he has experience in this area.

My problem is very similar to the one listed here:
http://forums.x10hosting.com/free-hosting/57467-problem-run-cgi-scripts.html

Only I'm not using scgi-bin/, I'm using the defaulted /cgi-bin.

Permissions are fine and everything, but the file downloads and does not run. This works no matter if it is saved as .pl or .cgi


I've been doing testing with a basic script:
#!/usr/bin/perl

my $var = 'this is pure perl';
print "$var\n";



Thank you,
vol7ron
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
what permissions do you have on the file? Did you write it in a text file in windows, or did you use the editor from cpanel?
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
Did both. Permissions are at 777 and there is no .htaccess in the directory preventing any execution.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I made some changes to your vhost. Can you try now?
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
Still an error.

Will scripts run in cgi-bin subdirectories? test.cgi/.pl was my test file, but I'm more concerned with the /cgi-bin/forum directory and subdirectories within it

Edit:
okay so the vhost must have fixed it... but i didn't see it because permissions were at 777 and the most they can be at was 755

Everything is working now. You guys are awesome! Thanks muchos.
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
No problem :)
Feel free to re-open this thread if you need further assistance.
 
Status
Not open for further replies.
Top