Thursday, June 23, 2011

How to change file/folder permissions in cPanel?

All files on UNIX (including Linux and other UNIX variants) machines have access permissions. In this way the operating system knows how to deal with requests to access the files. There are three types of access:
  • Read - Denoted as r, files with read access can be displayed to the user
  • Write - Denoted as w, files with write access can be modified by the user
  • Execute - Denoted as x, files with execute access can be executed as programs bythe user
Access types are set for three types of user group:
  • User - The owner of the file
  • Group - Other files which are in the same folder or group
  • World - Everyone else

Tuesday, June 14, 2011

How to redirect www URLs to non-www?

In order to redirect all requests for www.yourdomain.com to yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in your public_html folder:
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]

From now on, when someone accesses http://www.yourdomain.com she/he will be redirected to http://yourdomain.com.
Using this method is safe because it should not create any redirection loops nor it should interfere with other rewrite rules.

Tuesday, April 19, 2011

How to check whether the cPanel ports are open?

You may experience issues with the non-standard http ports Cpanel works with. Usually Cpanel can be opened from:
  • http://yourdomainname.com/cpanel
  • http://yourdomainname.com:2082
  • http://cpanel.servername.com
Sometimes local firewalls allow only access to sites on port 80. In such cases, use the last URL. Note that the address "3" is a web based proxy which provides you with the option to access your cPanel via the default http port 80. We have set this extra service for our Customers which Internet Service Providers blocked ports 2082 and 2083.
You may check if the ports are blocked executing the following commands:

Monday, February 28, 2011

How to use Google's free SMTP Server?

Google's GMail offers a free SMTP server which can be used by anyone who has a GMail account.
If you don't have a GMail account, you can create one at the GMail account creation page. Then all you need to do is configure your mail client to use GMail for outgoing mail server. The details you should use are:
  • Outgoing Mail (SMTP) Server: smtp.gmail.com
  • Use Authentication: Yes
  • Use Secure Connection: Yes (this can be TLS or SSL depending on your mail client)
  • Username: your GMail account
  • Password: your GMail password
  • Port: 465 or 587

Wednesday, February 23, 2011

How to create custom mail filters in cPanel?

E-mail filtering allows you to select messages that contain certain string of text or other symbols, and either discard them, or send them to another e-mail box of your choice. Step 1:To access the user level filtering menu, click on the User Level Filtering icon on the main screen of your cPanel interface.

Step 2:Click on [Manage Filters] next to the account for which you wish to add filters
Related Posts Plugin for WordPress, Blogger...