PHPmotion Wiki : HelpFileUploadingErrors

HomePage :: Contents :: PageIndex :: Login/Register

File Uploading and General CGI Errors



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>
#-------------------------------------------------------------------------------




Can't locate CGI.pm


If you are getting this error you will only be able to fix it if you have either a dedicated server or a VPS (with ROOT SSH access)

General Causes

Login to your server via ssh and type these commands

perl -e shell -MCPAN

<Enter and they type>

install CGI





Get more PHPmotion help at our Forum. Our forum has over 100,000 web masters



Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0216 seconds