Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Apache forbids fork() and thread()

by marto (Bishop)
on Nov 13, 2012 at 12:29 UTC ( #1003600=note: print w/replies, xml ) Need Help??


in reply to Apache forbids fork() and thread()

"The error thrown is a standard 500 server error"

And what did the web server logging tell you? Regardless of the issues already pointed out, you need to do basic debugging to help locate where your problems are. See the debugging advice here.

Replies are listed 'Best First'.
Re^2: Apache forbids fork() and thread()
by MARVion (Novice) on Nov 13, 2012 at 14:03 UTC
    Hi, thanks for the links! I tried a lot of things (in the links you posted), Shell says Syntax is ok, there are no fatalsToBrowser errors displayed in the browser, just the header which is printed anyway. I compiled with -cwT, anything ok. When running the code without the fork statement, anything works fine, when running it with the fork statement anything collapsed, also Perl for itself. Windows is telling me Perl isn't working anymore and asks for sending some more information (what I denied). I think it's an environment problem of Apache, but I don't know it for sure as I'm not that familiar with server configurations. Greetz

      Hi, check out a file called error_log, check out the Apache documentation and that of your WAMP stack for it's location, or search for it as you would any other file.

      Update: Please don't remove questions having asked them, it makes replies look rather silly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003600]
help
Chatterbox?
[ambrus]: Corion: yes, I've found Prima on cpan, but can you point to where its event loop is documented?
[Corion]: ambrus: I think the event loop is not really documented but implicit in X11 or Windows...
[ambrus]: One more obvious possible workaround is to just have the GUI of your program freeze for as long as the HTTP is running;
[Corion]: brb
[ambrus]: or, if Prima supports this, embedding its event loop to an outer main event loop, and running AnyEvent::HTTP in that outer one.
[ambrus]: Corion: I think there's already some form of AnyEvent integration for Prima, according to https://metacpan. org/source/ KARASIK/Prima-1. 49/examples/ socket_anyevent.pl
[ambrus]: Corion: even better, https://metacpan. org/pod/distributi on/Prima/pod/ Prima/faq.pod#How- do-I-use-Prima- with-AnyEvent
[ambrus]: a FAQ question
[ambrus]: ah, apparently that's the POE thing you were talking about
[ambrus]: Ok, but if there's a POE integration, then I again suggest that you consider using IO::Async::Loop:: Poe . I don't know if that will work.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2016-12-07 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.