Bluehost.com Web Hosting $6.95

Uploaded Files Empty - Apache configuration problem?

This is a discussion on Uploaded Files Empty - Apache configuration problem? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I'm in the process of moving an existing website from a shared host to a dedicated server. The ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-23-2006
Sidane
 
Posts: n/a
Default Uploaded Files Empty - Apache configuration problem?

Hi,
I'm in the process of moving an existing website from a shared host to
a dedicated server. The dedicated server is running CentOS 4, Apache
2.0.52 and PHP 4.3.9.

The site is PHP based and a few forms on the site upload files.

The uploaded file is stored in the /tmp directory and then moved to its
final destination by PHP. This is working fine on the shared hosting
account. But on the dedicated server, none of the file data is
uploading. The final stored file has a size of 0.

The $_FILES array in the PHP script that processes the uploaded file
contains the usual information e.g.

array(1) {
["file1"]=> array(5)
{
["name"]=> string(16) "file_name_1.jpg"
["type"]=> string(24) "application/octet-stream"
["tmp_name"]=> string(14) "/tmp/phppaZGQm"
["error"]=> int(0) ["size"]=> int(0)
}
}

But as the last value shows, the size is 0. I'm uploading an 80k jpeg
so there's no problem with max file size limits. All file upload
directives are enabled in the php.ini file.

I can't figure out what could be causing this. My PHP works fine on the
other server so I don't think that's the problem. It must be a
configuration issue somewhere, but I can't figure out where.

Is it an Apache or PHP config issue? A permissions issue? Or maybe
something to do with the OS config?

Apologies if this isn't the right place for this query, but I'm at my
wits end and any help would be greatly appreciated.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0