Wednesday, November 9, 2011

Creating a Virtual Host with Webmin

These instructions apply to Webmin version 1.570 and Ubuntu 10.04
  1. Create a folder where you wish to store your sites files. 
    • You can do this in the Others > File Manager section. 
    • In this example we use: /var/www/vhosts/domainname.com/http/
  2. Setup the vhost.
    • Click on Servers > Apache Web Server in the left hand menu.
    • Click the “create virtual host” tab.
    • You can leave most settings as their default values, but you should fill out the following:
      • Port: Generally, you’ll want to use port 80.
      • Document Root: This is folder where you site’s files will be stored. Pick the folder you created in step 1.
      • Server name: This is just your site’s domain name, e.g. domainname.com (leave out the www.)
    • Click “Create Now”
  3. Add a server alias for www.domainname.com 
    • Click on the “Existing Virtual Hosts” tab in Servers > Apache Web Server.
    • Click the virtual server you just created.
    • Click on “Networking and Addresses”
    • In the “Alternate Virtual Server Names” box, add any additional server aliases you want to use for this site, such as www.domainname.com
    • Press “Save”.
  4. Click “Apply Changes” to get Webmin to restart Apache.
  5. vi /etc/apache2/sites-enabled/000-default and add:   NameVirtualHost *

Monday, November 7, 2011

Stream your video files via CDN and play them with JW Player

Using AWS CloudFront as CDN

A Content Delivery Network (CDN) offers several advantages over a plain webserver for streaming video. For example, a CDN will be able to speedily deliver your videos across the country and globe, it will be able to stream your videos instead of a download and it will be able to scale to large numbers of videos and viewers.

This 4 steps are required:
  • Get an Amazon Web Services (AWS) Account
  • Upload Your Content to S3
  • Create a CloudFront Distribution
  • Configure Your JW Player:
Running Demo and source code : http://www.leerraum.org/demo/jw-player-and-aws-cloudfront/

Tuesday, November 1, 2011

Add Google Analytics to your Kaltura Player

  • enter the KMC
  • click on the Studio tab.
  • in the Studio, edit the player of your choice.
  • enter the Features tab and reveal the Additional parameters and plugins section.
  • copy and paste the following line into the "Paste your plug-in line here" text box and click the "go" button:
    googleAnalytics.plugin=true&googleAnalytics.urchinCode=UA-yourgoogleanalyticscode&googleAnalytics.debugMode=false&googleAnalytics.path=http://cdnexchange.kaltura.com/sites/exchange.kaltura.com/files/applications/releases/Kalturian/16/googleAnalytics.swf&googleAnalytics.relativeTo=PlayerHolder&googleAnalytics.position=lastChild  
  • change the googleAnalytics.debugMode parameter to true in order to get visual debugging information window over the player.

Sunday, October 23, 2011

How to generate an SSH key with Linux?


You can generate a SSH key in Linux using the ssh-keygen command. You should run it in the command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key:

user@localhost: ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost

This will create a private key written to /home/user/.ssh/id_dsa and a public key written to/home/user/.ssh/id_dsa.pub. The passphrase is used to protect your key. You will be asked for it when you connect via SSH.

Thursday, October 6, 2011

No - the pagerank did not die today.

There are numberless complaints in the forums that the Google PageRank went missing in action and is no longer working.
The issue is not with Toolbar PageRank. Google appears to have disabled the display of PageRank on browser toolbars and online ranking checkers. It  is causd by Google's lookup URL for the Pagerank. Toolbar plugins, such as SEOQuake and SEOBook, which had been displaying the Google PageRank for the site being viewed are now showing as either N/A or 0.

Sunday, October 2, 2011

Move Typo3 to a new host.


To move your TYPO3 site from one host to another, you will need an FTP Client and access to an online database tool (such as phpMyAdmin). Begin the process by logging into your online account with your FTP Client. For this How To, we'll demo Firefox's FireFTP extension (which is free).
  1. First, using an FTP Client, such as FireFTP (shown), Connect to your current hosting account.
  2. Download to your local computer all the directories and files in the following directories:

    /fileadmin
    /t3lib
    /typo3
    /typo3conf
    /typo3temp
    /uploads
    index.php

    This download may take a good bit of time, even with a fast connection.
  3. When the download is complete, open the /typo3conf on your local computer and delete all the files that begin with temp_
  4. Next, log in to the original hosting account and access your online database tool (generally, login to phpMyAdmin).
  5. When you've logged in,select your TYPO3 database from the dropdown menu on the left and then click the Export tab.
  6. Leave all the options at their default settings. Scroll to the bottom of the page and check the "Save as file" box and then click the Go button.
  7. Save the file to your local computer.
  8. If the File name field is blank, enter the name of your database here. Then press Go.
  9. When the database export is complete, log in to your new host's server with your FTP Client and upload all the TYPO3 directories and files (do not upload the .sql file that you exported in the previous step).

    Again, this process will likely take some time, even with a fast connection.
  10. When the files are all uploaded, you will need to change the permissions recursively for /fileadmin, /typo3conf, /typo3temp, /uploads, and index.php to chmod 777. (FlashFXP, Filezilla, and Firefox's FireFTP extension all include recursive features).

    Click Read, Write, and Execute for Owner, Group, and Public groups. Then ensure All Contained Files and All Contained Folders are checked as well.
  11. Click Okay and wait. Again, this isn't always a speedy process.
  12. Next, you will need to do some detective work to find out how to create a database, database user, and connect the two on your new server. Typically, the information can be found on your host's support pages.

    Once a new database has been created and set up, use your online databae tool (phpMyAdmin) to import the database you've saved on your local computer.  (Save the User Login and Password for later.)
  13. Click the Import tab.
  14. Click Browse to find your saved .sql database file on your local computer. Select it and then scroll to the bottom of this page and click the Go button.
  15. With these steps done, it's time to log in to the Install Tool. Open your browswer and type the following in the address bar:
  16. www.YOUR_SITE_URL.org/typo3/install.
  17. When the Install Tool login appears, type in your Install Tool Password and press the Log in Button.
  18. Next, click the Basic Configuration link.
  19. Scroll down the page to the Directories List to ensure all the TYPO3 directories are writable.
  20. If any of the directories are unwritable, return to your FTP Client and set the permission to 777.
  21. Next, scroll down to the Update localconf.php fields.
  22. Next, connect your TYPO3 installation to your database. Enter the database Username and Password. The host should be set at localhost and select the TYPO3 database in the drop down menu.
  23. Enter your Site name in the appropriate field, and then scroll down the page to the Update localconf.php button.
  24. At this point, your TYPO3 transfer is nearly complete. The only thing left to do is to reset any of the site's Constants if they've changed (such as the site's URL or other details).

    Go ahead and navigate to your site's TYPO3 backend (www.Your_Site_URL.org/typo3) and login.
  25. To change your site's Constants, click on the WEC Config Module.
  26. Change any of the fields necessary and click the Update button.
  27. With this step complete, your site shoud be fully transferred to your new host. However, you will want to view it in the Frontend to ensure it is satisfactory.