Free Linux
From myhosting.com Wiki
Activating Free Linux
Customers who have signed up for our Premium and Professional hosting plans can follow these steps to activate their Free Linux hosting account.
- Browse to https://support.myhosting.com.
- Log in with your domain name, password and Reseller ID (optional).
- Click on Site Management.
- Click on Linux Account.
- Click on CONTINUE.
- Choose your preferred sub-domain name and click ACTIVATE.
Once you have completed these steps, we will begin the activation of your Linux account. Please note that it may take several hours to activate your account and for the DNS to be fully updated.
Changes to my Windows Account
Adding the Linux account will have no effect on your Windows account. The Linux sites are run on separate servers and use a sub-domain based on your existing domain name for web access. At any time you can disable your Linux account through your account control panel without having any impact on your Windows hosting account.
Redirecting Sites
There are a number of different ways you can redirect traffic from one page to another. Below are 5 examples which you can try:
Simple META Tag Redirection
You can use a simple META tag to redirect traffic from one area of your site to another. For example, if you want to redirect your visitors from www.whateveryouwant.com to yourdomain.com, you could insert the following tag inside the HEAD of your HTML file:
<META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://yourdomain.com">
Anyone viewing that page would be redirected to http://yourdomain.com in 0 seconds.
Simple ASP Redirection
You can also create a simple redirection script using ASP, to redirect traffic from your Windows account. You can simply create a new ASP file named default.asp which includes the following code:
<%
Response.Redirect ("http://yourdomain.com")
%>
Please note that since this is an ASP script, it will not work under your Linux account.
Simple HTML Recirection using Frames (with cloaking)
You can use a frame-set to redirect traffic from one area of your site to another. The advantage of this method is that the domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height:. You can create a new file named index.html and include the following code:
<html> <frameset cols="0,*" framespacing="0" border="0" frameborder="0"> <frame name="zero" scrolling="no" noresize> <frame name="main" src="http://yourdomain.com"> </frameset> </html>
Advanced ASP Redirection
Using this ASP example, you can redirect more than one domain to more than one destination. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "whateveryouwant.com", "www.whateveryouwant.com"
Response.Redirect "http://yourdomain.com"
Case "yourothername.com", "www.yourothername.com"
Response.Redirect "http://yourdomain.com/somewhere"
End Select
%>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
Advanced ASP Redirection using Frames (with cloaking)
Another variant of the above example includes a "cloaking" option. This is basically a combination of example 3 and example 4. The domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "whateveryouwant.com", "www.whateveryouwant.com"
destURL = "http://yourdomain.com"
Case "yourotherdomain.com", "www.yourotherdomain.com"
destURL = "http://yourdomain.com/somewhere"
End Select
%>
<html>
<frameset cols="0,*" framespacing="0" border="0" frameborder="0">
<frame name="zero" scrolling="no" noresize>
<frame name="main" src="<%=destURL%>">
</frameset>
</html>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
Accessing your account by IP Address
Access through the I.P. address, for those who want to upload files before their domain transfer has completed requires a few additional steps. This procedure is for the more technical user.
First, you can FTP to your account using the 'Shared I.P.' address provided in the email you received when you signed up for your Linux account. You will also need to supply your user name and password.
Second, because your Linux site is hostname based, to view your site you will need to make an entry into your local host file to resolve your server address until your domain has been successfully transferred. Your host file can usually be found in the following location: C:\WINDOWS\system32\drivers\ect\ but this will vary based on the operating system. If you can't find it, do a search for 'hosts'.
Once you have the file open, you will see an entry like this:
127.0.0.1 localhost
You will need to add a second line that will appear like this
Shared I.P. address sub.yourdomain.com
Substitute the values for both as they apply to your account.
Once you've completed this step and re-saved the host file you will be able to view your site, but only on the computer where you have made this modification. We recommend that you remove this entry once your domain name has been transferred and subsequently use your sub.yourdomain.com for access.
Uploading Files
You can either upload files to your account via FTP, or you can use the myhosting.com File Manager.
For your FTP login information, please refer to the email you first received when your Free Linux account was activated.
- To access your File Manager, you can login to your Control Panel using your domain name and password.
- Click on Site Management.
- Click on Linux Account.
- Click on File Manager.
Alternately, you can open a new browser window and navigate to http://your-domain-name.com/myfilemanager and enter your domain name and password to log in.
Add More Disk Space
You can add more disk space to your Free Linux account by upgrading your entire hosting account to one of our other hosting plans. Please see the article entitled "How do I upgrade my hosting plan?"
Included Email Accounts
You do not get any extra email accounts with your free Linux hosting option. Also, any email sent to your Linux account i.e. to user@sub.yourdomain.com) will be forwarded to the mail server on your Windows account.
Additional Disk Space and Bandwidth
Disk space, bandwidth, email accounts and most of the other features of our Premium and Professional hosting plans remain the same. If you choose to enable and use the free Linux account that comes with these plans, the resources for the plan are shared. For example, bandwidth calculation will be a total of the bandwidth used for Linux hosting + Windows hosting. Similarly, diskspace and email accounts are also a shared resource.
Cancelling Free Linux
You can follow these steps to deactivate your Linux hosting option if you no longer require PHP, Perl or MySQL. We recommend making a backup of any needed files before proceeding with deactivation.
- Browse to https://support.myhosting.com.
- Log in with your domain name, password and Reseller ID (optional).
- Click on Site Management.
- Click on Linux Account.
- Click on Deactivate Linux Account.
- Click on the Deactivate Linux button.
We strongly recommend you back up any files in your Linux account before deactivating your account.
Upgrade from Free Linux to Basic Linux
If you have enabled one of the Free Linux account offered through one of our Windows plans and wish to move the content to one of our standard Linux accounts, like our Linux Basic account, you will need to follow this manual procedure. There is no automated process for this procedure as the two accounts are provisioned on different platforms, including different email platforms.
- Download all content from the directories on your website and save locally on your PC.
- Either delete unwanted email or download the content of any email accounts you may have provisioned through your Windows account. You may also want to take note of any email rules you set as well as aliases you may have created.
- Cancel your Windows account through your account control panel
- Complete the signup process for your new standard Linux account, indicating the domain name used for your previous account.
- Once you've completed the signup process, email support@myhosting.com letting them know that you would like to use your new domain name for your standard Linux account.
- Once you receive an email for your new Linux account you can start uploading content to your web site directories and re-creating any email addresses you had. Please note that you will need to re-create any rules and / or aliases you may have had with your Windows account.
Because you new Linux account is on a different, Virtual I.P. address, there will be a period of 24 hours while we update our DNS. During this time your domain, website and emails will be inaccessible.
Account Activation
While your account should be created within a couple hours, it may take up to 24 hours for the hostname to become active. However, once your account has been created you will receive an email with instructions on how you can upload files and view your site while you are waiting for your hostname to become active.
Path to Free Linux Account
The absolute path to your Linux website is /var/www/domains/x.yourdomain where x.yourdomain is your Free Linux sub-domain name.
