04 Feb 2012 
Support Center » Knowledgebase » HD Media Centers » How do I setup a website on my MvixBOX WDN2000
 How do I setup a website on my MvixBOX WDN2000
Solution

This guide provides step-by-step instructions on how to setup a website on your MvixBOX WDN2000.

Required Software: Internet Explorer, Firefox, and your already created website.

Purpose: This feature allows our users to have their own website, hosted on the MvixBOX. The MvixBOX comes with Apache 2 installed as well as PHP 4.4.7, and mySQL 5.0.42.

Pre-requisite: In order for this functionality to work you will have to have setup the dynamic dns within your MvixBOX, as well as forwarded the port an outside port within your firewall, to the IP of your MvixBOX and port 80. The web server for your site will be listening on port 80, and the management site for the MvixBOX will continue to run on port 8080. Most Internet Service Providers will block the incoming port 80 to your router. To get around this, and make your site browseable, you will need to have your router listening on a seperate port.

As an example, just typing http://dravor.mvix.net would send the request to Port 80, the normal port for http traffic. Since this would be blocked, I can have my router listen for port 8888. I would then need to setup a port forward in my router, to forward port 8888 to the IP that the MvixBOX is using, and port 80. The request from the internet would then be made as http://dravor.mvix.net:8888/

.


Finding the IP for your MvixBOX:

  1. If you do not know your IP address for your player: For Vista Users: Go to Start --> Right Click on Network, and Select Explore. XP Users, Can double click on Network Neighborhood.
  2. Right click on MVIXBOX, and select View Device Page.

  3. As your browser opens copy down the IP address in the address bar. Typically it will something like 192.168.1.x, replaxing x with an actual number

Uploading website content on your MvixBOX via the web interface:

  1. The apache 2 web server install is already setup to look at a specific content directory for web content. This directory is /home/.SYSTEM/WWW. The default configuration is loading the default pages in the following order: index.php, index.html, index.htm.
  2. Login to to the MvixMBOX, and click on the Web Explorer icon.

  3. In the next window, you will see System Folder in the lower right hand area. Click System Folder once, to expand the directory.

  4. You will now see more folders, find the www folder and click on the www folder

    .


  5. Now you will see the contents of the www folder, which is our website root.



  6. Click on the box next to index.php to select it, click on the Rename icon, then name the file index.php.orig, and click Change. This will ensure we have a valid backup of the index.php file since you don't want to erase it if your content is written in php. If your content is in html, we want to ensure the index.php file does not get loaded.


  7. You are now at the root of the website. Click on the UPLOAD button, and click on Multiple File/Folder Transfer.



  8. Once you have selected all files and folders to upload, click, on upload, and the files will be uploaded.


  9. Your site should now be accessible via http://MvixMboxIP/ internally, or externally at http://DynamicDNSName:Port/.

Uploading website content on your MvixBOX via scp:

  1. You can also upload your web content via scp. Use your favorite scp client and use the IP of your MvixMBOX. For a login you can use your sysadmin login and password. You will want to navigate to /home/.SYSTEM/WWW.
  2. Rename the existing index.php file to index.php.orig
  3. Copy all files for your website under /home/.SYSTEM/WWW.
  4. Your site should now be accessible via http://MvixMboxIP/ internally, or externally at http://DynamicDNSName:Port/.

Making config file changes for Apache 2 on your MvixBOX:

  1. The config file for Apache 2 can be found at /sysroot/etc/apache2/httpd.conf. It is highly recommended to make a backup of the config file before making any changes.
  2. Please understand that you do not want to make any changes to the main config, for port 8080, since that would in turn break the management website.
  3. The web site running on port 80, is setup as a virtual host with the following config:
    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot /home/.SYSTEM/WWW
    DirectoryIndex index.php index.html index.htm
    </VirtualHost>
  4. You can add additional Virtual Host if necessary by using the ServerName utility. More information on Apache 2 and it's configuration settings can be found at http://httpd.apache.org/
  5. Apache can be stopped and restarted by connecting to the Mvixbox via ssh as Sysadmin, and then running the command service apache restart.

If you have any questions at all, feel free to open a ticket with MvixUSA Support at http://www.mvixusa.com/support. There are various and numberous settings which cannot all be explained in one Knowledge Base Article. We are always happy to answer any and all questions related to the MvixBOX.


 



Article Details
Article ID: 123
Created On: 18 Oct 2008 07:12 PM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Downloads
Language:

Mvix: Solutions for the HD Planet
www.mvixusa.com