LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2008, 07:40 AM   #1
shan_nathan
Member
 
Registered: Jun 2007
Location: India
Distribution: Redhat
Posts: 137

Rep: Reputation: 15
Apache file upload problem


Dear all,

I am using suse 10.1 & apache 2.2.0-21.In my web server i am trying to upload file the followqing error is coming.
+++++++++++++++++++++++++++++

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

++++++++++++++++++++++++++++

In the error log file i am seeing the following error

[Wed May 21 17:52:20 2008] [error] [client 192.168.44.50] File does not exist: /srv/www/htdocs/_URL_, referer: http://10.236.1.176/

+++++++++++++++++++++++++++++++++

This is my index.phb file
<html>
<head>
<title>Implementation Portal</title>
</head>
<body>
<p align="center"><b><font size="4"><a href="http://192.168.44.250/docs/">CLICK
HERE TO ENTER DOCUMENT ROOT</a></font></b></p>

<form enctype="multipart/form-data" action="_URL_" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>

</body>
</html>

++++++++++++++++++++++++++++++++++++

and this is the directory configuration

<Directory "/srv/www/htdocs">

Options All
AllowOverride All
Order allow,deny

Allow from all
</Directory>
++++++++++++++++++++++++++++++++++++++++
Can someone tell me what is the problem or is there any configuration to be done

Thanks in advance
Shan
 
Old 05-21-2008, 08:10 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Darn, it is doing exactly what you told it to do. The problem is in your <FORM> tags: the action tag is set to "_URL_", which is exactly what the error log is complaining of. The correct entry there is the name of the script that should handle the upload. You need to write in an actual filename in place of the _URL_ placeholder that was used in the example in the PHP manual. That is not absolutely obvious from a quick reading of the page, but there is a note below that code box that sort of says this.
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file upload to apache shan_nathan Linux - Server 1 05-13-2008 06:39 AM
Quota Problem,qbout Upload/del File, i need help,thank singying304 Linux - Software 14 07-06-2005 11:27 AM
Linux Server File Upload Problem? defa0009 Linux - General 4 05-05-2004 03:03 PM
file upload apache 2.0 scriptjunkie Linux - Newbie 0 08-08-2003 03:26 PM
File upload problem saravanan1979 Linux - Newbie 4 03-29-2002 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration