Unable to save changes to menu in Drupal 6

[dfads params=’groups=-1′]

On the menu-customize page, after

1) dragging a menu item, or

2) checking/unchecking an enable checkbox,

and clicking “Save configuration”, changes to menu were not saved in Drupal 6. Hence, I started to debug the issue at the Application level. After long head bang, I raised my hand and took some rest. Finally, I googled and found that the problem was not at the Application Level but at System Level. I came to know that while posting the form (i.e. when Save Configuration is clicked) the data sent was of large amount and the system was not able to accept since maximum input size was not defined. Following were the changes made in php.ini file.

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 2048

After making above changes I restarted the Apache server. Thus, the problem was resolved and Save Configuration in Menu started working.

[dfads params=’groups=-1′]

How to take backup and restore openvz (Proxmox Virtual Environment)?

Well, I am not that sound in playing with the tools of openvz but through the assistance of professionals, I came to learn how to take backup of openvz and restore it in another proxmox virtual environment. In order to understand this tutorial, you must have a little knowledge of Linux and its basic commands. The following steps more or less clearifies the process:

[dfads params=’groups=-1′]

 

  1. Login to your proxmox via root.
  2. Check whether there is sufficient space to take backup. Use the command below to check the available space on the system:

    moon:~# df -h

    Filesystem Size Used Avail Use% Mounted on

    /dev/mapper/pve-root 95G 15G 76G 16% /

    tmpfs 16G 0 16G 0% /lib/init/rw

    udev 10M 632K 9.4M 7% /dev

    tmpfs 16G 0 16G 0% /dev/shm

    /dev/mapper/pve-data 723G 272G 452G 38% /var/lib/vz

    /dev/sda1 504M 44M 435M 10% /boot

  3. In order to list out the virtual machines type the following command:

    moon:~# vzlist

    CTID NPROC STATUS IP_ADDR HOSTNAME

    101 67 running 10.10.10.110 hindi-website.example.com

    103 206 running 10.10.10.251 maincopy.example.com

    201 92 running 10.10.10.106 engsecondary.example.com

    240 64 running 10.10.10.108 wsdb-backup.example.com

    242 78 running 10.10.10.107 hi-secondary.example.com

    410 109 running 10.10.10.104 rc.example.com

  4. Note down the CTID for which you are taking the backup. CTID is an identifier which uniquily represents the respective virtual machine.
  5. Follow the command below to take the backup of the virtual machine:

    moon:~# sudo vzdump –dumpdir /var/lib/vz/dump/ 103 –suspend –compress

The above command takes a complete backup of the virtual machine whose CTID is 103 at the location /var/lib/vz/dump/. The backup process will take approximately an hour to complete. In order to confirm the successfull backup change the directory to /var/lib/vz/dump/ and execute the command ls or dir. Two files are generated prefixed by vzdump-openvz-*.

  1. Copy the backup to another proxmox using the following command:

    moon:~# scp vzdump-openvz-103-2014_06_24-17_22_53.tgz root@10.10.10.44:/var/lib/vz/dump/

  2. In order to restore, first of all login to your proxmox via GUI.
  3. Delete the virtual machine if there is insufficient space or make some space to restore the backup.
  4. Now, Login to your proxmox using ssh or putty. Change your directory to /var/lib/vz/dump/ (location of the backup) . Execute the following command:

    earth:~# vzrestore vzdump-openvz-103-2014_06_24-17_22_53.tgz 103

The above command will restore the backup creating a complete new virtual machine. It takes approximately an hour to complete the process.

  1. Login to your proxmox via GUI. A new virtual machine will be visible. Before starting the machine modify the IP Address in order to prevent the IP conflict.
  2. If the macnine contains MySQL binded with the IP then modify the IP from the file /etc/mysql/my.conf

[dfads params=’groups=-1′]

How To scp, ssh and rsync without prompting for password

Following steps would help you to do scp, ssh & rsync without prompting for password:

1. On Host A where you run scp/ssh/rsync command, run the following command: 

$ ssh-keygen -t rsa

This will prompt a passphrase. After pressing enter key it’ll generate a private and a public key. Public key is saved at ~/.ssh/ by default.

2. Transfer id_rsa.pub file to Host B using scp or ftp.

[dfads params=’groups=-1′]

3. On Host B, login as remote user and copy the contents of id_rsa.pub to ~/.ssh/authorized_keys using the following command:

$ cat id_rsa.pub >>~/.ssh/authorized_keys
$ chmod 700 ~/.ssh/authorized_keys

4. Thats’ all, Now you can run scp, ssh and rsync command without prompting for password.

5. Note that ssh by default does not allow root to log in. This has to be explicitly enabled on Host B. This can be done by editing /etc/ssh/sshd_config and changing the option of PermitRootLoginfrom no to yes. Don’t forget to restart sshd so that it reads the modified config file. Do this only if you want to use the root login.

[dfads params=’groups=-1′]

MTNL Broadband Browsing Problem

[dfads params=’groups=-1′]

I am using MTNL Broadband for 1 and a half years. I had never faced Webpage browsing problem since then. I called MTNL Customer Care many times but they fooled me. Problem still not solved.

Then I started searching regarding the problem my own. I googled with the same title as this post. I found that huge number of MTNL Customers facing the same problem.

images

After continuous haunt for the solution I found a blog where the author introduced me about opendns. It was a new topic to me and was not that concerned. I followed the comments on that post I found some dns ips and was told that if updated on your system’s network config Browsing Problem would vanish.

Immediately, I updated my dns configuration. God damn, it worked. Thanks to the auther.

Following are the DNS IPs :

208.67.222.222,

208.67.220.220

[dfads params=’groups=-1′]

Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

download

$service apache2 restart
[....] Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!

In order to solve the above issue, type following on your console

fuser -k -n tcp 80

[dfads params=’groups=-1′]

FIFA World Cup 2014 Schedule

FIFA World Cup 2014 Schedule

Time

Group

Match

Venue

FRIDAY, JUNE 13, 2014

01:30 IST

Group A

Brazil vs  Croatia

Arena Corinthians

21:30 IST

Group A

Mexico vs  Cameroon

Estadio das Dunas

SATURDAY, JUNE 14, 2014

00:30 IST

Group B

Spain vs  Netherlands

Arena Fonte Nova

03:30 IST

Group B

Chile vs Australia

Arena Pantanal

21:30 IST

Group C

Colombia vs Greece

Estadio Mineirão

SUNDAY, JUNE 15, 2014

00:30 IST

Group D

Uruguay vs Costa Rica

Estadio Castelão

03: 30 IST

Group D

England vs Italy

Arena Amazonia

06:30 IST

Group C

Ivory Coast vs Japan

Arena Pernambuco

21: 30 IST

Group E

Switzerland vs Ecuador

Nacional

MONDAY, JUNE 16, 2014

00:30 IST

Group E

France vs Honduras

Estadio Beira-Rio

03:30 IST

Group F

Argentina vs Bosnia and Herzegovina

Estadio do Maracanã

21:30 IST

Group G

Germany vs Portugal

Arena Fonte Nova

TUESDAY, JUNE 17, 2014

0:30 IST

Group F

Iran vs Nigeria

Arena da Baixada

03:30 IST

Group G

Ghana vs United States

Estadio das Dunas

21:30 IST

Group H

Belgium vs Algeria

Estadio Mineirão

WEDNESDAY, JUNE 18, 2014

0:30 IST

Group A

Brazil vs Mexico

Estadio Castelão

03:30 IST

Group H

Russia vs South Korea

Arena Pantanal

21:30 IST

Group B

Australia vs Netherlands

Estadio Beira-Rio

THURSDAY, JUNE 19, 2014

0:30 IST

Group B

Spain vs Chile

Estadio do Maracanã

03:30 IST

Group A

Cameroon vs Croatia

Arena Amazonia

21:30 IST

Group C

Colombia vs Ivory Coast

Nacional

FRIDAY, JUNE 20, 2014

0:30 IST

Group D

Uruguay vs England

Arena Corinthi

3:30 IST

Group C

Japan vs Greece

Estadio das Dunas

21:30 IST

Group D

Italy vs Costa Rica

Arena Pernambuco

SATURDAY, JUNE 21, 2014

0:30 IST

Group E

Switzerland vs France

Arena Fonte Nova

3:30 IST

Group E

Honduras vs Ecuador

Arena da Baixada

21:30 IST

Group F

Argentina vs Iran

Estádio Mineirão

SUNDAY, JUNE 22, 2014

0:30 IST

Group G

Germany vs Ghana

Estádio Castelão

3:30 IST

Group F

Nigeria vs Bosnia and Herzegovina

Arena Pantanal

21:30 IST

Group H

Belgium vs Russia

Estádio Maracanã

MONDAY, JUNE 23, 2014

0:30 IST

Group H

South Korea vs Algeria

Estádio Beira-Rio

3:30 IST

Group G

United States vs Portugal

Arena Amazônia

21:30 IST

Group B

Australia vs Spain

Arena da Baixada

21:30 IST

Group B

Netherlands vs Chile

Arena Corinthians

TUESDAY, JUNE 24, 2014

01:30 IST

Group A

Croatia vs Mexico

Arena Pernambuco

01:30 IST

Group A

Cameroon vs Brazil

Estádio Nacional de Brasilia

21:30 IST

Group D

Italy vs Uruguay

Estádio das Dunas

21:30 IST

Group D

Costa Rica vs England

Estádio Mineirão

WEDNESDAY, JUNE 25, 2014

01:30 IST

Group C

Japan vs Colombia

Arena Pantanal

01:30 IST

Group C

Greece vs Ivory Coast

Estádio Castelão

21:30 IST

Group F

Nigeria vs Argentina

Estádio Beira-Rio

21:30 IST

Group F

Bosnia and Herzegovina vs Iran

Arena Fonte

THURSDAY, JUNE 26, 2014

01:30 IST

Group E

Honduras vs Switzerland

Arena Amazônia

01:30 IST

Group E

Ecuador vs France

Estádio Maracanã

21:30 IST

Group G

United States vs Germany

Arena Pernambuc

21:30 IST

Group G

Portugal vs Ghana

Estádio Nacional de Brasilia

FRIDAY, JUNE 27, 2014

01:30 IST

Group H

South Korea vs  Belgium

Arena Corinthians

01:30 IST

Group H

Algeria vs Russia

Arena da Baixada

ROUND OF 16

SATURDAY, JUNE 28, 2014

21:30 IST

1A vs 2B

Estadio Mineirão

SUNDAY, JUNE 29, 2014

01:30 IST

1C vs 2D

Estadio do Maracanã

21:30 IST

1B vs 2A

Estadio Castelão

MONDAY, JUNE 30, 2014

01:30 IST

1D vs 2C

Arena Pernambuco

21:30 IST

1E vs 2F

Nacional

TUESDAY, JULY 1, 2014

01:30 IST

1G vs 2H

Estadio Beira-Rio

21:30 IST

1F vs 2E

Arena Corinthians

WEDNESDAY, JULY 2, 2014

01:30 IST

1H vs 2G

Arena Fonte Nova

QUARTER-FINALS

FRIDAY, JULY 4, 2014

21:30 IST

Winner Match 51 vs Winner Match 52

Estadio do sMaracanã

SATURDAY, JULY 5, 2014

01:30 IST

Winner Match 49 vs Winner Match 50

Estadio Castelão

21:30 IST

Winner Match vs Winner Match 56

Nacional

SUNDAY, JULY 6, 2014

01:30 IST

Winner Match 53 vs Winner Match 54

Arena Fonte Nova

SEMI-FINALS

WEDNESDAY, JULY 9, 2014

01:30 IST

Winner Match 57 vs Winner Match 58

Estadio Mineirão

THURSDAY, JULY 10, 2014

01:30 IST

Winner Match 59 vs Winner Match 60

Arena Corinthians

THIRD PLACE

SUNDAY, JULY 13, 2014

01:30 IST

Loser Match 61 vs Loser Match 62

Nacional

FINAL

MONDAY, JULY 14, 2014

0:30 IST

Winner Match 61 vs Winner Match 62

Estadio do Maracanã

 

Alphabets Kids will Learn in Future

Alphabets kids will learn in Future.

A: Amazon.com
A shopping Website.

B: Blogspot.com
A free blog website from google.com.
Bing.com
A search engine from Microsoft.

C: Cnn.com
CNN News Website

D: Dropbox.com
Share Files on the Cloud

E: Ebay.com
A shopping Website.

F: Flipkart.com
A shopping Website.
Facebook.com
A social networking website.

G: Google.com
A Search Engine

H: Hostgator.com
A Website Hosting Website

I: Instagram.com
Share Pictures online.

J: Jabong.com
A shopping Website.

K: Kakaku.com
A Chinese Website

L: Live.com
Email Website from Microsoft

M: Msn.com
A Search Engine from Microsoft.

N: Naukri.com
A Job Search Website.

O: Olx.in
Sell your old products online

P: Photobucket.com
Share images online

Q: Quikr.com
Sell your old products online

R: Rediffmail.com
An Email Website

S: SurveyMonkey.com
Create Surveys and Get Answers online.

T: Twitter.com
A microblog Website

U: Upload.com
Upload and Share Files

V: Vimeo.com
Upload and Share Videos

W: Wikipedia.org
The Free Encyclopedia

X: Xe.com
Live Exchange Rates.

Y: Youtube.com
Upload and Share Videos

Z: Zomato.com
Search Restaurants Nearby.

Information Compiled from alexa.com (Top 500 Websites on the Web)

How to Recover Files Hidden by Virus in Pen Drive?

[dfads params=’groups=-1′]
 

memory-card

  1. Open Windows Command Prompt in elevated mode (for Windows 8, 7, Vista)
  2. Go to path of pen drive i.e. my case it is F, type f: and hit enter
  3. Type attrib -s -h -r /S /D and hit enter

 

[dfads params=’groups=-1′]

Disk /dev/sdb doesn’t contain a valid partition table in Linux

drive-not-formatted

[dfads params=’groups=-1′]

1. Run fdisk /dev/sdb

2. Create a new partition table with ‘o’

3. Create a new partition with ‘n’

4. Let it use the default values by hitting ENTER when it asks for numbers, to take the entire available disk in this partition

5. Write the new partition table with ‘w’, which should dump you back to the prompt.

6. Finally, you should have a /dev/sdb1 to format using the following command:

  sudo mkfs.vfat -n ‘Ubuntu’ -I /dev/sdb1

[dfads params=’groups=-1′]

Http Error 0 in Drupal

[dfads params=’groups=-1′]

Http Error 0  is a very common error that occurs in Drupal. There are many reasons behind this error.

htttp-error-0

One of the way to resolve this error is to append the following line in this file : /etc/apache2/mods-available/fcgi.conf

[code]

MaxRequestLen 536870912

[/code]

Increase the number value of the MaxRequestLen until the error stops to continue.

[dfads params=’groups=-1′]