A few things I can think of that you can check:
1) Make sure all the relevant paths (../public and /srv/www/htdocs/temp_upload
in particular) exist and have the proper permissions. Test this by changing
to whatever user Apache uses (ex.: "su apache") and make sure you can write
to those directories.
2) Check free drive space ("du -h"). Obviously if a partition has no free
space there could be issues.
3) Check the Apache error log for any warnings or error messages. Set PHP
to log all warnings/notices temporarily ("error_reporting(E_ALL);").
4) Create a bare-bones PHP file for uploading a file to see if the issue is
just MediaWiki or the server in general.
If this doesn't reveal the upload issue it should at least narrow it down
further for you.
On 6 June 2013 14:44, Michael Hafner <michael.hafner(a)dw.de> wrote:
Dear List,
has anybody encountered/solved this kind of problem?
Michael
__________________
Dear list,
sorry for what may turn out a beginner's blunder. With the configuration
outlined below, I still get an error message when trying to upload a file
(no matter what size or type): "The file you uploaded seems to be empty".
I found a lot of stuff on this, but somehow...
Any help would be greatly appreciated
Michael
MediaWiki 1.20.3
SUSE LES 11
Apache/2.2.12
PHP 5.3.8
MySQL 5.5.29
+ + httpd.conf + +
<Directory /srv/www/htdocs>
LimitRequestBody 104857600
</Directory>
+ + php.ini + +
memory_limit = 128M
post_max_size = 100M
file_uploads = On
upload_tmp_dir = /srv/www/htdocs/temp_upload
upload_max_filesize = 32M
max_file_uploads = 20
safe_mode = Off
; open_basedir
++ LocalSettings.php + +
$wgEnableUploads = true;
$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCheckFileExtensions = true;
$wgMaxUploadSize = 104857600; // 100MB
$wgFileBlacklist = array('html', 'htm', 'js', 'jsb',
'mhtml', 'mht',
'xhtml', 'xht', 'php', 'phtml', 'php3',
'php4', 'php5', 'phps', 'shtml',
'jhtml', 'pl', 'py', 'cgi','exe', 'scr',
'dll', msi', 'vbs', 'bat', 'com',
'pif', 'cmd', 'vxd', 'cpl' );
$wgUploadDirectory = "{$IP}/public"; // "false" defaults to
"{$IP}/images"
$wgUploadPath = "{$wgScriptPath}/public"; // "false" defaults
to
"{$wgScriptPath}/images"
$wgFileExtensions[] = 'png';
$wgFileExtensions[] = 'jpg';
$wgFileExtensions[] = 'jpeg';
$wgFileExtensions[] = 'gif';
$wgFileExtensions[] = 'ppt';
$wgFileExtensions[] = 'ogg';
$wgFileExtensions[] = 'pdf';
$wgFileExtensions[] = 'doc';
$wgFileExtensions[] = 'ppt';
$wgFileExtensions[] = 'xls';
+ + File Permissions ++
upload_tmp_dir
images
public
File permissions for all directories mentioned above: 0777
Michael
www.dw.de
mobile.dw.de
mediacenter.dw.de
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
Dave Humphrey -- dave(a)uesp.net
Founder/Server Admin of the Unofficial Elder Scrolls Pages --