WebFaction
Community site: login faq

Hello everyone!

I can't upload files with non ascii filenames in my webfaction account. I'm using django 1.3. I get a 500 error.

I read I have to set LANG and LC_ALL for apache, but I couldn't make it work. Any clues?

asked 18 Nov '11, 13:22

Iván
312
accept rate: 0%


You need to set the variables in your apache2/bin/start script, on the same line that begins with "LD_LIBRARY_PATH".

Here's an example:

LANG='es_ES.UTF-8' LC_ALL='es_ES.UTF-8' LD_LIBRARY_PATH=/home/username/webapps/django/apache2/lib /home/username/webapps/django/apache2/bin/httpd.worker -f /home/username/webapps/django/apache2/conf/httpd.conf -k start

Restart your Apache after making that change.

Hope that helps!

permanent link

answered 18 Nov '11, 19:40

seanf
12.2k42136
accept rate: 37%

Thanks, that was it. I don't know why I couldn't make it work before, I've tried that but with a different locale (en_US) and without the '' but I might had done something wrong. Thanks a lot!

(22 Nov '11, 09:32) Iván
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×29
×22
×3

question asked: 18 Nov '11, 13:22

question was seen: 2,867 times

last updated: 22 Nov '11, 09:32

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM