Knowledgebase:
File Uploading and General CGI Errors
Posted by Pacific Host, Last modified by Pacific Host on 05 December 2011 06:38 AM

500 Errors & 403 Errors


This section will cover 500 errors and some of their causes.

General Causes


These are some of the reasons for getting these errors. 

   1. You have not uploaded the files in the /cgi-bin/ in ASCII mode.

   2. You have not set the correct permissions on the the files in the /cgi-bin/ (all should be CHMOD to 755)




Plesk Control Panel - Suexec Related Errors

If you are installing on a PLESK server and in a SUB-DIRECTORY, you may get 500 errors or 403 errors. bellow is a possible solutions.

   1. Upload All files in the subdir as normal
   2. Do not make any of the normal subdirectory installation changes (as per setup instructions). 
   3. Upload all cgi scripts in the ROOT cgi-bin
   4. Edit the /cgi-bin/uu_default_config.pm and /cgi-bin/audio/uu_default_config.pm in the ROOT cgi-bin as to point to the subfolder
  		
		#EXAMPLE
		#--------------------------------------------------------------------------------------
		  temp_dir                 => $ENV{'DOCUMENT_ROOT'} . '/video/temp/',
		  upload_dir               => $ENV{'DOCUMENT_ROOT'} . '/video/uploads/avi/',
		  redirect_url             => '/video/uploader_finished.php',
		  path_to_upload           => '/video/uploads/avi/'
		#---------------------------------------------------------------------------------------

This way the script will look for the cgi files in the ROOT bin and these cgi files will know where to actually save the 
uploaded file i.e. in the subfolder.






ERROR: Failed to find flength file


This error can also cause the upload progress bar not to show

General Causes

These are some of the reasons for getting these errors. 

   1. You have not uploaded the files in the /cgi-bin/ in ASCII mode.

   2. You have not set the correct permissions on the the files in the /cgi-bin/ (all should be CHMOD to 755)

   3. You are installing PHPmotion is a subdirectory but have NOT followed the instruction for making needed changes to some files.


.htaccess solution 

You can try adding the following to inside the /.htaccess file thats found in the PHPmotion download. Then re-upload the file into
your PHPmotion/FTP main directory


#-----------Add this anywhere in the file (the end is best)------------------------
<IfModule mod_security.c>
SecRuleEngine Off
</IfModule>
#-------------------------------------------------------------------------------

 

(0 vote(s))
Helpful
Not helpful

Comments (0)