Quick Nav

CMF is primarily directed towards making Government Websites more usable, user centric and accessible. It shall help Web Managers in developing better understanding of comprehensive web designs , technologies and improved management of their websites/portals. They shall be able to get high quality websites developed at lesser cost & efforts.

  1. How to reset the administrator password?

    Method #1: E-mail

    The quickest and easiest way to reset an administrator's password is to request a new one through e-mail. To do this, follow these steps:

    1. Use your web browser to go to the CMF Based website login page.
    2. Click Request new password.
    3. In the Username or e-mail address text box, type the e-mail address associated with the account, or type admin (if you have an administrator account with a different username, type that name instead).
    4. Click E-mail new password. Application sends a message to the e-mail address associated with the administrator account.
    5. In the message, click the link to reset the administrator password.

    Method #2: Drush

    You can use the Drush command line tool to reset the administrator password (or the password of any other user). To do this, follow these steps:

    1. Log in to your account using SSH.
    2. At the command prompt, use the cd command to change to the directory where your site is installed. For example, type cd ~/public_html.
    3. Type the following command. Replace NewPassword with the new password that you want to use:
      Command : drush upwd --password="NewPassword" admin

      The above command would change the password for the admin user account. To change the password for a different account, type its username instead of admin.
    4. You should now be able to log in to your website as the administrator using the new password.
  2. How to create a new user in CMF Based website

    The activity of a new user creation can be performed by a user having Administrator privilege. Follow to steps below to create a new user:

    Step 1: Log into to the Content Management System

    Step 2: Go to People

    Step 3: Click Add User

    Step 4: Fill in the fields as required

    Username : The username is required and must be unique. It may contain letters, numbers, and the characters specified in the help text below the field. Usernames are not case sensitive. The username “James” is the same as “james” and the user can log in using both.

    E-mail address : It is important to provide a valid e-mail address since the same is used for various account management activities like reset password etc.

    Password :This is another required field. The password can be numbers, letters, symbols, and spaces. Users are advised to create a strong password as per the password policy.

    Confirm password : User is required to key in the password again to verify that the desired password is entered.

    Status : These are buttons to indicate whether the user’s account is active and can be used on the site.

    Roles Section : This tab contains check boxes for each role or permission registered users can have on your website.

    Notify user of new account : If you select this, website will send an email to the email address you entered above to notify the user about creation of their account.

    Step 5: Click the Create new account button at the bottom.

    Step 6: Once you create the account, if you select the checkbox option labeled "Notify user of new account", a notification email will be sent to the user about the creation of account.

  3. What is the use of URL path settings option while creating basic page?

    By using this option, you can specify alternative URL by which the content can be accessed. Don't add slash at the end or beginning of the URL alias or else it will not work.

  4. What is the use of Publishing options while creating blogs?

    It allows you to publish your blog content on Front Page or you can stick at top of lists as per the demand.

  5. What is the use of Menu settings option while creating articles?

    By clicking on Provide a menu link checkbox it shows all the related details of Menu such as Menu link title, Description, Parent item and Weight.

  6. What is the use of Revision information option while creating articles?

    It provides information related to changes made in the article. The system keeps track of various revision of the article.

  7. What is CMF?

    Content Management Framework (CMF) is a major step towards standardization and improvement in presentation and content delivery of Central Government Ministry/Department websites under the Digital India Program. The framework is based on Drupal, an Open Source Content Management System. Various custom modules have been developed to meet the common requirement of Government Websites. The CMF core is security audited and helps the user to develop a website compliant to Guidelines for Indian Government Websites (GIGW) with ease. The websites developed using CMF would be Responsive and Accessible.

  8. Who can use CMF?

    The Content Management Framework (CMF) is developed for Central Government Ministry/Department(s).

  9. What databases are supported?

    It supports MySQL /MariaDB and PostgreSQL.

  10. How a new theme can be developed for CMF?

    Following are the steps to develop a new theme for CMF:

    1. Create the new theme folder and copy templates folder, template.php files from CMF theme into new theme folder. Copy and change the file cmf.info file from CMF theme folder into your_new_theme_folder.info file.
    2. Copy all js and css file into from your new html into your new theme folder.
    3. Add all the css file and js file into the your_new_theme.info file.
    4. Change page.tpl.php and page--front.tpl.php if the structure of the file has changed.
    5. Change the function name of template.php file to the corresponding the theme name.
    6. Activate the theme.
    7. Assign all block into the theme.
  11. How designer can design theme for CMF site?

    Designer needs to design the theme with common header and footer for CMF . They just need to change the design of main content section area.

  12. How UI developer can develop the theme for CMF site?

    UI developer needs to develop the CSS into multiple file like; the CSS for header and footer section should come from asset folder whereas Other CSS will be added into CSS folder.

  13. Is there any Analytics available on CMF?

    Yes. CMF provides Visitor analytics.

  14. What options does CMF Visitor Analytics provides?

    CMF Analytics provides data with graph for last seven (07) days. The four types of graphs are:.

    1. Visitors Statistics : It shows the visitor statistic of the site.
    2. Referrer: It shows the referrer website.
    3. Browser: It shows various Browsers used to access the website.
    4. Devices : It shows the type of Device(s) accessing the website.
  15. Does department can show one year Visitor Analytics by Using CMF Visitor Analytics?

    No. At the moment it provides analytics for last 7 days only.

  16. How user can translate string(s)?

    Users can translate string(s) by finding and translating the the string at "admin/config/regional/translate/translate "

  17. How to add a menu?

    Follow the steps to add a menu:

    Step 1: Log into your admin dashboard.

    Step 2: Go to Structure >> Menus >> Add menu

  18. How to add a menu link?

    Follow the steps to add a menu link:

    Step 1: Log in to your admin dashboard

    Step 2: Go to Structure >> Menus and hover the mouse on the Menu under which you want to add a menu link and click on "Add link"

    Step 3: Enter the "Menu Link Title", "Path", "Description" and select the Parent Link, then select the weight and click on "Save" button to save the menu link.

  19. How do I change the Site name?

    Step 1: Log in to your admin Dashboard.

    Step 2: Goto Configuration -> System -> CMF Site Settings

    Step 3: change the sitename here and save.

  20. How to add banner image in Footer banner Scrolled Bar?

    Log in to your admin dashboard and select

    Content -> add content -> banner

    A new window with form will open for adding banner. Do the following:

    1. Select the language option for adding banner in English or Hindi version.
    2. Select banner category as "footer Banner"
    3. Upload the banner image and save the form

    For creating hindi version of the same banner click translate tab for the same content and upload the hindi banner there.

  21. How to add what's new check box in Content type?

    Make a backup of your database and files.

    Log in to your admin dashboard and select

    admin -> structure -> content type

    1. click on Manage Field
    2. scroll down to bottom and you can see a row (Add existing field) : click on select list (Refer image)

    3. and click the save button
    4. After adding this field to particular content type, A check box with the name "Is what's new" will be appear while adding and editing content to that particular content type, if the checkbox is checked than that particular content will be display in What's new section
  22. Including Closed Captions/ Subtitles in Videos populated in various CMF websites from YouTube?

    We have one guideline {out of 115 GIGW Guidelines}, which are basically related to accessibility issues in Video files.

    Log in to your admin dashboard and select

    71. Websites provide textual description of audio/ video clips & multimedia presentation. 6.7.2(a)

    Captions are a great way to make content accessible for viewers. There is an automated functionality to include closed caption/ Subtitles with each video uploaded on YouTube.

    However Following should be kept in mind:

    1. Automatic captions are available in English language. Since automatic captions are generated by machine learning algorithms, so the quality of the captions may vary.
    2. Automatic captions may not be ready at the time that you upload a video. Processing time depends on the complexity of the video's audio.
    3. Automatic captions might misrepresent the spoken content due to mispronunciations, accents, dialects, or background noise. You should always review automatic captions and edit any parts that haven't been properly transcribed.

    YouTube allow the user to edit the captions incase the automated tool misunderstood the spoken wording.

    Add your own subtitles & closed captions

    Subtitles and closed captions open up your content to a larger audience, including deaf or hard of hearing viewers or those who speak languages besides the one spoken in your video

    1. Open YouTube page website
    2. Login through your Gmail account
    3. Go to your Video Manager by clicking your account in the top right > Creator Studio > Video Manager > Videos
    4. Next to the video you want to add captions or subtitles to, click the drop-down menu next to the Edit button
    5. Select Subtitles/CC
    6. Click the Add new subtitles or CC button.
    7. Choose how you want to add or edit subtitles or closed captions to your video:

    Edit caption

    Here's how you can review automatic captions and make changes, if needed:

    1. Go to your Video Manager by clicking your account in the top right > Creator Studio > Video Manager > Videos.
    2. Next to the video you want to add captions or subtitles to, click the drop-down menu next to the Edit button.
    3. Select Subtitles and CC.
    4. If automatic captions are available, you'll see Language (Automatic) in the "Published" section to the right of the video.
    5. Review automatic captions and use the instructions to edit or remove any parts that haven't been properly transcribed.

    Note: If you're editing captions created automatically, this will generate a new caption track that includes your revisions.

    1. Go to your Video Manager.
    2. Next to the video you want to edit captions for, click Edit > Subtitles and CC.
    3. Click on the caption track you want to edit.
    4. Click inside any line in the caption track panel and edit the text.

    Note: If you're editing captions timing Select a specific line in the caption track panel.

    1. On your keyboard, press the up or down arrow to adjust timing
    2. On your keyboard, press the left or right arrow to change duration
    3. Click Save changes.

    Ref: https://support.google.com/youtube/answer/6373554?hl=en

  23. How a single content can be display in all enabled languages in a multilingual website of CMF. What is language neutral mode while adding content. How multilingual works for content?

    While creating a content, If the content is saved using "Lanuguage Neutral" mode in language dropdown than this particular content will be display in all enabled languages. If the content is created in specific language for example English,Hindi etc. than this content will display to in that specific language in which it is created.

    1. Login with admin credential.
    2. Go To Content -> Add Content
    3. Choose "content type" in which content should be added.
    4. After that a content add form will be displayed which contains the Language Dropdown field, Select the desired language and save the content. If content will be saved by selecting "Language Neutral" than this content will be display in all enabled language.


    5. Please Find the Demo Video for a demo of content.

  1. How to start mysql service and how to remove socket related error?

    Firstly Check linux version to : cat /etc/redhat-release

    1. If redhat version 7.x then systemctl start mariadb
    2. if redhat version belongs to 6.x service mysqld start OR service mysql55-mysqld start
    3. If following error occur
    4. Then run the following command and again start mysql service

      mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock_$(date +%d-%m-%y-%H:%M)

  2. What is basic Troubleshooting for all VMs if website is not working?

    Run ping command where port is open on that particular machine: ping <VM IP>  -t

    If ping result shows unable to connect destination host or time out then VM is down and start VM from cloud.

    If ping result shows connected with VM then Take ssh from putty:

    1. If unable to login from putty then VM is on hang state and restart VM
    2. If login successfully please contact to system administrator
  3. How to start Apache service from command?

    service httpd restart or systemctl restart httpd

  4. How to find MAC address from command?

    ip a | grep ether | awk '{print$2}';

  5. How to find memory status in VMs?

    free -gh;

  6. How to find the size of directory/file in Linux?

    du -sh

  7. FTP clients used in file transfer?
    1. Filezilla
    2. Winscp
    3. SSH secure shell client
  8. How to access VM machine from windows machine?

    Use following application used to access VM

    1. Putty
    2. SSH secure sheel client.
  9. How to find number of CPU available in VMs?


  10. FAQ Related To DB Backup

  11. Command to find hostname of VM?


  12. What is command to find Linux version?

    cat /etc/redhat-release;

  13. What is command to find data directory of MYSQL?

    cat /etc/my.cnf | grep datadir;

  14. What is the location of bin directory in MYSQL (DB VM)?

    bin directory is not applicable (NA) for cmf .

  15. What is the location of mysqldump in MYSQL (DB VM)?

    locate mysqldump | sed -n '1p'

  16. What is the socket file path of MYSQL (DB VM)?

    cat /etc/my.cnf | grep socket

  17. What is the command to take DB backup on DB VM?

    Please follow the following steps:

    1. Go to home directory: cd ~
    2. Run the following command and press enter after that enter the password of mysql root user: mysqldump –u root –p cmfdb > cmfdb$(date +%Y-%m-%d-%H.%M.%S).sql
    3. The password you type will not appear on the screen.
  18. How to find estimated DB backup size?

    After taking DB backup type following command du -sh <backup file name>

  19. How to create a new db user with password for DB backup team?

    Following steps are :

    1. Login to DB VM .
    2. Login to root user for  mysql panel: Type mysql –u root –p   and press enter
    3. The password you type will not appear on the screen.
    4. Run following command: mysql> GRANT LOCK TABLES, SELECT ON cmfdb.*  TO  '<username>'@'<backupIP>' IDENTIFIED BY '<password>'; mysql>FLUSH PRIVILEGES;
    5. Exit from mysql prompt
    6. Share allocated username and password to DB BACKUP team.
  20. How to find project directory of WEB VM?

    cat /etc/httpd/conf/httpd.conf | grep home | grep cmf/docs | awk '{print $2}' | sed -n '1p'

  21. What is the server configuration requirement for CMF projects?

    RAM CPU Storage WEB/DB
    8GB 4v CPU 150/200

  22. What is the pre-installed component of web server?
    1. Apache web server
    2. Php 5.3+
    3. Php-mysql library
    4. Php-gd library
    5. Php-mbstring library
    6. Php-bcmath library
    7. Vsftpd 
    8. Memcached
    9. Antivirus
    10. Stop service of SELINUX and IP Tables
  23. What is the pre-installed component of DB server?
    1. Mysql5.1+ /Mariadb
    2. Antivirus
    3.  Stop service of SELINUX and IP Tables
  24. How to change root password of the VMs?
    1. Login to VM thru putty: Type VM

    2. Login as root user : type root and press enter . Password prompt will appear. The password you type will not appear on the screen.

    3. Type passwd and press  Enter. 

    4. An Enter new UNIX password: line will appear below the prompt. The password you type will not appear on the screen.

    5. Retype a new password and press  Enter. The password you type will not appear on the screen.

    6. You will see a message that reads “password updated successfully.”

    7. Type exit and press  Enter. This will log you out of the root account.

    8. Login again to putty with new root password.
  25. How to check package is installed or not on Vm?
    1. Command is : rpm –qa
    2. Example to check php-bcmath package: rpm –qa php-bcmath
  26. How to check status of apache service ?

    service httpd status OR systemctl status httpd

  27. How to check number of httpd connection established ?

    netstat –antup | grep httpd | grep established | wc -l

  28. How to find mysqldump path in DB VM ?

    locate mysqldump | head -n 1

  29. How to start memcache service?

    service start memcached

  30. How to update mysql version?

    1. Take backup of all databases and mysql configuration (/etc/my.cnf) file in serve
    2. Check mysql version : mysql -v;
    3. Update mysql version : yum update mysql;
    4. If update is available, it will auto install them, else you will get a message saying NO packages marked for updates.
    5. If updated version is not available then contact to the cloud team to provide latest version of mysql on VM.

  31. How to hide APACHE version in client side?

    1. Take backup of apache configuration file: cp /etc/apache/conf/apache.conf /etc/apache/conf/apache.conf$(date +%Y-%m-%d-%H.%M.%S).
    2. Add following parameters in apache configuration file:

      ServerSignature Off

      ServerTokens Prod

  1. What is STQC?

    Standardisation Testing and Quality Certification (STQC) Directorate is an attached office of the Ministry of Electronics and Information Technology, Government of India. It provides quality assurance services in the area of Electronics and IT through countrywide network of laboratories and centres. The services include Testing, Calibration, IT & e-Governance, Training and Certification to public and private organizations.

    STQC laboratories are having national/International accreditation and recognitions in the area of testing and calibration.

    Besides testing and calibration STQC has specialized institutions such as Indian Institute of Quality Management (IIQM) for quality related training programs. Centre for Reliability (CFR) for reliability related services and Centre for Electronics Test Engineering (CETEs) for skill based trainings.
    In the area of IT & e-Governance, STQC provides assurance services through its IT Centres for Software Quality testing, Information Security and IT Service Management by conducting testing, training, audit and certifications. STQC is responsible for maintaining eGov standards. Based on this concept a Conformity Assessment Framework (CAF) for e-Governance project has also been developed and is in operation. Two IT test laboratories, at Bangalore and Kolkata, have received accreditation from American Association for Laboratory Accreditation (A2LA) being the first outside the USA.

  2. What is Website Quality Certification?

    STQC has developed a Website Quality Certification Scheme based upon National and International Standards/Best practices. The certification in scheme aims to help in hardening of websites from wide range of Security threats, increasing accessibility and assuring commitment to services and ensuring compliance to the requirements of developed by National Informatics Centre (NIC) and adopted by Department of Administrative Reforms and Public Grievances (DARPG), Government of India.

    The scheme has two components :

    1. Website Quality Certification for Government Websites
    2. Capability Approval of Website Designers and Developers (requirements based on ISO/IEC 23026)

    The award of the mark "Certified Quality Website (CQW)" is recognition that the website complies with the requirements of GIGW and the organization has adequate procedures and processes in place to provide reliable and dependable information and service through their website.

  3. What are the Benefits of Website Quality Certification?

    It is a recognition that the organisation has adequate procedures and processes in place to provide reliable and dependable information and services through its website. Further, it will help in:

    • Hardening of website from wide range of security threats
    • Increasing accessibility and usability
    • Reducing legal liabilities
    • Assuring commitment to services
    • Benchmarking as per International Standard
  4. What is the Certification Process?
    1. The User applies to STQC Website Certification Cell for certification by submitting duly filled in application(CQW) form along with website quality manual(WQM), Certification Agreement, Valid Security Audit Certificate and applicable charges.
    2. The assessor reviews the website quality manual for adequacy as per quality criteria and provides the feedback.
    3. The assessment team evaluates the website using test tools and provides Assessment Cycle reports (Phase wise)
    4. Assessment of back end processes of the organization is carried out for compliance with scheme requirements.
    5. After the satisfactory assessment results, STQC issues the Certificate of Registration and Certification Mark. The certificate shall remain valid for three years with annual surveillance.
  5. What is Certification Charges?

    Charges for Website Quality Certification for Quality Level 1 is 1,10,000/- plus GST to be paid in advance by Demand Draft drawn in favour of `PAO, DeitY, New Delhi`.  Please add 25% plus service tax for bilingual site. This does not however include charges for security testing. You may use the services of any of the registered vendors of CERT-In or NIC including STQC for security testing and submit the certificate.

    In case of CMF websites it is 50,000/- plus GST to be paid in advance, either by National Electronic Fund Transfer (NEFT) or Demand Draft (DD) in favour of respective STQC Lab and will be paid by CMF Team.

  6. Logo awarded for Certification Level I?
  7. What is Guidelines for Indian Government Websites (GIGW)?

    National Portal of India (http://india.gov.in) was set up as a single point access to government information and services. In this process of unification it aggregates content from over 9000 website of Indian Government. National Portal of India cannot serve its users primarily; citizens of India beyond a certain level of quality, unless the inherent quality of government websites increases. With this objective a Content Advisory Committee with the senior officers from different Ministries and State Governments as its members, was constituted to look into the means to enhance the intrinsic quality of the Government websites.

    At the advice of the Content Advisory Committee, NIC has developed ‘Guidelines for Indian Government Websites’ in accordance to the international standards (WCAG 2.0) and bodies like ISO and W3C were also consulted  to ensure that the website belonging to any constituent of the Government at any level are user friendly, secure and easy to maintain.

  8. What are the documents required for STQC Certification ?

    Following are the required documents for initiating STQC certifications of websites developed under CMF

    1. Web Quality Manual (WQM)
      • (Document Name format "CQC/<<nickname of Min. / Dept. >>001")
      • (Duly Signed and Sealed from WIM/ Authorized Signatory and Technical Manager)
      • WIM has to sign at three places in WQM and Technical Manager once.
      • GIGW Matrix ( with status like Compliant/ Non-Compliant/ Not Applicable) as annexure I [Verify that 115 point are the latest one]
      • Attach Audit Certificate ( provided from 3rd party Vendor) as annexure II
      • Attached Website Audit Certificate (provided from Cyber Security Division) as annexure III


    2. Certification Agreement
      • (Duly signed and sealed from WIM/ Authorized Signatory)
    3. STQC Application (CQW Form)
      • (Form duly filled, signed, sealed, from WIM/ Authorized Signatory)
    4. Formal approval from WIM over his/her letterhead
      • "This is to certify that the website of<<APEX/ MINISTRY/ DEPARTMENT NAME>>at the URL<<Website URL>>has been successfully migrated to the Content Management Framework (CMF). The updated website was launched on<<Go-live Date>>and may now be submitted for Website Quality Certification (GIGW) by STQC."

    Following are the documents that are to be submitted once Cycle I issues are fixed

    1. Closure Report
      • Detailed Excel report containing all the issues raised in Cycle I or II report (Major, Medium and Minor) and the Status in it.
      • (Duly signed and sealed from WIM/ Authorized Signatory)
    2. Not Applicable Guidelines
      • “In reference to Web Quality Manual, Annexure I, Compliance Matrix (For NIC-GIGW Guidelines), the Not Applicable guidelines with reference number are mentioned as below. These guidelines are not applicable to NACO website” listing all the NA points
      • (Duly signed and sealed from WIM/ Authorized Signatory)
  9. What is Website Promotion Techniques?

    Let's take a website for creation of fresh banner based on the banners used currently, website of Department of Ex-servicemen Welfare (http://desw.gov.in/)

    Here we inspected and found that the code below banners are like

    {<img typeof="foaf:Image"src="http://desw.gov.in/sites/default/files/styles/custome_flex/public/banner-ex-services.jpg?itok=e9P9Ch6P" 
    alt="" draggable="false" width="1349" height="339">}

    We can easily trace the dimension of banner provided

    Now here comes the requirement of tool through which we can crop/ resize and regenerate a banner.

    Steps are as follows: -.

    1. http://picresize.com
    2. Select picture through Browse button
    3. Select image (Figure 1)
    4. After Selection, Click on Continue to resize/crop and include special effects (Figure 2)
    5. Select focus area in the image provided
    6. Select Custom Size under option Resize Your Picture (Figure 3)
    7. Provide dimension of banner either in Pixels or Percent
    8. Choose effects if necessary or either keep it None.
    9. Select Image Format as required like jpg, gif, png and bmp
    10. Select Quality to Good.
    11. Finally click on “I’m Done, Resize My Picture”.
  10. What is Website Promotion Techniques?

    As per GIGW Matrix Point No. 112 (ref: 9.2.1 & 9.2.2), each government organization needs to prominently mention the URL of the web site clearly in order to give it due publicity. It should be directed that no press release or advertisement of any Government Department shall be issued to the press without checking the presence of the URL of the website and necessary steps should also be taken to ensure the presence of relevant corresponding information on the website.

    For: - GIGW Manual and Matrix (http://web.guidelines.gov.in/assets/gigw-manual.pdf)