"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.
| [reply] |
Which system has this problem? Windows or Linux?
Are you aware that Windows has neither fork() nor exec()? Are you aware that Apache uses different process models on Linux and Windows? This also affects mod_perl!
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
| [reply] |
Hi,
thanks for your quick reply.
Both systems have this problem, that nothing is working when trying to fork() or thread. I tried all possible functions like, fork, exec, system with &, Proc::Daemon and other things on both machines. The functions which do not create a process or thread for their own like system() are working fine, but this causes a lot of delay due to the time the called script needs. I'm working with mod_perl, that's correct. Because I thought about the different behavoiurs of Apache I tried all possibilities on both systems.
Greetz
| [reply] |
| [reply] |
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
| [reply] |