On Apr 14, 2004, at 09:18, Richards,Michael wrote:
On our internal MediaWiki (currently 1.1.0) here at Gartner, which we have recently put on a production Linux box, everything works fine except image uploads.
I uploaded several image files onto the development box successfully, and copied them over to the production box, and they display fine.
I am trying to upload a 150K image (nowhere near the hard limit of 1MB) and get the following error:
Internal error Could not copy file "/tmp/php5ZpRoX" to "/srv/www/htdocs/wiki/upload/3/31/Cyclone.jpg".
Check the ownership and permissions of the upload directory and its subdirs; they must be writable by the web server (usually user "apache", or "web" or "www" or "httpd" or ...) It's easy to accidentally reset the ownership when copying files around.
Are you suppressing PHP errors, or directing them to a log file instead of web output? If there are bad permissions you should see some error messages on the mkdir() and move_uploaded_file() calls.
-- brion vibber (brion @ pobox.com)