DeveloperSide.NET Forums
October 20, 2019, 08:11:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Cannot Upload - in Fedora 2+Apache 2.0.50-2.1 +PHP 4.3.8-3  (Read 12407 times)
0 Members and 1 Guest are viewing this topic.
markmak
Member
*
Posts: 3


View Profile
« 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
Logged
Jorge
Customer, Basic Support
Guru
*****
Posts: 544

jorge_schrauwen@msn.com
View Profile WWW
« Reply #1 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
Logged

markmak
Member
*
Posts: 3


View Profile
« Reply #2 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
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #3 on: July 29, 2004, 02:37:35 AM »

How are you trying to upload files?
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
markmak
Member
*
Posts: 3


View Profile
« Reply #4 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
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 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
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!