LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-06-2010, 01:59 AM   #1
tadeas
Member
 
Registered: Jul 2008
Location: Prague
Distribution: Opensuse
Posts: 40

Rep: Reputation: 5
Nginx upload module gives 503 error on example configuration


Hi!
I have to learn to use the Nginx upload module, but I cannot install it .
http://www.grid.net.ru/nginx/upload.en.html
I've followed the install procedure (quite annoying, to have to recompile Nginx from sources given that I used the version from the repos.. ), I configured it as suggested on the official website (the link I've mentioned above). If I try the example script:
http://pastebin.com/cfMLRQkE

I get 503 Service Temporarily Unavailable error (and the browser is stuck on http://127.0.0.1/upload address).

My nginx.conf looks like this (including the upload module settings):
http://pastebin.com/DhVw9xM9

If I try to point the form's action to the example script (i.e. to upload_example.php instead of /upload), it creates an empty table with headers, it means that either array_key_exists($key."_name", $_POST) or array_key_exists($key."_path",$_POST) returns false - i.e. $_POST doesn't contain the expected values that the upload module should provide. In fact it is empty and $_FILES contains the casual ["input"]["name"], ["input"]["tmp_name"] etc. values as in regular PHP.

I use Debian Squeeze if it makes any difference..

Any ideas what's wrong?

Last edited by tadeas; 07-06-2010 at 02:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can i replace 503 error page in Apache? ppawcio Linux - Server 3 03-20-2010 10:18 PM
sendmail error code 451 503 edenCC Linux - Server 1 10-31-2007 12:40 AM
Error 503 Apache v2-ncl Linux - Software 1 07-07-2004 06:36 PM
SSL and 503 FTP Error :: Socket kuphryn Programming 0 03-30-2004 10:41 AM
google is down!! 503 server error thehundredthone General 7 03-25-2004 10:10 AM


All times are GMT -5. The time now is 07:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration