Lighttpd webserver wordpress image uploading problem - offers inline.php as download options
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
You may also be interested in other helpful articles:
- Wordpress 2.0.7 available for download
- WordPress 2.0.5 (Ronan) available for download
- Lighttpd and wordpress setup clean SEO friendly URLs
- Lighttpd php segfault at 0000000000000040 rip 0000003e30228278 rsp 0000007fbffff708 error 4
- Lighttpd: redirect feed traffic to a Feedburner account
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Today ~ 15 Comments
Today ~ 51 Comments
Today ~ 4 Comments
Today ~ 14 Comments
Today ~ 8 Comments