You should follow the below steps to install PHPmotion version 2. For version 1 you need to use instructions provided inside the downloaded zip file.
-
First determine what version of PHP is running on your web server
-
Use a phpinfo() function to create a phpinfo file
-
Download the proper version of PHPMotion
-
Unzip the files on your computer
-
Use your web hosting control panel or similar, to create a mysql database and write down the details of the database once created
-
Upload all the phpmotion files into your FTP folder
CHMOD all the following files and directories to 777
-
/setup
-
/pictures
-
/classes
-
/temp
-
/logs
-
/addons
-
/uploads
-
/uploads/avi
-
/uploads/thumbs
-
/uploads/audio
-
/uploads/audio/temp
-
/uploads/pictures
CHMOD all the following files and directories to 755
-
/cgi-bin/all files in there
-
/cgi-bin/audio/all files in there
-
Start the installation wizard by going to http://youdomain.com/setup
Note : The following files must be uploaded in binary mode. For this your FTP program will have an option.
-
/classes/config.php
-
/watchingnow.php
-
/mp3_id3_utils.php
Installing PHPmotion version 2 to a Sub-Folder
To install phpmotion into a subfolder (http://www.yourdomain.com/myvideos/) you will have to follow all the above standard set up instructions.
Following files will need to be edited using a plain text editor such as Notepad
-
/cgi-bin/uu_default_config.pm
-
/cgi-bin/audio/uu_default_config.pm
-
uploader_conlib.php
-
audio_uploader_conlib.php
-
/cgi-bin/uu_default_config.pm and /cgi-bin/audio/uu_default_config.pm
open each file and place the section with:
-
config_file_name => ‘uu_default_config’,
-
temp_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/temp/’,
-
upload_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/uploads/avi/’,
-
redirect_url => ‘/uploader_finished.php’,
-
path_to_upload => ‘/uploads/avi/’,
Change it to:
-
config_file_name => ‘uu_default_config’,
-
temp_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/myvideos/temp/’,
-
upload_dir => $ENV{‘DOCUMENT_ROOT’} . ‘/myvideos/uploads/avi/’,
-
redirect_url => ‘/myvideos/uploader_finished.php’,
-
path_to_upload => ‘/myvideos/uploads/avi/’,
-
uploader_conlib.php and audio_uploader_conlib.php
open each file and locate the section with:
Change it to:
Problems and Debugging Video and Sound problems.
If you are facing the following problems.
Recommended Option for Debugging
/Open the file classes/config_inc.php
/Set the $log_encoder variable to yes.
/This will create a log file each time you upload a new video
/The log file will be located in the logs folder
Example : $log_encoder = “yes”;
In addition dedicated server or VPS is highly recommended for PHPMotion.
