Report this

What is the reason for this report?

Wordpress not linking properly to unicode image filenames

Posted on November 4, 2013

Hi, I just migrated my Wordpress site to DO. I used an Ubuntu with preconfigured wordpress and transfered my files and my DB to the VPS. So far so good. I have this strange behavior: Filenames with unicode names (greek) do not link properly on website and eventually images do not show on site. Here are the facts:

  • ssh into vps and ls shows filenames as ???.jpg
  • performing ls | more shows filenames correclty! (So i assume that the original naming was not lost when transferring them)
  • checking images from wordpress admin shows them as broken links.(they do not show)
  • logging into to phpmyadmin and checking the corresponding tables (postmeta) shows the names in unicode.
  • also, uploading one new image with unicode (greek) filename works OK… Any ideas?


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Make sure that everything in your WordPress directory is owned by <code>www-data</code> and is a member of the <code>www-data</code> group; by executing: <br><pre>ls -la /path/to/your/WordPress/installation</pre> <br>If you see <code>root:root</code> sprinkled anywhere in there, remedy it by executing: <br><pre>sudo chown -R www-data:www-data /path/to/your/WordPress/installation</pre>

Hi, <br>had already done that but did it again just in case…

oops; I forgot to mention: Restart Apache: <br><pre>sudo service apache restart</pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.