PHPmotion on Debian 6 Squeeze

There was a need to post my own videos, which would be accessible both for fucking me and for relatives from other cities, for these purposes, I decided to try using the famous engine for organizing video hosting - PHPmotion , in this note I will give the installation process on OS Debian 6 Squeeze, Installation took place inside an OpenVZ container .



All commands are executed from the superuser, please do not kick, anyone, use sudo.

We are preparing the system. We need the Lame codec, to install it you need to connect an additional source. We return to the installation of standard packages: Copy the phpshield module. 20090626 folder in my case, yours may be different.

# 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




# 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




# apt-get install mplayer
# apt-get install mencoder
# apt-get install ffmpeg
# apt-get install flvtool2



cp /var/www/site/phpshield/ixed.5.3.lin /usr/lib/php5/20090626



Now we need to connect this module, check the path to the configuration file: Make changes: Do the reboot apache Download the installation package PHPmotion V3.5: Next, unpack, do not forget to connect the Apache module, modrewrire: In php.ini, change: Set chmod 777 to the following directories: We set 755 to the contents of the / cgi-bin / folder. Create a mysql database, follow the instructions and delete the setup folder at the last stage, the setup is complete. We go to the main page, select the registration section, if the captcha does not work for you, then you need to replace the captcha.php file in the / includes / folder:

php -i | grep php.ini
Loaded Configuration File => /etc/php5/cli/php.ini



echo "extension=ixed.5.3.lin" >> /etc/php5/cli/php.ini



/etc/init.d/apache2 restart



wget www.phpmotion.com/downloads/V3.5/php5.3.x/phpmotion.zip




a2enmod rewrite
/etc/init.d/apache2 restart




enable_dl Off
на
enable_dl On



/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








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, it is necessary to change the settings of the virtual host to the correct path to the / cgi-bin / folder.

From the first impressions:

- Poor quality of the received 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 in the / logs / folder, to For example, in my case, mplayer was originally installed, and only then lame an error was written to the log that mplayer was built without lame, reinstalling mplayer helped solve the problem.

Also popular now: