phpmotion installtion for vod services

December 3, 2014 2.1k views

i need to have php motion for vod services how to install it in my current lamp server

2 Answers

Hi,

First, you need to download PHPmotion and upload it to your droplet. Make sure you get the PHP 5.3+ version:

Next, SSH in to your droplet, extract the zip file, and move it to /var/www:

sudo apt-get install unzip
unzip phpmotion.zip
sudo mv phpmotion /var/www
sudo chmod -R u+x /var/www/phpmotion/cgi-bin
sudo chown -R www-data /var/www/phpmotion/cgi-bin /var/www/phpmotion/addons /var/www/phpmotion/classes /var/www/phpmotion/logs /var/www/phpmotion/pictures /var/www/phpmotion/temp /var/www/phpmotion/uploads /var/www/phpmotion/setup

Then, add a virtualhost so that Apache serves phpmotion when you browse to your domain. Create a file called phpmotion.conf in /etc/apache2/sites-available with the following content (replace videos.example.com with your domain name`):

<VirtualHost *:80>
    ServerAdmin your@email-address
    ServerName videos.example.com
    ServerAlias www.videos.example.com
    DocumentRoot /var/www/phpmotion

    <Directory /var/www/phpmotion>
        AllowOverride All
    </Directory>

    <Directory /var/www/phpmotion/cgi-bin>
        Options +ExecCGI
        AddHandler cgi-script .cgi .pl
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Finally, enable the virtualhost and restart Apache:

sudo a2ensite phpmotion.conf
sudo service apache2 restart

You should then be able to browse to http://videos.example.com/setup and run the installation wizard.

by Pablo Carranza
This article will teach you how to use Filezilla to transfer and manage files securely on your VPS.

I get a blank page on step 2 of installation. Please help me to fix this.

Have another answer? Share your knowledge.