Category Archives: Internet

Your OWN Web Server and Website – II

So we had a port opened, and visibility for our Index page on the IP address assigned dynamically by the service provider in the part 1 of this post.

We now need to assign a name to this IP address. The thing about Dynamic IPs is that everytime you reset your Router, you will be assigned a new IP address. So somehow your Domain Name should automatically understand and acquire your new IP address. This service is provided by www.dyndns.com and allows you to assign your IP to any DNS that is available. You can choose from a list of dyndns.com, .org, .info, etc.

They also have Updater Clients which automatically read your IP when it changes, so that your website stays online as long as your computer is online!

Now that you have a name for your website, you need to actually setup some website. Drupal / Joomla are perfect examples for beginners who have no idea about how PHP works! They have a very easy step-by-step procedure that you need to follow to set it up. You’ll mainly need to make database users and the database, and assign permissions to various files and folders.

Once that is done, creation of pages, administration, etc. is all carried out using the browser itself. (For tips on enabling TinyMCE)

The last step would be to make your index.html to redirect to the Drupal / Joomla setup. This can be done using a line in the header as simple as

<meta http-equiv=”refresh” content=”0; url=drupal/”>

The URL can be any folder that you want to link to. Ofcourse, the page that will open in that folder by default is the index.html or index.php again. Its this easy to have a website up and running! 🙂

Advertisements

Your OWN Web Server and Website – I

Most of us do have broadband nowadays and are assigned unique IP addresses (i.e the Router / Modem is assigned) by the service provider (mostly BSNL) in our case. In a bid to host the web-server that was already setup on my computer, here are the steps that I followed.

Firstly, setup a HTTP / HTTPS server on your computer and test its working by just typing http://localhost in your browser. The LAMP (Linux-Apache-MySQL-PHP) or WAMP (Windows-AMP) are very famous options for the same.

In Ubuntu its a very easy procedure. Just open the Synaptic Package Manager and go to Mark packages by task and select the LAMP server. Once this is done, you should have a /var/www folder in which the index.html says It works! 🙂

Now, once the server is setup, the most important step is to let the external world in! Open up ports on your router. This is one of the trickiest steps and I was very confused. Unfortunately for my GLB-802c D-LINK Router the most famous www.portforward.com was wrong! Generally this site gives useful information though. So, use some nice software (in my case it was Transmission – Bittorent client) to check whether the port (normally 80) is open or not. uTorrent can do that too. There are other tools, but am not very sure, since even now one of the online sites says my ports are closed although am sure of them being open.

Once the port is open, your job is essentially done. Find your router’s IP (right column top) address (assigned by BSNL in case of India) . Go to an anonymous proxy site and type in this IP address into the address bar. You should have your It works! or whatever was available at the http://localhost  You need to use this proxy site, else it goes to the Router Configuration page. Basically trying this IP from non-proxy i.e. from browser address bar will take you to router configuration page.

More about Dyn-DNS and setting up a simple Website later.

TinyMCE on Drupal

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems.

We are all familiar with the icons of Bold, Italics, Underline, Alignment, Justify, Link, Bullets, Numbering, etc. but TinyMCE brings this to the Web wherein formatting of text becomes very easy for non-HTML users.

Drupal is one of the most famous CMS (Content Management Systems) which make it very easy to host a complete website of your own. On a Linux box (Ubuntu 9.04) Apache2 HTTP web server and MySQL database here’s how to go about installing TinyMCE at the Drupal create content page. On most other systems too the procedure should be similar.

So basically download the TinyMCE module for Drupal depending on your Drupal version. Many versions run parallely in most cases. So a 5.x or a 6.x will be used for that corresponding Drupal version. Extract this in your drupal/modules/ folder.

We have just downloaded the integrator for Drupal. You still need to download the actual TinyMCE module. Once this is downloaded, extract it to the tinymce folder that was just created earlier, i.e. in drupal/modules/tinymce/ folder.
Further, lets enable the module. Login as administrator and go to Administer -> Site Building -> Modules: Enable TinyMCE. Check and save configuration.

Then, we need to set permissions for authenticated users to be able to use this TinyMCE page creation. Go to Administer -> User Management -> Permissions: TinyMCE enable access tinymce for authenticated users. administer tinymce need not be enabled.

Create a profile for the TinyMCE user by going to Administer -> Site Configuration -> TinyMCE Settings: Create New Profile with any name and whatever options you wish. Most of the default selections are what you’ll need, just select those icons which you want to see in the Buttons and Plugins page. Tinker around with that page for more customization.

Go to Create Content -> Page and see your TinyMCE in action!