Project

General

Profile

[Solved] Lighttpd and WordPress administration.

Added by cwrseck almost 5 years ago

Running a system with:

Ubuntu LTS 16.04, up to date.
WordPress 5.2.2 with the TwentySixteen theme.
Lighttpd 1.4.35 (on a local filesystem).

I can access the http://localhost/blog page to view the site, but when I try to
administer the site I can't open http://localhost/blog/wp-admin. The error log
(from several attempts) is:

2019-06-23 14:44:40: (log.c.164) server started
2019-06-23 14:44:54: (request.c.1125) POST-request, but content-length missing -> 411
2019-06-23 14:50:55: (request.c.1125) POST-request, but content-length missing -> 411
2019-06-23 14:54:51: (request.c.1125) POST-request, but content-length missing -> 411
2019-06-23 15:00:17: (request.c.1125) POST-request, but content-length missing -> 411
2019-06-23 15:04:56: (server.c.1558) server stopped by UID = 0 PID = 1

Does anyone have a fix, or a patch, for WordPress, or PHP, or Lightttpd? The site
runs fine under Apache2 2.4.18, but I'd rather use Lighttpd.

Thanks - C W Rose


Replies (2)

RE: Lighttpd and WordPress administration. - Added by gstrauss almost 5 years ago

Lighttpd 1.4.35
Does anyone have a fix, or a patch, for WordPress, or PHP, or Lightttpd?

The latest lighttpd is 1.4.54. You're using a terribly old version of lighttpd.

"Newer" (less ancient) versions of lighttpd have fixed this issue since lighttpd 1.4.44, which was released over two and a half years ago.

[Edit] To be clear, your problem is actually WordPress not honoring the RFC-compliant 411 Length Required response from lighttpd. lighttpd added support for Transfer-Encoding: chunked request body in lighttpd 1.4.44.

RE: [Solved] Lighttpd and WordPress administration. - Added by cwrseck almost 5 years ago

Thanks - I'm using the default Ubuntu 16.04 LTS version, so I'll try and find
a way to update it. I much prefer Lighttpd to Apache2; it's simpler and
easier to configure.

C W Rose

    (1-2/2)