Configure Google Apps on iPhone

Sync an iPhone with Google Apps

After you enable Google Sync for your domain, have each user follow these instructions on their iPhone.

  1. Open the Settings application on the iPhone’s home screen.
  2. Open Mail, Contacts, Calendars.
  3. Tap Add Account….
  4. Select Microsoft Exchange.
    settings mail calendar contacts on iphone  add mail calendar contacts account on iphone  google apps email iphone microsoft exchange
  5. In the Email field, enter your full Gmail address.
  6. Leave the Domain field blank.
  7. Enter your full Google Apps email address as the Username.
  8. Enter your Google Apps password as the Password.
  9. Tap Next at the top of your screen. (Choose Cancel if the Unable to Verify Certificate dialog appears.)
  10. When the new Server field appears, enter m.google.com.
  11. Press Next at the top of your screen again.
    Sync an iPhone with Google Apps  google apps email iphone exchange server
  12. Select the Google Apps services (Mail, Calendar, and Contacts) you want to sync.
  13. Unless you want to delete all the existing Contacts and Calendars on your phone, select the Keep on my iPhone option when prompted. This will also allow you to keep syncing with your computer via iTunes.

    To sync only the My Contacts group, you must choose to Delete Existing Contacts
    during the Google Sync install when prompted. If you choose to keep
    existing contacts, it will sync the contents of the “All Contacts” group
    instead. If there are no contacts on your phone, the latter will happen
    — the contents of your All Contacts group will be synced.

    iphone exchange mail calendars contacts  exchange keep on my iphone

That’s it! You can now access Google Apps from your iPhone. If you have Push enabled on the phone, synchronization starts automatically.
You can also just open the Mail, Calendar or Contacts app and wait a few seconds to start a sync.

Setting up Google Apps on Android phone

Using Google Apps on your Android phone

Using Google Apps on an Android is really easy. Just add your Google
Apps account to the phone, then select the services you want to use.

Each user should follow these instructions on their own phone.

  1. Open the Accounts & Sync Settings screen on your phone. You can do this in Contacts by pressing Menu and touching Accounts, or directly in the Settings application.
    Using Google Apps on your Android phone

  2. The Accounts & Sync Settings screen displays your current sync settings and a list of your current accounts.
  3. Touch Add account.
  4. Touch Google to add your Google Apps account.
  5. Touch Sign in when prompted for your Google Account.
  6. Enter your full Google Apps email address as your username, and then enter your password.
  7. Select which services you’d like to sync between your phone and Google Apps.

That’s it! You can now use Google Apps from your Android.

Reseller Hosting: How to setup reverse DNS in WHM

One of the often overlooked aspects of web hosting is reverse DNS. A website will not connect to users who type in a domain name if the forward DNS does not identify the IP address associated with it, but some domains do not have reverse DNS, despite it being an established Internet standard.

Among other uses, reverse DNS can help security-conscious users and professionals verify that the relationship between a domain and an IP address is valid, which helps prevent spam, phishing, and other nefarious activities.

When you manage your server with WHM from cPanel, it is easy to setup reverse DNS records for your IP addresses. Just follow these steps:

Create a reverse DNS zone file

  1. Login to WHM and navigate to DNS Functions -> Add a DNS Zone
  2. Type in your IP address (example – 192.168.254.254)
  3. Enter the reverse DNS name (example -254.128.192.in-addr.arpa). For instructions on adding the appropriate reverse DNS name, see naming an IPv4 zone and naming an IPv6 zone.

Edit the reverse DNS zone file

Now, you will need to create each PTR record.

  1. From the main WHM page, go to DNS Functions-> Edit DNS Zone
  2. Under where it says “Add New Entries Below This Line”, enter the corresponding octet or nibble (the final number in the IP address). Example: 254. In the drop down menu, select “PTR”.
  3. Enter the associated domain name for that IP address
  4. Repeat for each IP address

To check that your reverse DNS is working, you can type this from the command line:

host 192.168.254.254

and the output should look like this:

254.254.168.192.in-addr.arpa domain name pointer www.yourdomain.com

Alternatively, you can find numerous free reverse DNS lookup tools on the web. For more information about setting up reverse DNS in WHM, see the cPanel documentation.

Creating a Domain Alias in Plesk Control Panel

This article will walk you through the process of creating a new Domain Alias using the Plesk control panel.

  1. Log in to Plesk
  2. Once logged in, click the ‘Home’ button in the left navigation frame.
  3. Click on the domain name you wish to create a domain alias for.
  4. Click on the ‘Domain Alias’ button. This will take you to the Domain Alias manager
  5. Add a new Domain Alias by clicking the corresponding button (Add Domain Alias).
  6. In the ‘Domain alias name’ field, enter the domain you wish to use an as alias. (ie: If you entered domain.com, domain.com would take you to the domain listed on your account.)
  7. Check the ‘Mail’ and ‘Web’ checkboxes to use this alias for receiving email and web service.
    • Selecting the ‘Web’ checkbox is necessary for your website to appear in a browser.
    • Selecting the ‘Mail’ checkbox will redirect email to the addresses specified on your domain. For example, if you create the domain alias ‘domainalias.com’ and your hosted domain is ‘domain.com,’ all email sent to you@domainalias.com will be sent to you@domain.com. You must have an email account set up for your hosted domain in order for mail to be redirected.
  8. Click the ‘OK’ button to create the domain alias.

After completing the steps above you should have a new Domain Alias listed on the Plesk ‘Domain Alias’ page.

Why am I denied access via FTP?

There might be occasions when you are unable to access the web site via FTP. This could be because of the following reasons:

  • Internet connectivity issues: Your Internet connection might be disrupted. Check whether you are able to connect to the Internet, then try again.
  • Firewalls: You might have a firewall blocking access to your site. Ensure that this access is un-blocked and try again.

    What is a Firewall?
    A firewall is a piece of hardware and/or software which functions in a networked environment to prevent some communications forbidden by the security policy. Firewalls can come in the form of hardware or software. Without getting into the complex details of how firewalls work, it would suffice to say that they function with a set of filters that are constantly monitoring traffic on the network. Whenever a packet of information triggers one of the filters, the firewall prevents it from passing through in the attempt to prevent damage. Of course, firewalls sometimes block wanted traffic (like your FTP access in this case) – however, through a continual process of refinement, the filters can be customized to improve their effectiveness.

  • Using FTP in Active mode: FTP can be used in either of 2 modes – Active or Passive. All HamaraHost.com Windows and Linux web servers support both Active as well as Passive modes. The mode of FTP chosen may not cause you problems while connecting and uploading via FTP, but you might encounter occasional errors while getting directory listings.

Using FTP to upload files to your website

FTP stands for File Transfer Protocol. Essentially, it is a simple tool to move files from one computer to another computer.

FTP works only on port 21 for HamaraHost.com Windows Web Hosting packages.

How would FTP work for me?

Lets assume that you have created a web site for yourself, and you have seventy-five web pages that you want to display to people. Instead of copying all of the files to disks and manually placing
the files on the Web Server, you could open an FTP client, find the Web Server, navigate to the directory where you need to place the files, and then upload the files.

Thus, FTP is simply used:

  • to download a file from a server using the Internet, or
  • to upload a file to a server (e.g. uploading a web page file to a Server).

Few FTP Clients

FTPS

FTPS (also known as FTP Secure or FTP-SSL) is an extension to the commonly used File Transfer Protocol (FTP) that adds support for the Transport Layer Security (TLS) and the Secure Sockets Layer (SSL) cryptographic protocols.

FTPS works only on port 21 for both HamaraHost.com cPanel Linux Web Hosting and Plesk Windows Web Hosting packages.
Some FTP clients support both FTPS modes: Explicit and Implicit. In such FTP clients, the Explicit (FTPES) mode needs to be selected.

Few FTP clients supporting FTPS

SFTP

SFTP, or secure FTP, is a program that uses SSH (Secure Shell) Protocol to transfer files. It is functionally similar to FTP. However, unlike standard FTP, it encrypts both commands and data, preventing passwords and sensitive information from being transmitted in the clear over the network.

SFTP works only on port 22 for any HamaraHost.com Linux Web Hosting package.

Few FTP clients supporting SFTP

It is advisable to not use WS_FTP client to upload content to a website hosted on HamaraHost.com’s Linux Hosting Servers.

How to serve WAP files?

Yes, HamaraHost.com does indeed allow you to serve WAP files. To enable the Web Server to serve WAP documents, you need to set the following MIME types on the web server:

  • text/vnd.wap.wml for .wml files (WML source files)
  • application/vnd.wap.wmlc for .wmlc files (WML compiled files)
  • text/vnd.wap.wmlscript for .wmls files (WMLScript source files)
  • application/vnd.wap.wmlscriptc for .wmlsc files (WMLScript compiled files)
  • image/vnd.wap.wbmp for .wbmp files (wireless bitmaps)

If you use the Apache Web server add the following lines in the ..\Apache Group\Apache2\conf\mime.types file:

  • text/vnd.wap.wml wml
  • application/vnd.wap.wmlc wmlc
  • text/vnd.wap.wmlscript wmls
  • application/vnd.wap.wmlscriptc wmlsc
  • image/vnd.wap.wbmp wbmp

Our servers are already preconfigured to serve files.

What is WAP?

WAP stands for Wireless Application Protocol. You would use WAP to serve information from your website to wireless devices such as mobile phones, pagers and communicators.

How to test MySQL database connection

You can test connectivity to a MySQL database using the below sample script:

        <?php
        $dbname = 'mysql_dbname';
        if (!mysql_connect('mysql_host',        'mysql_user', 'mysql_password')) {
            echo 'Could not connect to mysql'; exit;
        }
        $sql = "SHOW TABLES FROM $dbname";
        $result = mysql_query($sql);
        if (!$result) {
            echo "DB Error, could not list tables\n";
            echo 'MySQL Error: ' . mysql_error(); exit;
        }
        while ($row = mysql_fetch_row($result)) {
            echo "Table: {$row<span class="error">[0]</span>}\n";
        }
        mysql_free_result($result);
        ?>

The variables used in the script are:
mysql_dbname: the MySQL database name
mysql_host: this needs to be specified as localhost
mysql_user: the username associated with the above MySQL database
mysql_password: the password corresponding to the above user

This script, on a successful connection, will fetch and display the names of all the tables in the specified database.

PHP-based Form Mail (Feedback) Script

Using a PHP script, you may accept feedback from your website visitors and get the results emailed to you. You can use the sample script provided by HamaraHost.com and tweak it a bit to suit your requirements.

You would need to change the email address in the field $from to any email address on the domain name on which you are incorporating this script.

Example:

If your domain name is abc.com, then you would define the From email address as some-name@abc.com.

This email address need not be existing on the mail server of abc.com, however, the domain name in the $from field has to be yours.

You may use an email address such as Do_Not_reply@abc.com.

The value in the $mailto field needs to be changed to the email address, where the email containing the data submitted through the form needs to be delivered.

Once the visitor provides feedback, he/she can then be re-directed to another page on your website. In order to achieve this, you need to mention the path to the HTML file in the $file field in the script. Alternatively, you can display a message to the visitor thanking him/her for the feedback. Such messages can be displayed in a new page like thanks.htm. Such a page can also contain other information as deemed necessary.

Sample Script

   <?

        $mailto="xyz@abc.com";
        $file="thanks.htm";
        $pcount=0;
        $gcount=0;
        $subject = "Mail from Enquiry Form";

        $from="some-name@abc.com";
        while (list($key,$val)=each($_POST))
        {
        $pstr = $pstr."$key : $val \n ";
        ++$pcount;

        }
        while (list($key,$val)=each($_GET))
        {
        $gstr = $gstr."$key : $val \n ";
        ++$gcount;

        }
        if ($pcount > $gcount)
        {
        $message_body=$pstr;
        mail($mailto,$subject,$message_body,"From:".$from);

        include("$file");
        }
        else
        {
        $message_body=$gstr;

        mail($mailto,$subject,$message_body,"From:".$from);
        include("$file");
        }
        ?>