PHPmotion is a free-to-use video sharing content management system, written in PHP and using MySQL databases. The software provides the average person the ability to have their own video sharing website. It will allow you to create and run your very own Video Sharing website, Music Sharing Site, Picture Sharing Site. With very little knowledge required, you can now have a website just like youtube.com , dailymotion.com, veoh, hi5 and best of all, its 100% free to download and use
PHPmotion supports many different video formats.
The following is a list of some features that are included with PHPMotion.
- Uploading, managing, and deletion of videos and audio files
- Embedding of videos from youtube
- Create photo galleries
- Built in blogging tools
- Creation and management of groups and member profiles
- Internal email messaging
Requirements
PHP motion software requires a Linux base server as its base OS. I used UBUNTU 10.4as an example in this article.
After many hours and 2 days of endless googling, I have compiled and used the following list of software packages and file configurations to successfully install PHP Motion on Ubuntu server. There are several common audio-video-graphic conversion and playback software packages that need to be installed to support PHPmotion . Additionally, there are a few files that need to be configured on the Ubuntu web server to enable the scripts to run properly. To install software simply start up a command line terminal and type the commands listed in red.
sudo apt-get update sudo apt-get install php5-cli apt-get install apache2 sudo apt-get install php5-cli apt-get install php5-mysql libapache2-mod-php5 sudo apt-get install mplayer sudo apt-get install mencoder sudo apt-get install flvtool2 sudo apt-get install ubuntu-restricted-extras sudo apt-get install build-essential sudo apt-get install ffmpeg apt-get install apache2 php5 php5-gd sudo apt-get install php5-curl a2enmod rewrite /etc/init.d/apache2 force-reload /etc/init.d/apache2 restart
Now you have to Install Phpshield manually which is a required component:
Download phpshield from here
(OR http://phpshield.com/loaders/phpshield.loaders.linux.zip)
After download unzip it and copy the file phpshield.5.2.lin in to /usr/lib/php5/20060613+lfs folder
Now you need to edit the php.ini file using the following command
nano /etc/php5/apache2/php.ini
Add the following line at the end of the file
extension=phpshield.5.2.lin
SAVE and EXIT the file
Now you need to restart apache server using the following command
/etc/init.d/apache2 restart
PHPSHIELD Installation Complete, Now moving further.
Its time to Download PHPmotion
Download it from http://www.phpmotion.com/content/view/1/180/
Now Create a temp folder in / and copy phpmotion.zip in /temp
mkdir /temp cd /temp
Now UNZIP it . . .
unzip phpmotion.zip
Now copy it to your web root folder.
mv phpmotion /var/www/
(Make sure .htaccess file is also copied correctly in /var/www/phpmotion/)
Now Edit /var/www/phpmotion/.htaccess and add your path.
RewriteBase /phpmotion
Now Edit /etc/php5/apache2/php.ini and change this directive.
enable_dl = On
Now change permission for phpmotion root folder.
chmod 777 -R /var/www/phpmotion
Now copy all files from /var/www/phpmotion/cgi-bin to /usr/lib/cgi-bin by issuing following command
cp -R /var/www/phpmotion/cgi-bin /usr/lib/cgi-bin
Now edit /var/www/phpmotion/cgi-bin/uu_default_config.pm and change the following to match the sub directory.
temp_dir => $ENV{'DOCUMENT_ROOT'} . '/phpmotion/temp/', upload_dir => $ENV{'DOCUMENT_ROOT'} . '/phpmotion/uploads$ redirect_url => '/phpmotion/uploader_finished.php', path_to_upload => '/phpmotion/uploads/avi/',
CREATE MYSQL DATABASE FOR PHPMOTION
Create database for phpmotion by issuing following commands.
mysql -u root -p123 create database phpmotion; grant all privileges on phpmotion.* to 'root'@'localhost'; quit;
Basic Setup Complete, Its time to HIT the Setup . . .
Now open Your Browser, then access http://192.168.2.1/setup , then follow the setup process and skip FTP Questions. Make sure you are not missing any dependencies before continuing the setup.
After setup finishes smoothly, Remove / Rename setup directory, example
mv /var/www/phpmotion/setup /var/www/phpmotion/old_setup
NOW YOU CAN ACCESS YOUR NEWLY INSTALLED BY POINTING YOUR BROWSER TO HTTP://192.168.2.1/phpmotion
Common Problems Workarounds:
CAPTCHA IMAGE DOES NOT SHOW IN USER REGISTRATION FORM
Solve CAPTCHA image which is not appearing in registration form, by fixing font’s path (copy the DoradoHeadline.ttf in /var/www/phpmotion/includes/)
Edit /var/www/includes/captcha.php
nano /var/www/includes/captcha.php var $font = ‘/var/www/phpmotion/includes/DoradoHeadline.ttf’;
(More to come . . To Be Continued . . . )
Alhamdolillah !
Regard’s
Syed Jahanzaib