Skip to main content

Posts

Showing posts from October, 2016

HOW TO VERIFY YOUR BLOG

Since it is not possible to upload a page in blog we need alternative method to verify your blog, using meta tag. For that go to google web master tool https://www.google.com/webmasters/tools/ and do the following steps. 1,Click the "Add a property" button on the Webmaster Tools Home page. 2.Enter your blog's URL (for example, programmersbasics.blogspot.com) and click the "add" button to go to the Manage verification page. 3.Select the "Meta tag" verification method and copy the meta tag provided.Just copy aand paste it some where for future use.This tag is permanat for one site. 4,Login to your bloggers account and select the blog. 5,Select the template tag in left, it is just above settings. 6,Click 'Edit HTML' button below Live on blog section. 7,Add the meta tag just below <head> and save. 8,Then goto webmasters page and click verify. Now you are verified.You can now access webmaster features.

How to setup apache web server in linux?

APACHE Apache server is the most commonly used web hosting service,  mainly the websites developed in php , python etc. We can host your website to a local network so that people in same network can access. In Linux Apache use split structure for configuring files, in which it will be defining hostname, port ,ssl etc each in different configuration files. Similarly file sharing can be made possible using apache server. Now we shall try to create a sample website hosted in apache server. Step 1: Install  apache2 in to the system $sudo apt-get update //update the repository for latest version of softwares $sudo apt-get install apache2 Step2: create a directory in '/var/www/' folder which is the default folder for storing site datas. (Var folder is known as variable folder since it is used to store growing folder like log files,backups etc) sudo mkdir -p /var/www/sample.com/public_html Step 3: Grant user permission for the folder $sudo chown -R $U...

Commonly used linux commands

Note : Most command might require root permission, so type "sudo" before the command. System Specs from Command Line ========================== For HD capacity: $df -h or $sudo fdisk -l For RAM memory: $free -m For the linux version rou're on: $uname -a For cpu's info $sudo lshw -class cpu CPU Number of cores: $grep -c ^processor /proc/cpuinfo To switch between system directories ========= $ sudo cd /path Print working directory ============= $sudo pwd Display current directory information ========== >List current directory files,size and permissions $sudo ls -lh //Permission will be in format: rgu [directory-root permission(r)-group permission(g)-local user(u)] Access will be in order-rwx [read(r),write(w),execute(x)] Change file permissions ===================== chmod is used to change permission >Format $sudo chmod permission filename Or $sudo chmod permission directory >Permissions Root-r...