in reply to Infamous "Premature end of script headers"

Hi

May I suggest you delve into mod_perl?

Once you get the hang of it, you can do anything you want; I skipped the cgi-bin part altogether
To install, it's easier to use the distribution packages (Debian in my case, so : apt install libapache2-request-perl libapache2-mod-perl2 libapache2-mod-apreq2 )

https://compta.libremen.com

Logiciel libre de comptabilité générale en partie double

  • Comment on Re: Infamous "Premature end of script headers"

Replies are listed 'Best First'.
Re^2: Infamous "Premature end of script headers"
by marto (Cardinal) on Dec 14, 2021 at 21:39 UTC

    "I've upgraded and a CGI script no longer works" to "you should use mod_perl" is quite the jump.

      True. I was fortunate to find it 15 years ago, when the mod_perl list was very active, hence got a lot of guidance, and there are a few gotchas. Now that I'm replying to you, I recall that I did have to study this book before I could be operational.

      However I found the effort was worth it because you can do so much with mod_perl (I build web based applications for a living, the hooks to the Apache response phases are awesome); and you get to write perl code, not cgi code. Also, very efficient.
      Anyhow, you are right, not for someone who is building a hobby site. But if one wants to make a serious one, it's a great tool.

      https://compta.libremen.com

      Logiciel libre de comptabilité générale en partie double