There was a need to place my videos that would be available both to me and to relatives from other cities, for these purposes, I decided to try using the well-known
video hosting engine PHPmotion , in this article I will give the installation process on OS Debian 6 Squeeze, The installation took place inside the
OpenVZ container.
All commands are executed from the superuser, please do not kick, anyone, use sudo.
')
Preparing the system.
# apt-get install mysql-server mysql-client
# apt-get install apache2 php5 php5-gd php5-ffmpeg php5-mysql php5-cli php5-curl libapache2-mod-auth-mysql
We need the Lame codec, to install it you need to connect an additional source.
# echo "deb ftp.deb-multimedia.org squeeze main non-free" >> /etc/apt/sources.list
# apt-get update
# apt-get install debian-multimedia-keyring
# apt-get install lame
Back to the installation of standard packages:
# apt-get install mplayer
# apt-get install mencoder
# apt-get install ffmpeg
# apt-get install flvtool2
Copy the phpshield module.
cp /var/www/site/phpshield/ixed.5.3.lin /usr/lib/php5/20090626
20090626 folder in my case, you may be different.
Now we need to connect this module, check the path to the configuration file:
php -i | grep php.ini
Loaded Configuration File => /etc/php5/cli/php.ini
Make changes:
echo "extension=ixed.5.3.lin" >> /etc/php5/cli/php.ini
Reboot apache
/etc/init.d/apache2 restart
Download the PHPmotion V3.5 installation package:
wget www.phpmotion.com/downloads/V3.5/php5.3.x/phpmotion.zip
Next, unpack, do not forget to connect the Apache module, modrewrire:
a2enmod rewrite
/etc/init.d/apache2 restart
In php.ini we change:
enable_dl Off
enable_dl On
We set chmod 777 to the following directories:
/addons
/addons/albums
/addons/albums/thumbs
/addons/albums/images
/addons/customprofile
/addons/customprofile/member_css
/addons/customprofile/member_images
/classes
/uploads
/uploads/avi
/uploads/audio
/uploads/audio
/uploads/player_thumbs
/uploads/thumbs
/logs
/setup
/pictures
/temp
On the contents of the folder / cgi-bin / expose 755.
We create the mysql database, follow the instructions and at the last stage delete the setup folder, the configuration is complete.
Go to the main page, select the registration section, if the captcha doesn't work for you, then in the / includes / folder, replace the captcha.php file:
var $font = 'DoradoHeadline.ttf';
:
var $font = './DoradoHeadline.ttf';
When uploading files to the server, perl scripts are used which are located in the / cgi-bin / folder. In the settings of the virtual host, change to the correct path to the / cgi-bin / folder.
From first impressions:
- Poor quality of the video (I think you need to dig into the settings)
- There is no Russian interface (but it seems there are unofficial adaptations)
If after downloading the file, you do not see the result, pay attention to the logs located in the / logs / folder, for example, in my case mplayer was originally installed, and then lame an error was written to the log stating that mplayer was built without lame to solve the problem reinstalled mplayer helped.