General ( 8 ARTICLES )
General questions about web hosting
Web hosting is the act of renting space and bandwidth through a company so that you may publish your web site online.
You can either opt for free hosting that is usually supported with banners and pop ups, or may opt to get paid web hosting, which gives you complete control over your site contents.
Also known as shared hosting, this form of web hosting should suffice for most everyone.
Virtual hosting simple refers to the fact that your site is on one server, and that this server hosts multiple sites. You are virtually shared – your site will not be the only one on this specific server.
A domain name is a word along with a TLD that uniquely identifies your website.
Registering a domain name is very easy.
First you will have to make sure that the domain you want is available – using something called a WHOIS lookup at sites like Register.com or Whois Source you can make sure the domain you want is available for registration.
Diskspace is the size your website can be. Every single letter on your website has to be stored somewhere on your web host’s server. Each letter is one byte, and a megabyte is roughly one million bytes. HTML pages are usually very small, but it is the extra images, scripts, and even databases that can take up large amounts of disk space.
Bandwidth/Transfer is the amount of data the server will allow your site to send in a month. Transfer is usually measured in gigabytes – billions of bytes. Once you go over your monthly limit, a host may either shut your site down for the remainder of the month or it can charge you ‘overage.’ This overcharge is usually about $2.00/Month.
No. Provided that the domain is registered in your name (as it should be), you can simply update your namservers (from where you manage your domain names) to that of your new host.
Uptime is literally what it means – it is the amount of time your site is online throughout the entire month.
The best uptime would be 100%, but because things can break, many hosts offer 99.9% uptime guarantees. This means that if your site is not accessible for more than 43 minutes in a single month, they will reimburse you, depending on their terms of service.
cPanel ( 4 ARTICLES )
Questions that users ask about cPanel
cPanel is a web interface that allows you to manage the server-side features of your hosting account. This includes: creating mail boxes, creating and managing MySQL databases, subdomains, installing software (Blog, CMS, etc.) and a lot of other functions.
You can access your cPanel directly by typing this in your web browser your http://www.domain.com/cpanel
Click here is a demo for the cPanel
If you can’t login and don’t even get the username/password dialog-box, then most likely your current network blocks ports 2082 and 2095, which are used to access cPanel and Webmail. Most office networks and hotels have a firewall setup to block access to the ports required to access cPanel and Webmail. In that case, try using a so-called proxy-subdomain to access cPanel and Webmail via the regular port 80:
- For cPanel, please use http://yourdomain.com/cpanel
- For Webmail, please use http://yourdomain.com/webmail
If you get the username/password dialog box, but your login attempts are not accepted, then be sure that your hosting account is active (not suspended). If your hosting account is active, then try to send a ticket to support team to reset the password for you.
PHPMyAdmin is a free tool used to manage MySQL databases. You can access PHPMyAdmin directly from your cPanel>>Databases tab.
Common tasks that can be done using PHPMyAdmin include:
- Introduction to PHPMyAdmin
- Create a new table in a MySQL databse
- Rename MySQL tables
- Delete a table in a MySQL database
- Add a field to a database table
- Modify a table field
- Delete a table field
- Importing a MySQL database to your hosting account
- Exporting (backup) a MySQL database
- Search a database using PHPMyAdmin
- Running MySQL queries
Subdomains are a way of creating separate accounts within your main account.
The subdomain can be accessed through a separate URL in the form of ‘http://subdomain.domainname.com’.
This represents a subfolder within the public_html level of your account and you can create e-mail accounts with the subdomain extension.
Subdomains are often used to make access to subdirectories easier by simply typing in a shorter domain name, rather than the full domain name and the directory name.
Domain pointers, parked domains, domain alias or domain forwarders:
This allows you to point multiple domain names to the same website.
For example: yourdomain.com, yourdomain.net and somethingelse.com can all point to the same location. However, it CANNOT point to a folder on the main domain and it does not have any FTP features.
An add-on domain is a secondary domain name that points to a folder (subdirectory) within the main hosting account. It can be added from your cPanel.
www.seconddomain.com will show the files actually in www.maindomain.com/afolder/
An addon domain will act like a full account; you can create sub-domains, email accounts, and FTP accounts for your addon domains directly from your cPanel .
New to Onehoster.com – Starting up ( 3 ARTICLES )
Questions for new users of OneHoster
The only practical use of a dedicated IP is to install a SSL certificate. SSL certificates can only be installed on hosting accounts with a dedicated IP. During the website development phase, some advanced users may need a dedicated IP to access a hosting account that doesn’t have a domain name. Some webmasters think a dedicated IP is useful for Search Engine Optimization (SEO).
It’s possible to run a PHP (or SSI code ) file as a regular HTML file in a folder, or in a whole account, by editing the .htaccess file and adding this code:
To run a PHP as an HTML:
AddType application/x-httpd-php5 .html .htm .php
AddHandler application/x-httpd-php5 .html .htm .php
To run a SSI code as an HTML:
AddHandler server-parsed .html .htm
Email ( 5 ARTICLES )
Questions related to localisation and languages
1. You may mark the incoming emails as “spam”, on the basis of email headers and bodies, by using SpamAssassin in cPanel via:
cPanel >> Mail >> SpamAssassin
Then, you can delete them.
For this, you will need to enable SpamAssassin by clicking on the “enable SpamAssassin” button in SpamAssasin via cpanel->email->SpamAssassin. Then, set up the score that you want to give. The default is 5. It will first identify the spam based emails. Then, it increments the spam value each time it gets delivered. When the spam value reaches 6 (which is above the set score), the emails will automatically be marked as spam. The spam emails can be discarded by enabling “Spam Auto Delete’ in SpamAssassin.
You can also configure SpamAssassin for various checks (Blacklisting/Whitelisting email ids, etc.).
2. Block spam using an User-level, or Account level, filtering. This is used when you are getting spam with common key words, like “watches”, or spam originating from any particular email id. You can block spam using these keywords via the following options. For this, click on the “create a new filter” tab. Then, you can setup the filter according to the following examples:
- Suppose you want to block any email containing the word “watch” (the word may be in email header or body). Select “Any Header and contains” from the two dropdown menus, and enter “watch” in the blank field. Select the action to discard it, or any other option. This filter will be blocking emails containing the word “watch” anywhere in the email.
- For blocking emails from a specific email id, like firstname.lastname@example.org: Select “From and equals” from the dropdown menu and put email@example.com in the blank field with the appropriate action.
- For blocking emails that have keywords like “watch”, “watches”, “Watches”, WaTches”, etc.: Select “Any Header and matches regex options” from the dropdown menu. Put the appropriate regular expression in the blank field.
3. Enabling box trapper will reduce spam by forcing all people not on your white list to reply to a verification email before they can send mail to you. This will send an email back to the sender, requesting a reply to that before it is regarded as genuine. Hence, it will reduce the spam sent using scripts.
You need to do the following in your mail client settings:
- Select IMAP as your incoming mail server.
- Enter port no ‘143′ as the Incoming mail (IMAP) port.
The rest of the settings will stay the same.
You can check your email using any mail client software (like Outlook,Thunderbird, etc.), or by using Webmail.
Blocking port 25 on your ISP for outgoing mail is one of the most common causes for inability to send emails using the mail client. In this case, you need to use port 26 instead of port 25 for outgoing mail in your mail client.
If you are using the Outlook mail client, please do the following to configure it to use port 26 :
- Run Outlook and open the ‘Tools’ menu
- Choose ‘Accounts’ or ‘Account Options’
- Open the ‘Mail’ tab
- Click on ‘Properties’
- Click on the ‘Advanced’ tab
- Change the outgoing mail from port 25 to port 26
- Make sure the box that says “This connection requires a secure connection(SSL)” is NOT checked
- Click OK
- Restart Outlook
Trouble shooting ( 4 ARTICLES )
Error number 404 signifies a “Page not found error”. This means the webpage (or file) you are trying to access was not found on the server. This might happen for the following reasons :
- You have mis-typed the spelling of the page you are trying to access.
Example : You wanted to access “http://www.domain.com/index1.html”, but you typed “http://www.domain.com/indx1.html”. This will cause a 404 error to display in your browser because the page “indx1.html” was not found On the server.
- You have not uploaded the page to the public_html folder yet.
- OneHoster uses Linux based web servers and in Linux, file names are case-sensitive. So, if you uploaded a file called Index1.html and tried to access it as domain.com/index1.html (note the I and i), you will get a 404 error. It’s highly recommended to make all file names lowercase and to not use spaces or non-english characters in file names, to avoid such errors.
To disable register_globals, create a file using any simple text editor (notepad is fine) and name it php.ini. Write the following code in the file:
register_globals = OFF
Then, upload the file to any folder you want to disable register globals in, or upload it to your public_html folder to disable register globals in your domain level.
The same method applies to enable register_globals, except the code in the php.ini file will look like this:
register_globals = ON
Enabling register_globals is a MAJOR security hole in your website!
If you get this error while you’re not running any script, then it’s most likely because of some bad syntax in the .htaccess file.
Try disabling the .htaccess file by renaming it; then, access your website again. If the website works fine without the .htaccess file, then you need to review your .htaccess file content.
To clear the DNS cache on your computer, you need to flush the DNS caching. Instructions to flush the DNS, in accordance with your operating system, are given below :
To flush the DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000):
Start -> Run -> type cmd
In command prompt, type: ipconfig /flushdns
To flush the DNS cache in Linux, restart the nscd daemon:
Type /etc/rc.d/init.d/nscd restart in your terminal.
To flush the DNS resolver cache in Mac OSX Leopard
you can use the command dscacheutil -flushcache :
bash-2.05a$ dscacheutil -flushcache
To flush the DNS resolver cache in Mac OSX versions 10.5.1 and before
the command lookupd -flushcache will perform the same task:
bash-2.05a$ lookupd -flushcache