duffydack
February 12th, 2009, 05:24 PM
This guide is confirmed working on Hardy, Intrepid and Jaunty Desktop or Server. Earlier Ubuntu versions may work fine with this guide. Potential problems could be down to location/naming of Apache/MySQL/PHP and their configs.
I have tried to split this down into easy to swallow chunks, hence the overall length, so you should be able to adapt it to your version of Ubuntu and software with relative ease.
Make sure you have the extra repos added. See Adding the Universe and Multiverse Repositories (https://help.ubuntu.com/community/Repositories/Ubuntu#head-5bbef89639d9a7d93fe38f6356dc17847d373096)
If you prefer the `bleeding edge` version of FFMPEG, or to fix issues with older versions, then follow this guide here How to compile latest FFMPEG/x264. (http://ubuntuforums.org/showthread.php?t=786095)
I am starting off from a fresh install of Ubuntu and using defaults for packages to be installed.
before we start lets update the system
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo tasksel install lamp-server
you will be prompted by
New password for the MySQL "root" user:
enter one and remember it.
$ sudo apt-get install unzip ffmpeg mencoder php5-ffmpeg php5-gd php5-curl lame
for 32bit ubuntu
$ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
for 64bit
$ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
$ wget http://vidiscript.com/release/VidiScript_v_0_4_3.zip
FOR 32bit
$ tar xvf ioncube_loaders_lin_x86.tar.gz
FOR 64bit
$ tar xvf ioncube_loaders_lin_x86-64.tar.gz
$ sudo mv ioncube /usr/local/bin/
$ unzip VidiScript_v_0_4_3.zip
$ sudo mv VidiScript_v_0_4_3/VidiScript/ /var/www/vidiscript
a few things to change now
$ sudo pico /etc/php5/apache2/php.ini
I`m going with the recommended config as stated on vidiscript site. Find each of these and change to the values below
safe_mode = off
max_execution_time = 1000
max_input_time = 1000
open_basedir =
upload_max_filesize = 200M
post_max_size = 200M
register_argc_argv = On
Now, still in the /etc/php5/apache/php.ini file, goto line 73 or look for something looking like.
; Enable the PHP scripting language engine under Apache.
engine = On
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
add the code in bold like so..
; Enable the PHP scripting language engine under Apache.
engine = On
zend_extension = /usr/local/bin/ioncube/ioncube_loader_lin_5.2.so
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
$ sudo a2enmod rewrite
$ sudo pico /etc/apache2/sites-enabled/000-default
you should see something similar to this
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
Set AllowOverride to all like so
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
$ mysql -u root --password=<MySQL password here>
create database vidiscript;
quit
$
$ cd /var/www/vidiscript
sudo chmod 777 data data/keys data/scroller/scroller.xml uploads uploads/thumbs/ uploads/avatars/ uploads/ads/ uploads/groupicons/ includes/settings.inc includes/badwords.inc
sudo /etc/init.d/apache2 restart && sudo /etc/init.d/mysql restart
Now from your browser goto http://localhost/vidiscript/install/ or if from a different PC on your network, http://ip.address/vidiscript/install/
You will see the vidiscript installation page. Everything should be GREEN, if so proceed and click NEXT
Step 2 - Database Details
Database name vidiscript
Host Name localhost
Login Username root
Login Password <your sql password>
Click NEXT
Step 3 - Site Details And Admin Login
Site Name (anything)
Site Folder vidiscript
Admin Username (anything you like, but remember)
Admin Password (any password you choose, but remember)
Admin Email Address user@localhost.net
Click NEXT
and you are DONE,
Congratulations! Your new VidiScript site is installed and ready
Please delete the 'install' folder as soon as possible, you will see a warning on your site until you have done this.
Also change the file permissions on includes/settings.inc to 644, if you leave it writable it could be a security risk.
Click here to go to your VidiScript site
....Except before you click the link to your new site, do this first
sudo rm -rf /var/www/vidiscript/install/
sudo chmod 644 /var/www/vidiscript/includes/settings.inc
On the right hand side click Site Settings to configure it some.
Notes:
This guide is only meant to install and test the script on your own personal machines. The script is best used (unless you have a ton of bandwidth on that home line!) with a dedicated hosting site which supports all the configuration needed. More infos can be found on Vidiscript (http://www.vidiscript.com/)
I have tried to split this down into easy to swallow chunks, hence the overall length, so you should be able to adapt it to your version of Ubuntu and software with relative ease.
Make sure you have the extra repos added. See Adding the Universe and Multiverse Repositories (https://help.ubuntu.com/community/Repositories/Ubuntu#head-5bbef89639d9a7d93fe38f6356dc17847d373096)
If you prefer the `bleeding edge` version of FFMPEG, or to fix issues with older versions, then follow this guide here How to compile latest FFMPEG/x264. (http://ubuntuforums.org/showthread.php?t=786095)
I am starting off from a fresh install of Ubuntu and using defaults for packages to be installed.
before we start lets update the system
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo tasksel install lamp-server
you will be prompted by
New password for the MySQL "root" user:
enter one and remember it.
$ sudo apt-get install unzip ffmpeg mencoder php5-ffmpeg php5-gd php5-curl lame
for 32bit ubuntu
$ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
for 64bit
$ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
$ wget http://vidiscript.com/release/VidiScript_v_0_4_3.zip
FOR 32bit
$ tar xvf ioncube_loaders_lin_x86.tar.gz
FOR 64bit
$ tar xvf ioncube_loaders_lin_x86-64.tar.gz
$ sudo mv ioncube /usr/local/bin/
$ unzip VidiScript_v_0_4_3.zip
$ sudo mv VidiScript_v_0_4_3/VidiScript/ /var/www/vidiscript
a few things to change now
$ sudo pico /etc/php5/apache2/php.ini
I`m going with the recommended config as stated on vidiscript site. Find each of these and change to the values below
safe_mode = off
max_execution_time = 1000
max_input_time = 1000
open_basedir =
upload_max_filesize = 200M
post_max_size = 200M
register_argc_argv = On
Now, still in the /etc/php5/apache/php.ini file, goto line 73 or look for something looking like.
; Enable the PHP scripting language engine under Apache.
engine = On
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
add the code in bold like so..
; Enable the PHP scripting language engine under Apache.
engine = On
zend_extension = /usr/local/bin/ioncube/ioncube_loader_lin_5.2.so
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
$ sudo a2enmod rewrite
$ sudo pico /etc/apache2/sites-enabled/000-default
you should see something similar to this
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
Set AllowOverride to all like so
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
$ mysql -u root --password=<MySQL password here>
create database vidiscript;
quit
$
$ cd /var/www/vidiscript
sudo chmod 777 data data/keys data/scroller/scroller.xml uploads uploads/thumbs/ uploads/avatars/ uploads/ads/ uploads/groupicons/ includes/settings.inc includes/badwords.inc
sudo /etc/init.d/apache2 restart && sudo /etc/init.d/mysql restart
Now from your browser goto http://localhost/vidiscript/install/ or if from a different PC on your network, http://ip.address/vidiscript/install/
You will see the vidiscript installation page. Everything should be GREEN, if so proceed and click NEXT
Step 2 - Database Details
Database name vidiscript
Host Name localhost
Login Username root
Login Password <your sql password>
Click NEXT
Step 3 - Site Details And Admin Login
Site Name (anything)
Site Folder vidiscript
Admin Username (anything you like, but remember)
Admin Password (any password you choose, but remember)
Admin Email Address user@localhost.net
Click NEXT
and you are DONE,
Congratulations! Your new VidiScript site is installed and ready
Please delete the 'install' folder as soon as possible, you will see a warning on your site until you have done this.
Also change the file permissions on includes/settings.inc to 644, if you leave it writable it could be a security risk.
Click here to go to your VidiScript site
....Except before you click the link to your new site, do this first
sudo rm -rf /var/www/vidiscript/install/
sudo chmod 644 /var/www/vidiscript/includes/settings.inc
On the right hand side click Site Settings to configure it some.
Notes:
This guide is only meant to install and test the script on your own personal machines. The script is best used (unless you have a ton of bandwidth on that home line!) with a dedicated hosting site which supports all the configuration needed. More infos can be found on Vidiscript (http://www.vidiscript.com/)