Lighttpd webserver wordpress image uploading problem – offers inline.php as download options

by on June 9, 2007 · 0 comments· LAST UPDATED June 9, 2007

in , ,

You can easily upload small files but large upload fails and offers inline.php as download option.

This error is caused because of improper php configuration. Make sure upload_tmp_dir is set and webserver user such as httpd/nobody/lighttpd can write to this directory.
$ grep upload_tmp_dir /etc/php.in
Set upload_tmp_dir to /tmp or /var/tmp:
upload_tmp_dir = /var/tmp

Next make sure web sever can write to temporary upload directory:
# chown lighttpd:lighttpd /var/tmp

Now you should able to upload files. A final note if you need to upload files larger than 2MB set maximum allowed size for uploaded files using upload_max_filesize directive:
upload_max_filesize = 5M

As usual restart lighttpd to make changes:
# /etc/init.d/lighttpd restart
# tail -f /var/log/messages



If you would like to be kept up to date with our posts, you can follow us on Twitter, Facebook, Google+, or even by subscribing to our RSS Feed.


{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 8 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.

Previous post:

Next post: