File Uploading and General CGI Errors
Back to Tips & Tricks
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 file required
This can also be caused by not having a .htaccess file in your main installation directory.
IMPORTANT
------------
PHPmotion V3 users do NOT need to do this:
1. Open Notepad and create new document
2. Copy (only not the -------------) and paste the information below into Notepad
2. Save the file and upload (using FTP) it into your main PHPmotion installation folder
#-------------------------------------------------------------------------------
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
php_value session.gc_maxlifetime 14400
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
#-------------------------------------------------------------------------------
Lastest Templates from - PHPmotiontemplates.com