|
Aaron,
I haven't done much work with WordPress, but referring to the code snippet
in the blog entry that you referenced in your original post and the
description of getmyuid() at
http://php.net/manual/en/function.getmyuid.php, it seems to me that the
problem is that the owner of the WordPress scripts is different than the
profile running the web server.
if( function_exists(‘getmyuid’) && function_exists(‘fileowner’) ){
$temp_file = wp_tempnam();
if ( getmyuid() == fileowner($temp_file) )
$method = ‘direct’;
unlink($temp_file);
}
As you can see, the important thing is that the owner of the newly created
file (whose owner I expect to be QTMHHTTP) is the same as the owner of
the script file that is being executed (wp-admin/includes/file.php
apparently).
I would check who owns wp-admin/includes/file.php and if it is other than
QTMHHTTP, do a chown QTMHHTTP on (at least) wp-admin/includes/file.php.
Tim
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.