DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: markmak on July 28, 2004, 04:11:10 AM



Title: Cannot Upload - in Fedora 2+Apache 2.0.50-2.1 +PHP 4.3.8-3
Post by: markmak on July 28, 2004, 04:11:10 AM
Description:
------------
Dear Guru,

I had installed the 4.3.8-3 rpm for Fedora in an Apache 2.0.50
environment.

After installation of some community suites (like xoops, phpnuke, etc.
), I found all of the upload functions failed strangely.

I go further to suspect some setting may be wrong about my php.conf.
However, after extensive searching, I found my settings (including
FileUploads on, tmp_dir = /www/tmp, etc.) should probably be correct.  
*** I have checked the tmp directory is owned and writeable by apache.

I therefore write a very simple file upload to check the correct
functioning of file upload.

http://ootlinux01.homelinux.net:8000/testupload.html

(It will POST to a .php file which simply display phpinfo())

and check whether the tmpfile would be created in the destinated
directory.

I cannot find the expected new tmpfile.

Would someone know what's has gone wrong or is it some unmatched version among Apache and PHP ?

I would be grateful for your kind assistance.

Thank you for your help.

Best Regards,
Mark


Title: Cannot Upload - in Fedora 2+Apache 2.0.50-2.1 +PHP 4.3.8-3
Post by: Jorge on July 28, 2004, 10:31:53 AM
in php.ini see if:
file_uploads = On

and

safe_mode = Off

This fix problemw i had once hope it's the same for linux


Title: Any other suggestions ?
Post by: markmak on July 29, 2004, 02:09:25 AM
Thank you for your assistance and advice.  

However, those settings were already configured as the advised value and I just curious whether that may be due to the release(s) and platform combination.

Would anyone using the same platform face a similar problem ?
I don't have this problem when running Apache 2.0.50+PHP5Final+W2K.

Thanks a lot. More comments and advices are welcomed.

Mark


Title: Cannot Upload - in Fedora 2+Apache 2.0.50-2.1 +PHP 4.3.8-3
Post by: admin on July 29, 2004, 02:37:35 AM
How are you trying to upload files?


Title: Normal Upload HTML
Post by: markmak on July 29, 2004, 06:46:58 AM
<form enctype="multipart/form-data" action="myupload.php" method="post">

 <input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
 Send this file: <input name="userfile" type="file" />
 <input type="submit" value="Send File" />

</form>

** Hope you can understand that it is really the most fundamental file upload script.

Regards,
mark


Title: Cannot Upload - in Fedora 2+Apache 2.0.50-2.1 +PHP 4.3.8-3
Post by: admin on July 29, 2004, 04:00:58 PM
Have you checked Apache's error_log ?  How about posting the output here, and also the contents of myupload.php