Anvar Freelance Web Developer
+91-808-999-0405

Configuring NIS under Red Hat Linux

The following describes a procedure to set up NIS network name service under Red Hat Linux. This is geared toward a small installation with only one domain. However, it should be fairly evident how to add more NIS domains. The NIS domain name has nothing to do with any DNS naming convention being used. In…

Read More »

How to use www in url

A search engine like Google,yahoo,bing would see anvar.in and www.anvar.in as essentially two separate websites. They recommend you pick one version and you can setup it with the help of htaccess Code in the anvar.in domain’s .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^xyz.com [NC] RewriteRule ^(.*)$ http://www.xyz.com/$1 [L,R=301,NC]

Read More »

How to redirect website to another url via .htaccess

Redirect individual website address to another one To redirect individual files, like anvar.in/about.html to about-me.html you can use a 301 redirect like this: Redirect 301 /about.html /about-me.html To redirect one specific file to another domain such as anvar.in/oldurl.htm to anvar.in/newurl.htm: Redirect 301 /oldurl.htm http://anvar.in/newurl.htm Redirect an old domain to a new domain If you had…

Read More »

Difference between IMAP and POP3

IMAP stands for “Internet Message Access Protocol”. It’s a fancy name for a protocol used by email programs like Outlook, Thunderbird, and others to access your email. IMAP is an alternative to POP3 (Post Office Protocol 3), works in some fundamentally different ways, and makes a few fundamentally different assumptions. IMAP and POP are two different protocols. There are…

Read More »

WordPress anvar

How to write .html in wordpress url

You can write the url by .html extention by simply using the permalink in wordpress admin Step1. Login to wordpress admin yoursite.com/wp-admin. Step2. Go to setting section in the admin panel. Step3. Choose the permalink in the setting menu. Step4. In Custom Structure Set the .html and category postname. Step5. Save changes. /%category%/%postname%.html

Read More »

php scripts anvar in

How to increase php memory limit

Here you have 5 different methods for setting php memory limit. If you have any difficulties with php memory limit during the installation of  WordPress, lime survey, drupal, joomla or oSclass you can use these methods for solving the issue. It will work on the all the hosting service providers like godaddy hostgator..etc 1. Set the php…

Read More »

linux anvar

What is Time To Live (TTL)

Time to live (TTL) is used for computer data including DNS servers. It is nothing but time on the period of time or number of iterations or transmissions in computer and computer network technology that a unit of data (e.g. a packet) can experience before it should be discarded. TTL and DNS Caching TTL value…

Read More »

anvar cpanel whm logo

How to terminate or delete a cPanel account through SSH

This post is updated because cPanel changed the script to remove an account via command line. This is simple to manage cPanel via server CLI (command line interface). Here we discuss about the command to terminate an account from CLI. In older versions of cPanel, the command was “killacct.” The original location for this script…

Read More »

Postgres Use the same encoding as in the template database, or use template0 as template.

Postgres Use the same encoding as in the template database, or use template0 as template this is the root@server:~# su postgres postgres@server:~ $ psql -U postgres psql (9.0.3) Type “help” for help. postgres=# update pg_database set datallowconn = TRUE where datname = ‘template0’; UPDATE 1 postgres=# \c template0 You are now connected to database “template0”.…

Read More »

Linux cPanel exim cheat sheet

Here are some useful things to know for managing an Exim 4 server. This assumes a prior working knowledge of SMTP, MTAs, and a UNIX shell prompt. Message-IDs and spool files The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: XXXXXX-YYYYYY-ZZ. Most commands related…

Read More »