View Full Version : help with CGI on f2s.com
libertine08
September 14th, 2001, 06:08
Hi,
Does anyone know if f2s supports CGI scripts? I recall it being listed as supporting this, and their main page reads that they do... Although I can't seem to figure out how to run scripts on the server.. Do I need to create my own cgi folder and set permissions or where is perl located on their server? ANY help would be greatly appreciated =/ Thanks...
Aaron
September 14th, 2001, 12:47
You do not need a cgi-bin folder to run F2S CGI scripts. The location of Perl at F2S is /usr/bin/perl. And do not chmod the scripts at all. F2S does the association server-side.
meow
September 14th, 2001, 15:01
:confused: Huh? That's new? I have always chmod'ed.
Aaron
September 14th, 2001, 17:46
Here's a link...
http://www.f2s.com/support/faq/faq.php?category=Perl CGI Scripts
That should answer all questions.
It might just be the server you're on meow. Maybe they all don't have the auto-association.
BigBensch
September 16th, 2001, 08:48
Hi
I use f2s.com and all works perfect, but my yabb board and my UGB.cgi alway show 127.0.0.1 as ip.
Would anyone possible be so kind as to give me a hint or support
THX
BIGBENSCH
bigperm
September 17th, 2001, 02:56
Maybe... if we had some kind of notion as to what you want to know.
meow
September 17th, 2001, 11:21
Originally posted by Aaron
Here's a link...
http://www.f2s.com/support/faq/faq.php?category=Perl CGI Scripts
That should answer all questions.
It might just be the server you're on meow. Maybe they all don't have the auto-association. Thanks. That must be new (relatively). The warnings that chmoding could be dangerous made me go to the users forums. Found a lot about it. Seems like it's still OK to chmode yourself so why do they have that in their FAQ? F2s sometimes do the oddest things...
meow
September 17th, 2001, 11:25
Originally posted by bigperm
Maybe... if we had some kind of notion as to what you want to know.
Read his post - his board logs the same IP all the time. :classic2:
dony
September 17th, 2001, 12:51
you can use cgi in any directory.
just chmod your cgi scripts to 755
Aaron
September 17th, 2001, 21:45
I have heard that F2S has a problem with the IP protocol that Perl uses. I read something of a fix at...
http://www.users.f2s.com
I've never tried it though.
Akalon
September 18th, 2001, 22:17
Originally posted by BigBensch
Hi
I use f2s.com and all works perfect, but my yabb board and my UGB.cgi alway show 127.0.0.1 as ip.
Would anyone possible be so kind as to give me a hint or support
THX
BIGBENSCH
Its in the YaBB FAQ, inside the zip file... it tells you what you have to change for using YaBB on f2s. :)
BigBensch
September 21st, 2001, 12:14
Thank you very much but still one Problem
This is just a problem with some odd hosts that don't use standard cgi environment variables (i.e. things like $ENV{'REMOTE_ADDR '}). You can go into YaBB.pl and Post.pl and change this variable to whatever you server uses. An example is F2S, which uses HTTP_X_FORWARDED_FOR for IP addresses.
How do i do this??
plz help me
Akalon
September 22nd, 2001, 07:05
This is just a problem with some odd hosts that don't use standard cgi environment variables (i.e. things like $ENV{'REMOTE_ADDR '}). You can go into YaBB.pl and Post.pl and change this variable to whatever you server uses. An example is F2S, which uses HTTP_X_FORWARDED_FOR for IP addresses.
Well, go into notepad and open YaBB.pl (or .cgi) and go to search > Find... Type 'REMOTE_ADDR' and for every result replace 'REMOTE_ADDR' with 'HTTP_X_FORWARDED_FOR'.
Do exactly the same for Post.pl, save and upload the files... it should now work ;)
BigBensch
September 22nd, 2001, 14:19
notepad found nothing, even
REMOTE
was not found
PLEASE HELP
BigBensch
September 22nd, 2001, 14:23
sorry i found it in post.pl, but i didn't find anything in Yabb.pl
Akalon
September 22nd, 2001, 20:08
Well try it now and see if it is fixed! :)
BigBensch
September 22nd, 2001, 20:18
Thx a lot, you are right. but do you know what can i do with my ultimate Guestbook?
The same thing?
BigBensch
September 22nd, 2001, 20:25
yes it was the same
THX
Akalon
September 22nd, 2001, 22:43
No problem ;)
BigBensch
September 24th, 2001, 14:20
Pleas help me Again, the log files still show 127.0.0.1 as ip.
PLEASE say me exactly what i have to change in YaBB.cgi(pl)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.