Help

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
Madicken
-


Joined: 04 Feb 2008
Posts: 3

PostPosted: Mon Feb 04, 2008 5:58 pm    Post subject: Help Reply with quote

Before anything else, I'd like to give Aprelium my dearest thanks for this amazing piece of software :)

You see, I have absolutely no knowledge of PERL or PHP whatsoever, in fact, the way they function is still very abstract to me, but I need to get a couple of things going and I can't figure out how.

I'd need to know how to allow single CGI (*.cgi, *.pl) and PHP (*.php) scripts to handle a certain number (e.g. 60) of simultaneous connections/threads from the same IP for an indefinite period of time.

Remember my knowledge on the subject is next to unexistent, so in case possible, it would be quite handy if you could tell me exactly what files to edit, where to find them, what to change, etc, etc.

PD: CGI and PHP scripts are working ok here with the latest freeware version of Abyss Web Server thanks to the official tutorials, it's just that I have to overcome these apparent default limitations.

Thanks in advance.
Back to top View user's profile Send private message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Mon Feb 04, 2008 11:33 pm    Post subject: Reply with quote

You can have as many scripts running as your computer can handle, you would want to use FastCGI though.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Madicken
-


Joined: 04 Feb 2008
Posts: 3

PostPosted: Tue Feb 05, 2008 3:00 am    Post subject: Reply with quote

Sorry but I don't need to have more than 2, a CGI and a PHP. Did you get the whole idea of my post or I'm missing something big time?
Back to top View user's profile Send private message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Tue Feb 05, 2008 5:26 am    Post subject: Reply with quote

I understood your post...I meant you can have as many of the same script running at the same time. You can also have many scripts. You don't need to do anything to your scripts to run them many times simultaneously. I would recommend you use FastCGI with PHP to handle requests faster. Your CGI app will have to use plain CGI unless you can modify it to work with FastCGI.

If you're worried about the time it takes to process the script you could raise the timeout.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Madicken
-


Joined: 04 Feb 2008
Posts: 3

PostPosted: Tue Feb 05, 2008 6:05 am    Post subject: Reply with quote

No, you did not understand, but it's very likely that what I asked doesn't even make sense so... :)
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Feb 05, 2008 6:30 pm    Post subject: Re: Help Reply with quote

Madicken,

You cannot do that easily without adding some code to your scripts to limit their number when they are executed in parallel.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
jimmyolsen
-


Joined: 11 May 2008
Posts: 1

PostPosted: Sun May 11, 2008 2:08 am    Post subject: Reply with quote

As aprelium stated, having a cgi that will handle multiple connections (read,
threads) is a coding issue not a server issue. In fact, since you said that the
cgi and the php scripts would be running indefinitely, it sounds like those
scripts *are* servers of some sort; listening constantly for new requests.

Anyways, it's a code issue and not one that is easy to implement.

J.
_________________
blackhatseo
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group