[pmwiki-users] 500 Error when saving large wiki pages

Sebastian Flothow lists at flothow.de
Wed Jan 26 08:57:01 CST 2005


Am 26. Jan 2005 um 08:24 Uhr schrieb Menachem Shapiro:
> When trying to save large wiki pages, I sometimes (probably about 50%
> of the time) get 500 Internal server errors. A quick look at my server
> log tells me this:
> "Premature end of script headers: 
> /home/otterpro/public_html/pmwiki/pmwiki.php"

Does the error response appear immediately, or does it take something 
like 30 secs?

I'm asking since by default, PHP scripts are limited to 30 secs 
execution time IIRC. If the script takes longer for large edits, the 
PHP interpreter will abort without generating any ouptut, and the web 
server (Apache, I guess) will log the error you see. (It looks like 
your server is using the standalone, CGI-style interpreter, rather than 
mod_php.)

If, however, the error response is returned immediately, or after some 
other non-30secondish delay, then there must be some other reason for 
the script failing. Exceeding the memory limit set in the PHP config is 
a possible cause for this.


Sebastian

-- 
Sebastian Flothow
sebastian at flothow.de

Because it reverses the logical flow of conversation.
 > Why is top posting frowned upon?




More information about the pmwiki-users mailing list