Re: Direct script to specific port...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/17/07, Rodolfo De Nadai <rodolfo.denadai@xxxxxxxxxxxxx> wrote:
> The script do nothing with the port...
>
> "using the apache port" it means that my apache default port is 80 and the script is blocking port 80 since i call my script throuth IE or Firefox
>
> If i confgure a virtual host to run on a different port, when apache is
> restart it will try to access that port??? if this happend apache will
> not go up because the script will be still using that port...
>
> Perhaps i'm not be myself very clear... my script works like a
> "thread"... a have a button Enable/Disabled on my web site, when i press
> the button my script run in a shell on my linux... this shell is open
> with my apache user... my script in theory should run forever, except
> when in the web site interface the administrator click on the Disabled
> button...
> The problem that came out in a few days ago... the guys of support add a
> new host in apache and restart.... the child process script of the
> apache process didn't stop... so when apache was restart couldn't up...
> than after a few minutes the guys of support find that my script was
> running and using port 80... but the script only access a MySQL database
> and send default e-mails...

You can't have infinitely-lived scripts run within the web server
process. That just isn't supported by the web model. If you want an
infinitely-lived script, you need to run it as a CGI and detach it
from the web server as described here:
http://www.htmlhelp.org/faq/cgifaq.3.html#8

Again, this whole enabled/disabled button thing is not something that
fits into the standard web model. If you need specific help with that,
you need to describe specifically how it is implemented. One guess is
that your script is blocking signals and therefore not dying correctly
when the admin asks for a restart. But that is just a guess based on
very little information.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux