caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
57.33k stars 4k forks source link

CMS ajax file / image upload fails with 500 error code #520

Closed pwFoo closed 8 years ago

pwFoo commented 8 years ago

I tested the Processwire CMS with Caddy. Backend and frontend works fine, but Ajax image upload fails with a 500 http error.

Is there a known bug? Or should it be a CMS / PHP related problem? Works fine with apache.

mholt commented 8 years ago

I'm going to need more details -- use the errors directive to get the details of the error and report back what the error is, what action causes it, and all other pertinent, supporting information.

pwFoo commented 8 years ago

Hi @mholt,

I take a closer look. No caddy error message, just a 500 error code in the access log. It isn't a Caddy issue / bug, just a missing PHP package! Caddy works like a charm!

CMS error log

Error:  Call to undefined function ProcessWire\mb_strtolower()

Solution: Just install php-mbstring package...

mholt commented 8 years ago

Awesome, glad you figured it out!

pwFoo commented 8 years ago

Thanks for your awesome work! :+1: I would love to replace Apache with Caddy as webserver and revproxy! :)