Category: Domain

Accessing and using the Xen virtual console

Requirements for accessing the Xen virtual console

Your Cruzio VPS is managed through the Xen virtual console. To access the virtual console for your Cruzio VPS, you will need:

Connecting to the Xen Shell

Open your SSH client of choice and connect to vps1.cruziohost.com (you may need to replace “vps1” with the vps server your VPS is hosted on.)

Using PuTTY on Windows to access the Xen Shell

  1. Open PuTTY and enter the following settings:

    Host Name: vps1.cruziohost.com (you may need to replace “vps1” with the vps server your VPS is hosted on)

    Port 22

    Connection Type: SSH

  2. Click Open.

    You may be shown this message: “The server’s host key is not cached in the registry…”

    Click Yes to accept the server’s RSA key and store it in your computer’s memory for future sessions.

  3. At the “login as” prompt, enter your username and press the Enter key.
  4. You’re now prompted for your password. Enter your password and press the Enter key. You’ll now be taken to the Xen Shell.

Using Terminal on Mac OSX to access the Xen Shell

  1. Open the Terminal application on your Mac (you can find it in the Applications -> Utilities folder).
  2. Type ssh [username]@vps1.cruziohost.com (you may need to replace “vps1” with the vps server your VPS is hosted on.)
  3. You may be shown this message: “The authenticity of host ‘vps1.cruziohost.com’ can’t be established. RSA key fingerprint is (…) Are you sure you want to continue connecting (yes/no)?”

    Type “yes” and press the Enter key. This permanently adds vps1.cruziohost.com to the list of known hosts on your computer.

  4. You’re now prompted for your password. Enter your password and press the Enter key. You’ll now be taken to the Xen Shell.

Using the Xen Shell commands

The following is a complete list of the commands available within the Xen shell. You can see this list at any time within the shell by entering the “help” command.

For command-specific help, run “help [name of command]”.

boot
Start the Xen guest, if it is not running.
console
Connect to the serial console of the Xen instance using GNU Screen.

To exit the serial prompt, type ‘Ctrl+]’

You may instead exit screen with ‘Ctrl+a k’, or ‘Ctrl+a d’.

exit
Exit the shell.
help [command]
Show help about the specified command, or all commands if no command is specified.
passwd
Change your login password (this will only change the Xen Shell password, not the VPS root password).
pause
Pause your instance. This will pause the Xen guest (your VPS).
quit
Exit this shell.
rdns [ipaddress some.host.name]
Set up Reverse DNS for allocated IP addresses.

When called with no arguments, show current reverse DNS details.

reboot
Reboot the Xen guest.
serial
Connect to the serial console of the Xen instance using GNU Screen.

To exit the serial prompt, type ‘Ctrl+]’.

You may instead exit screen with ‘Ctrl+a k’, or ‘Ctrl+a d’.

shutdown [force]
Shut down the Xen guest.

If the ‘force’ parameter is used, then we’ll forcibly terminate.

status
Show whether the Xen guest is running or not.
sysreq [string]
Send a ‘sysreq’ keystroke to the guest.

This allows you to try to cleanly shut down a hung instance, for example.

unpause
Unpause your instance, and start it running again.
uptime
Show the uptime information of your guest system and this host.
version
Show the version of this shell, and of Xen.
whoami
Show the user you’re connected to the host system as.

Adding a DNS record to your Website Hosting domain

This document explains how to add a DNS record to your website hosted with Cruzio. Please note, these instructions only apply to Cruzio Website Hosting services. They do not apply to Cruzio Classic web hosting. If you have Classic web hosting, then you will need to contact Cruzio to have your DNS records modified.

Do not add or change DNS records if you are not aware of any reason why they should be changed.

  1. Go to http://login.cruzio.com/ and enter your domain name.  Click “Control Panel” and click “Go”. Enter your admin username and password and log in.
  2. Select the domain you want to add a DNS record to. If you are on host 6 or 7, you’ll find it by going to the main menu in the upper left corner, and clicking Domains.If you do not know what host number you are on, after you log into your control panel, look at the URL at the top of your browser. You will see it start with https://host followed by a number. That is the host number you are on.
  3. Click the DNS Settings icon. If you are on host 1, 2, 3, 4, or 5, this icon will be under the Services section. If you are on Host 6 or 7, it will be under the Web Site section.
  4. Under the Tools section, click Add Record.
  5. Select the type of record from the drop-down and fill in the values for the record.
  6. Click OK.

Back up and restore MySQL databases

Introduction

This information applies to Cruzio’s Website Hosting services. If you purchased Web and domain hosting with Cruzio after July 2006, you likely have Website Hosting services. Otherwise, you may have a Classic domain.

Many websites and Web applications use MySQL databases to store their content and settings. Learn how to protect your database by backing it up, and how to restore it in case of problems.

Back up your database regularly, so that you always have a recent copy to restore.

Be careful when restoring your backup to an existing database, since your backup will overwrite it. Make sure you are restoring the data you want to the destination you want. Otherwise, your website or application may become unusable.

Tools for backing up and restoring your database

Choose one of the tools below: Installatron, Control Panel Backup, or phpMyAdmin.

Installatron

Installatron is Cruzio’s one-click installer for Web applications, such as Joomla or WordPress.

Backing up with Installatron

  1. Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. In the sidebar, click the Installatron link.
  3. Your Web application(s) will appear. Find the one you want to back up and click its “create backup” button.
  4. The Installatron backup wizard will launch. Click the Next button to begin.
  5. Select the files, directories, and database tables you want to back up. Click Next.
  6. Click Submit.
  7. Click Complete.

Restoring with Installatron

  1. Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. In the sidebar, click the Installatron link.
  3. To the right of the Installatron page heading, click the My Backups tab.
  4. Your backup(s) will appear. Find the one you want to restore and click its “restore this backup” button.
  5. The Installatron restore wizard will launch. Click the Next button to begin.
  6. Select the files, directories, and database tables you want to restore. Click Next.
  7. Click Submit.
  8. Click Complete.

» back to top

Control Panel Backup

This backup tool is built into your control panel. It is limited to storing only a single backup per domain at any time.

The Control Panel Backup tool does not have a built-in restore function. You will need to retrieve your backup with an FTP application, and you will need to use phpMyAdmin to restore it.

Backing up with Control Panel Backup

  1. Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. In the sidebar, click Backup Your Account.
  3. Your domains will be listed. Click the small icon under the B (for backup) column for the domain you want to back up.
  4. Select the directories and databases you want to back up. Click “Backup now!”
  5. To schedule a recurring backup, in the list of domains, click the small icon under the S (for scheduling) column for the domain you want to back up.
  6. If “Disable scheduled backup” is selected, click its checkbox to deselect it. Select the items you want to back up, set a schedule (an asterisk means it will repeat every hour, day of the week, or day of the month), and enter an email address for notification. Click the Schedule button.

» back to top

Restoring with Control Panel Backup

If you are not familiar with FTP, follow our instructions for Website Publishing with Filezilla FTP.

  1. Open your FTP program, and connect to your Web host.
  2. Navigate to the “backups” directory.
  3. Your database backup is a file ending in the extension “.mysql”. Download it to your computer.
  4. Follow the phpMyAdmin steps below for restoring your database.

» back to top

phpMyAdmin

phpMyAdmin is a sophisticated tool for managing MySQL databases. It is as easy to destroy a database as it is to back it up. Use with caution.

If you have a Classic domain, you do not have the ability to restore any MySQL database backups. You may want to contact Cruzio and request a migration of your domain hosting to Website Hosting services.

Backing up with phpMyAdmin

  1. Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. Select the domain with the database you want to back up. If your Cruzio domain is on Host 6 or above, you’ll find the domain by going to the Main Menu on the upper left and clicking Domains.If you do not know what Host number your domain is on, after you log into your control panel, look at the address (URL) at the top of your browser. You will see it start with “https://host” followed by a number. That number is your domain’s Host number.
  3. Click the Databases icon. If you are on Host 1, 2, 3, 4, or 5, it will be under the Services section.If you are on Host 6 or above, it will be under the Applications & Services section.
  4. Choose your database by clicking on the database’s name.
  5. If you are on host 1, 2, 3, 4, or 5, click the “DB WebAdmin” icon.If you are host 6 or above, click the “Webadmin” icon.
  6. phpMyAdmin will open in a new window, so be sure your browser does not block pop-ups.
  7. In the sidebar of the phpMyAdmin window, click the database you want to back up.
  8. Toward the top of the page, click the Export tab.
  9. In the SQL Options area, under Structure, select “Add DROP TABLE” and “Add IF NOT EXISTS”. Leave all other options as they are.
  10. Near the bottom of the page, select “Save as file.” Optionally, in the “file name template” box, you can append the date, like this: __DB__01_01_2011
  11. At the bottom right, click Go.
  12. A file with the extension .sql should download to your computer. This is your database backup. Store it in a safe location.

Restoring with phpMyAdmin

  1. Go to http://login.cruzio.com and enter your domain name. Select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. Navigate to your domain’s Databases screen, as you did above in steps 2 and 3 of the backup procedure.
  3. Choose your database by clicking on the database’s name. If the database name does not already exist, create a new database by first clicking the “Add New Database” icon. Make sure the “Database name” matches the name of the database you are importing. Leave “Type” and “Database server” as they are and click “OK”.
  4. If you just created a new database in the previous step instead of clicking on an existing database, you will need to create an admin user before you can access the new database. Click the “Add New Database User” icon. For “Database user name”, make it match the name you just gave your database. For “New password” and “Confirm Password”, enter what you want your database admin password to be. When done, click “OK”.
  5. If you are on host 1, 2, 3, 4, or 5, click the “DB WebAdmin” icon.If you are host 6 or above, click the “Webadmin” icon.
  6. phpMyAdmin will open in a new window, so be sure your browser does not block pop-ups.
  7. In the sidebar of the phpMyAdmin window, click the database you want to restore to.
  8. Toward the top of the page, click the Import tab.
  9. In the “File to import” section, click the button to browse and choose a file from your computer. In the window that pops up, navigate to the .sql file you exported when you were backing up. Double-click the file to select it.
  10. Once you have located your .sql database file, double-click it to open it. The file importing window should close.
  11. At the bottom right, click “Go”.
  12. You should see a message near the top of the page, letting you know whether the import finished successfully.

» back to top

Backing Up Your Cruzio VPS

Cruzio strongly recommends that you keep backups of everything, including your Cruzio VPS. The Virtualmin Control Panel on your Cruzio VPS has a backup system built-in to make this easy. Backups can be done as one-time backups or can be scheduled to run regularly.

To perform a one-time backup immediately

  1. Log in to your Virtualmin Control Panel at clientlogin.cruziohost.com:10000, replacing clientlogin with the login name you chose when you signed up.
  2. In the left-hand menu toward the bottom of the list, click “Backup and Restore”.
  3. Click “Backup Virtual Servers”.
  4. Under “Virtual servers”, choose which servers are to be included in this backup. The default is to back up all your servers.
  5. You can specify which elements to back up under “Features and Settings”. The default option is to back up everything.
  6. Under “Destination and format”, specify the name and location of the backup file and the format of the backup (single archive file for your whole VPS, or an individual file for each server). By default, the backup process will create a single file for each server, containing a backup of all files on that server, and will create these files in your storage space on your Cruzio VPS.

    You may also specify a remote FTP or SSH server to transfer the file(s) to, or you can opt to download the archive file(s) in your browser.

  7. Click “Backup Now”.

To schedule backups

  1. Log in to your Virtualmin Control Panel at clientlogin.cruziohost.com:10000, replacing clientlogin with the login name you chose when you signed up.
  2. In the left-hand menu toward the bottom of the list, click “Backup and Restore”.
  3. Click “Scheduled Backups”.
  4. Click “Add a new backup schedule”.
  5. Under “Virtual servers”, choose which servers are to be included in this schedule. The default is to back up all your servers.
  6. You can specify which elements to back up under “Features and Settings”. The default option is to back up everything.
  7. Under “Destination and format”, specify the name and location of the backup file and the format of the backup (single archive file for your whole VPS, or an individual file for each server). By default, the backup process will create a single file for each server, containing a backup of all files on that server, and will create these files in your storage space on your Cruzio VPS.

    You may also specify a remote FTP or SSH server to transfer the file(s) to.

  8. Under “Schedule and reporting”, select “Simple Schedule”, then choose the frequency of backups, depending on the frequency of changes to your site.

    You may also specify an email address to receive reports of backup activity.

  9. Click “Create Schedule”.

To restore from a backup

  1. Log in to your Virtualmin Control Panel at clientlogin.cruziohost.com:10000, replacing clientlogin with the login name you chose when you signed up.
  2. In the left-hand menu toward the bottom of the list, click “Backup and Restore”.
  3. Click “Restore Backup”.
  4. Specify the source file to restore from. You can also specify which elements to restore or not restore.
  5. Click “Show What Will Be Restored”.
  6. Review the proposed restore, and if satisfied, click “Restore Now”.

Changing your hosting passwords

This information is for Cruzio Website Hosting services. If you got your web hosting before July 2006, please see the Classic Web Hosting FAQ.

To follow the procedures in this help article, you will need to know your Control Panel password. If you don’t know your Control Panel password, please contact Cruzio Support for help.

Changing passwords: a good website security practice

To keep your website or web application safe, it’s good practice to not only keep your site’s software up to date, but also to change your web hosting-related passwords regularly.

For other Internet security recommendations, please see Cruzio’s Security Tips.

Changing your Control Panel password

  1. Log in to your control panel.
  2. Click one of the following icons (different control panels use slightly different wording):
    • Under Tools, click Edit icon. OR
    • Under Account, click the Change Password icon.
  3. Enter your new password in the Password field, then enter it again in the Confirm Password field. Click the OK button.

Changing your FTP passwords

  1. Log in to your control panel. Under Domains, click the name of your domain (you may have to click a Domains icon before you see the name of your domain).
  2. Click one of the following icons (different control panels use slightly different wording):
    • Under Hosting, click the Setup icon. OR
    • Under Web Site, click the Web Hosting Settings icon.
  3. Under Account Preferences, enter the New FTP Password. Enter it again in the Confirm Password field. Click the OK button.
  4. Repeat for each domain in your control panel that has FTP access.

Changing your Web application’s administrative passwords

Here are the official instructions for changing your password in WordPress or Joomla. For other Web applications, please refer to the documentation for your application.

If you’ve lost your administrative password, see our instructions on resetting your Joomla, WordPress, or Drupal password.

Changing your email passwords

  1. Log in to your control panel. Under Domains, click the name of your domain (you may have to click a Domains icon before you see the name of your domain).
  2. Click one of the following icons (different control panels use slightly different wording):
    • Under Services, click the Mail icon. OR
    • Under Mail, click the Mail Accounts icon.
  3. Under Mail Accounts, click your email address.
  4. Under Tools, click Preferences. Under Mail Account Properties, enter your New Password. Enter it again in the Confirm Password field. Click the OK button.
  5. Repeat for each email address on your domain as desired.

Connecting to your Cruzio VPS via SSH

Requirements for accessing your Cruzio VPS via SSH

To access your Cruzio VPS with SSH, you will need SSH client software, such as Mac OS X’s built-in Terminal application, or PuTTY for Windows (click this link to get PuTTY).

Connecting to your Cruzio VPS

Open your SSH client of choice and connect to clientlogin.cruziohost.com (replace “clientlogin” with the login name you selected for your VPS when you signed up).

Using PuTTY on Windows to access your Cruzio VPS

  1. Open PuTTY and enter the following settings:

    Host Name: clientlogin.cruziohost.com (replace “clientlogin” with the login name you selected for your VPS when you signed up)

    Port 22

    Connection Type: SSH

  2. Click Open.

    You may be shown this message:

    The server's host key is not cached in the registry…

    Click Yes to accept the server’s RSA key and store it in your computer’s memory for future sessions.

  3. At the “login as” prompt, enter root as your username and press the Enter key.
  4. You’re now prompted for your password. Enter your password and press the Enter key. You’ll now be logged into your VPS as root.

Using Terminal on Mac OSX to access your Cruzio VPS

  1. Open the Terminal application on your Mac (you can find it in the Applications -> Utilities folder).
  2. Type

    ssh root@clientlogin.cruziohost.com

    (replace “clientlogin” with the login name you selected for your VPS when you signed up).

  3. You may be shown this message:

    The authenticity of host 'clientlogin.cruziohost.com' can't be established. RSA key fingerprint is (…) Are you sure you want to continue connecting (yes/no)?

    Type “yes” and press the Enter key. This permanently adds clientlogin.cruziohost.com to the list of known hosts on your computer.

  4. You’re now prompted for your password. Enter your password and press the Enter key. You’ll now be logged into your VPS as root.

Remember, being logged in as root gives you total control over your VPS, but also the power to make detrimental changes.

Creating a File Download Area on Your Website

This help page explains how to use your domain hosted with Cruzio to transfer files to your friends and colleagues without having to give them login information to access those files. Instead, you create a download area on your website, to which you upload the files you want transferred. Then to transfer the file, you send an email containing a link to the file, which can then be clicked to download it.

Creating a .htaccess file

To set up this type of file transfer, you will need to include a .htaccess file in your domain. This .htaccess makes it so that a link to a file downloads the file, instead of just showing it in the Web browser.

  1. Start a new document in any simple text editor, like Notepad or TextEdit.
  2. Copy and paste the following code into that new file:
    AddType application/octet-stream .extension

    In the code, replace .extension with the extension of the file type that you want to be downloaded. For example, if you wanted to transfer JPG files, it would say:

    AddType application/octet-stream .jpg

    If you wanted to transfer PDF files, it would instead read:

    AddType application/octet-stream .pdf

    If you plan to transfer multiple file types, include one line for each file type.

  3. Now save your new file. For the time being, save it as htaccess – Note that there is no dot in front of the file name. This is because if we included that dot now, it might make the file become hidden from view. If your text editor requires that you add an extension, try to save it as htaccess.txt – we will be renaming this later.

Setting up your download directory

Now that you have your .htaccess file ready, it is time to set up a download folder, or directory. You will put the files that you want to transfer in this directory.

  1. Log in to your Web space, using either an FTP program or your website’s File Manager. (Note: if you have Cruzio Classic hosting, the File Manager is not available, and you must use FTP instead.)If you are using an FTP program, make sure it is set to view hidden files. (Otherwise, any file starting with a dot, such as the .htaccess file, will be hidden from view.)In the File Manager or your FTP program, go to the root directory (the folder containing your website files) of your website. For Classic hosting, this will be the directory pub_html. For other hosting plans, this will be the directory httpdocs.
  2. In the root directory, create a new directory. Name the directory download, transfer, or whatever you prefer. For the remainder of this document, it will simply be referred to as the download directory. Once the new directory is created, go into that directory.
  3. Upload the htaccess.txt file you created earlier into your new directory. Now rename the htaccess.txt file to.htaccess — note that a period has been added to the beginning, and the file extension has been removed from the end.

Using your new download directory to transfer a file

Setup is now complete. You may start transferring files.

  1. Upload a file you want to transfer into the download directory that you just set up.
  2. Test it to confirm it works. Send yourself an email that includes a link to the file you just uploaded. For example, if you uploaded the file picture.jpg to your download directory on your website http://www.yourdomain.com, you would email this link:http://www.yourdomain.com/download/picture.jpgWhen you click that link in the email, it will ask if you want to download the file.
  3. Once you confirm it is working, send the email with the link to whoever you want to transfer it to. When you no longer need the file available for download, delete the file from your download directory to free up space on your website.

Making your download directory public or private

If your domain is with our Classic hosting, your download directory has been public up until now. This means that if you provided a link to the directory itself instead of a file in it, it would display a list of all the files in the download directory. You could then click any of the file names to download that file. This is useful if you want to provide one link for multiple files in your download folder. So for example, if you had your download directory on your website http://www.yourdomain.com, the link would look like this:

http://www.yourdomain.com/download/

Anyone who clicked that link would see the list of files in the download directory.

If your domain is instead with our Website Hosting services, the download directory you created is private. This means that if you tried to provide a link to the directory, it would give an error stating you do not have permission to access that directory. The only way anyone could get to any files in it would be if they had a direct link to a specific file.

It is possible to make the directory public or private depending on your preference.

  • If you want your download directory to be private, include one extra line at the beginning of your .htaccess file that reads:
    Options -Indexes
  • If you want your download directory to be public, include this extra line at the beginning of your .htaccess file:
    Options +Indexes

Cruzio VPS FAQ

What is VPS?

VPS stands for Virtual Private Server. It’s a method of dividing up a server so that each virtual server can run its own full-fledged operating system, and each virtual server can be independently rebooted.

What can VPS be used for?

Just about anything you could do with your own server, you can do with Cruzio VPS, but without the expense and the hassle of maintaining hardware.

Running your own web server, hosting multiple domains, serious web development and testing. And that’s just the tip of the iceberg.

Is VPS for me?

You’ll have a lot more control, but with great power comes great responsibility! With full root access you can definitely mess up your stuff. Then again, you have to start somewhere, and you can always reboot. At $30, our intro-level package is great for anyone wanting to get their geek on.

Where are your servers located?

Our VPS servers reside in our state-of-the-art data center in Santa Cruz, featuring redundant power and Internet connectivity.

If I go over my bandwidth cap, is all traffic blocked?

No, we won’t block any traffic. All our limits are soft. If you go over the cap, we’ll contact you with your options. If you’re expecting a spike in traffic, call us ahead of time and we’ll figure something out. Pricing for additional bandwidth starts at $10.95/month for 500 GB.

What are the hardware specs for the physical server?

Pretty awesome:
Dual Quad-Core 2.5 Ghz CPUs
SAS RAID 10 disk array
24 GB RAM

What distributions do you offer?

Currently we offer the choice of Debian Lenny or CentOS 5.

Can I purchase additional IP addresses?

Yes. $5 per month per IP.

Do you offer backups?

We maintain snapshot backups of all slices taken nightly. These backups are intended to protect customer data against a catastrophic multiple point hardware failure that circumvents the existing redundancy measures in place. These backups may not fully protect certain volatile data groups, notably MySQL or postgreSQL databases. In general, any data that is cached before being written to a file may not be fully protected.

Cruzio strongly recommends that VPS customers take advantage of the backup features in the Virtualmin control panel, which will enable you to create backups on your own schedule and keep them for as long as you wish. See our documentation on backing up your Cruzio VPS.

If you need data restored from Cruzio’s backups, there will be a minimum single charge of $100 for up to 1 hour of our engineer’s time and $49 for each half-hour thereafter.

Do you have redundant Internet connections?

Yes.

Can the VPS be failed over to another physical server or location in case of problems?

This feature will be available soon.

Can I upgrade sometime down the road?

Absolutely. No need to reinstall everything either.

How many domains can I host?

That’s a very “shared hosting” question. No limit. It’s all yours, do whatever you like!

File Permissions for Joomla Users

This help page is for Joomla users who understand what file permissions are and the need to change them. Under no circumstances should you try to change permissions if you are not aware of any reason why they should be changed.

Why you may need to change file permissions when using Joomla

Joomla automatically designates who can access its folders. Usually the designation is correct, but some Joomla modules may not work under the default permissions.

For these modules, their permissions are most likely set to 755, which means that the Apache server can read, write, and execute, but the owner of the domain and others are only able to read and execute.

In order to allow the owner of the domain to edit a folder, change the permissions to 775.

How to change the file permissions

  1. Go to http://login.cruzio.com and enter your domain name, then select “Control Panel” and click “Go”. Then log in with your admin username and password.
  2. Click on the domain whose file permissions you want to change. If you are on host 6 or 7, this can be accessed by first clicking Domains under the Main Menu in the upper left hand corner.

    If you do not know what host number you are on, after you log into your control panel, look at the URL at the top of your browser. You will see it start with https://host followed by a number. That is the host number you are on.

  3. If you are on host 1, 2, 3, 4, or 5, click the File Manager icon in the Hosting section. If you are on host 6 or 7, click the File Manager icon in the Files section.
  4. Next, locate the file or directory you wish to change the permissions for. Please note that the directory httpdocs is the main public directory for your website, so there is a good chance it will be in there.
  5. Once you have located the file or directory, find the Permissions column.

    The permissions are represented as three sets of symbols, for example, rwx r-x r-x. The first set is the Owner set, and this says what the Apache server can do with the file. The second set is the Group set, and dictates what both the Apache server and the owner of the domain name (you) can do with the file. The third set is the Others set, and determines what everyone else (such as users visiting your website) can do with it.

    Click the Permissions link to the right of your file or directory.

  6. Here you can designate who can access the folder and who cannot. To set permissions to 775 as described above, check the following boxes:

    Owner: Read mode, Write mode, Execute/search mode
    Group: Read mode, Write mode, Execute/search mode
    Others: Read mode, Execute/search mode

    Click “OK” to save changes.

How to Access phpMyAdmin

This information applies to Cruzio’s Website Hosting services. If you purchased web and domain hosting with Cruzio after July 2006, you likely have a Website Hosting services. Otherwise, you may have a Classic domain.

» Classic phpMyAdmin Instructions

This help page explains how to access phpMyAdmin through your Website Hosting account. phpMyAdmin allows a user to create and manage databases, tables, fields, indexes, users, permissions, etc. Under no circumstances should you try to change an existing database if you are not aware of why it should be changed.

  1. Go to http://login.cruzio.com and enter your domain name, select “Control Panel” and click “go”. Then log into your control panel with your admin username and password.
  2. Select the domain on which the database you wish to access through phpMyAdmin is located. If you are on host 6 or above, this can be accessed by first clicking “Domains” under the Main Menu in the upper left hand corner.If you do not know what host number you are on, after you log into your control panel, look at the URL at the top of your browser. You will see it start with ‘https://host’ followed by a number. That is the host number you are on.
  3. For host 1, 2, 3, 4, or 5, look under the “Services” header and select “Databases”. For host 6 or later, look under the “Applications & Services” header and then select “Databases”.
  4. If you would like to create a new database, select “Add New Database” which is located below the “Tools” header and follow prompts.
  5. Under the “Databases” header, select which database you would like to manage.
  6. Find the “Tools” header and select “DataBase WebAdmin.” This will generate a pop-up window that will take you to phpMyAdmin. Be sure to disable any pop-up blockers you might have in place.
  7. Once phpMyAdmin is opened, select “Databases” which is a link located in the main window.
  8. Select the database name you would like to manage. You now have access to that database.

How to Add SPF Records for Website Hosting

This information applies to Cruzio’s Website Hosting services. If you purchased web and domain hosting with Cruzio after July 2006, you likely have a Website Hosting services. Otherwise, you may have a Classic domain.  If you have a Classic domain, you will need to contact Cruzio if you want to add SPF records to your domain.

Setting up a SPF Record on your domain will help prevent spammers forging email from your domain. Learn more at openspf.org.

You can use the SPF Record Wizard to create a record to put on your domain.

Adding an SPF record in your control panel

  1. Log in to your domain control panel with the Cruzio Domain Tools.
  2. Select the domain name you want to create the SPF record for. If you are on host 6 or 7, this can be accessed by first clicking Domains under the Main Menu in the upper left hand corner.If you do not know what host number you are on, after you log into your control panel, look at the URL at the top of your browser. You will see it start with https://host followed by a number. That is the host number you are on.
  3. If you are on host 1, 2, 3, 4, or 5, click DNS Settings under the Services section. If you are on host 6 or 7, click DNS Settings under the Web Site section.
  4. Under the Tools section, Click “Add record.”
  5. Under “Record type,” open the dropdown menu and choose TXT.
  6. In the field next to “Enter TXT record,” paste your SPF record. Click OK.

How to Modify the Hostname and Reverse Record for Your Cruzio VPS

Cruzio, by default, sets up your VPS under our domain, in the form yourusername.cruziohost.com, where yourusername is your actual user name.

If you’re using Virtualmin, there is no real reason to change this, but if you’re planning to use your Cruzio VPS for Zimbra hosting, or some other reason where you’d rather have the name of the VPS be yourhostname.yourdomain.com, or even yourdomain.com, here are the steps to take to make it so.

To change the hostname

On Debian:

  1. Edit /etc/hostname
  2. Edit /etc/hosts
  3. Reboot.

On Centos:

  1. Edit /etc/sysconfig/network
  2. Edit /etc/hosts
  3. Reboot.

To change the reverse record

  1. Log into the Xen shell.
  2. Issue the command

    rdns
    

    to view your current entry and find your IP address.

  3. Issue the command

    rdns IP_address yourhostname.yourdomain.com
    
  4. Reverse DNS entries can take a couple of hours to propagate.

Joomla Administrator Login Page is Blank

This document is for users with a Cruzio domain who are unable to log into their Joomla admin control panel. The Joomla login page is completely blank instead of asking for the Joomla username and password.

To fix your Joomla login page:

  1. Go to login.cruzio.com and enter your domain name, select “Control Panel” and click “go”.  Log into your control panel with your admin username and password. This username and password can be found in the information provided when you first set up your domain. If you do not have this information, please call Cruzio Technical Support at 831-459-6301 option 2 and ask for your domain login information.
  2. In the “Custom buttons” section, click the Installatron Applications Installer button.
  3. Find Joomla in the list. To the right of it, select “View/edit details.”
  4. Go to the second box provided on this page. The title of this box may vary depending on what title was given to Joomla when first installing it. If no custom title was created, it will default to “My Joomla Information”. In this box, click “Edit these values and files”.
  5. Go down to Configuration File 1. Use the Web browser’s “find” feature to locate the following line:var = 0;
  6. Delete that line and replace it with:var $force_ssl = 0;
  7. Click the “Save all” button.

The Joomla admin login page should now display correctly.

Keeping your website secure

Malware can infect our websites, not just our personal computers. The basics of protecting your website include:

  • Keeping your computer secure
  • Using strong passwords
  • Keeping your website’s software updated
  • Making regular backups in case of disaster

Read on for details, and for more suggestions.

Basic Security Measures for your Website

Keep your computer secure

Start by keeping your computer secure, so your website passwords don’t get stolen by malware. Follow Cruzio’s Security Tips.

Take extra care on public Internet connections

Generally, do not manage your website from a public wifi connection. Others using the same connection could learn your passwords while you’re logging in to your website, or using FTP.

The exception: it’s fine to log into and use your domain’s control panel, since it uses encryption (notice the https in the browser address of your control panel—s stands for secure).

Set strong passwords

Set strong passwords for your website’s control panel, administrative user account, and FTP access. And if your website is compromised, change them. Follow these instructions for changing your hosting passwords.

Keep your website software up to date

Old web software often has security vulnerabilities that make your website an easy target. Web applications like WordPress, Joomla, and Drupal are miraculous software that make building and maintaining a website so much simpler—but you must keep your copy of that software up to date.

Installatron does upgrades, not just installs

If you installed your site software using Installatron, then use Installatron to apply upgrades. It’s fast and easy. Installatron makes a backup of your site right before upgrading, too, so in case something were to go wrong, you could quickly and easily restore the previous version.

Plugins count too

If you’ve installed any plugins or extensions to your web application, make sure you keep those items up to date as well. Plugins are like mini-applications, and they need the same care as your main web software.

Back up your website

No matter how many precautions you take, there’s always the possibility that your website may become compromised. If or when that happens, you’ll want to have a recent site backup in good shape.

Back up your website on a regular basis, but only when you’re reasonably sure that the site is in a healthy state. If your only backup is infected with malware, you’re not going to want to use it to restore a damaged website. You can use a free scanner to check your site’s health, though a good result is not a guarantee.

Installatron backups

If you installed a web application with Installatron, then use Installatron to create backups. It’s very easy, and you can keep multiple backups if you wish. Installatron backups also have the advantage of being very easy to restore.

The other control panel backup tool

If you installed or built your website manually, use the “Backup Your Account” link in your control panel’s sidebar. Click the icon under the B column to create a backup. Check the boxes of all the items you want backed up. Note that you can only keep a single backup on the server at a time, and that there is no restore tool. Just like you built your site manually, you’ll have to restore it manually as well.

Additional Security Measures for your Website

Website Security Consultants

Maybe you have limited time for reading, researching, and implementing security measures for your website. If you want to enlist someone to handle it for you, hire a consultant with experience in website security. You can check the Computer and Internet Services section of Cruzio’s Guide for local professionals.

Plesk Error When Logging into Domain Admin Control Panel

This help is for users trying to log into their domain at cruzio.com and are unable to do so, instead getting an error that begins with the following:

ERROR: PleskMainDBException
MySQL query failed: Unknown table 'sd' in where clause.

In order to fix this, after attempting to log in, take a look at the address of the error page. You will see something similar to the following:

https://host2.cruzio.com:8443/?previous_page=login_up

Leave the first half of the link in there, even if it varies slightly from the above, and delete everything after the :8443/. So, in this example, you would be left with:

https://host2.cruzio.com:8443/

Then, after the :8443/, add:

domains/domains.php3?cmd=clearFilter

So, in this example, you would now have:

https://host2.cruzio.com:8443/domains/domains.php3?cmd=clearFilter

Hit Enter or Return to load this page. It may load without frames. To fix this, hit the “Back” button on your Web browser to load the previous page. The issue will be resolved.

Redirecting a Web page or site with .htaccess

This help page explains how to redirect a single web page, a directory of web pages, or an entire website to a new web address, using the .htaccess method.

See Cruzio’s redirect overview to decide which redirect method you should use.

Please proceed with caution. If you make mistakes, your website may become unreachable.

What is a .htaccess redirect, and why should I use it?

With the .htaccess (pronounced “dot-aitch-tee-access”) redirect method, also known as a “301 redirect,” you create a special configuration file on your site containing a redirect “directive” (instruction to the web server).

When someone visits the redirected web address, the web server will obey your directive and automatically redirect them to the new address.

Benefits of a .htaccess redirect:

  • Automatically redirects links and bookmarks to a web page at its old address to the new address
  • Preserves search engine rankings (such as Google PageRank) for the redirected web page
  • Lets you create multiple redirects in the same place

» back to top

Redirecting a single web page

  1. Log in to your web space, using either an FTP program (such as Filezilla or CyberDuck) or your website’s File Manager.  (Note: if you have Cruzio Classic hosting, the File Manager is not available, and you must use FTP instead.)  If you are using an FTP program, make sure it is set to view hidden files. (Otherwise, any file starting with a dot, such as the file we are about to create, will be hidden from view.)In the File Manager or your FTP program, go to the root directory (the folder containing your website files) of your website.
    Type of web hosting Name of root directory
    Website Hosting httpdocs
    Classic pub_html

     

  2. In the root directory, look for a file named .htaccess (including the dot at the beginning).If you do not already have a .htaccess file in the root directory, create a file there named .htaccess including the dot at the beginning, and with no file extension at the end.Note: if you create or copy a file named .htaccess on your computer’s hard drive, you may not be able to see the file. Files beginning with a dot are typically hidden from view. Instead, if you need to work with a file on your hard drive, name it htaccess (without the dot, and without any extension). You can rename it to .htaccess after you upload it to your web space.
  3. Open the .htaccess file for editing.To create a redirect, add the following code anywhere in the file:
    RewriteEngine On
    Redirect 301 /pathto/oldpage.extension http://yourdomain/pathto/newpage.extension
    

     

    In the code, make these changes:

    For this: Substitute this:
    pathto the path to the directory containing the page
    (for example, “produce/fruit/apples”)
    oldpage the filename of the page you are redirecting
    extension the page’s extension, if it has one
    (for example, “html” or “php”)
    yourdomain the page’s domain at the new address, even if you’re not changing the domain
    (for example, “joesfreshproduce.com”)
    newpage the filename of the new page

     

    Notice that you start the old address with only a slash “/”, with no domain. Start the new address with “http://”.

    Save the changes to your .htaccess file.

    If the file is not already in the root directory of your website, upload it there. Then, if the filename is not .htaccess, including the dot, change the filename. If there is an extension (like .txt) at the end, remove it.

  4. To view the redirect, enter the old address into the address bar of your web browser. If it does not forward right away, click the refresh button of your web browser and it should update.

Your permanent web page redirect is active!

The next time a search engine visits your site, it will update its records with the page’s new address, while preserving the page’s search rankings.

What if I only need a temporary redirect?

To create only a temporary redirect, use “Redirect 302” instead of “Redirect 301” in your .htaccess code.

» back to top

Redirecting a section of your website

We will use the .htaccess method to redirect a section (usually called a directory) of your site.

Follow the instructions for redirecting a single page, but use code like this in your .htaccess file:

RewriteEngine On
Redirect 301 /pathto/olddirectory/ http://yourdomain/pathto/newdirectory/

Note: if you redirect to a directory that does not contain an index file, you may get a 403 Forbidden error. In this case, either create an index file in the destination directory, or add this line to your .htaccess file to turn on auto-indexing:

Options +Indexes

» back to top

Redirecting your entire website to another website

We will use the .htaccess method to redirect your entire website to another site.

Follow the instructions for redirecting a single page, but use code like this in your .htaccess file:

RewriteEngine On
Redirect 301 / http://newdomain/

Make sure you include a space before and after that first lone slash.

» back to top

Redirect example: Joe’s Fresh Produce

Joe sells produce on his site, joesfreshproduce.com. He has a web page he uses to sell his tomatoes. He used to have the page in the fruit area of his site, but his site visitors missed it, because they were looking for tomatoes in the vegetables instead.

Joe decided to move the tomato page. He moved the file tomatoes.html from the fruit directory to the vegetables directory.

Joe wanted people looking for the page at its old address to find it at the new one, so he decided to create a redirect. He added this redirect code to the .htaccess file on his site, joesfreshproduce.com:

RewriteEngine On
Redirect 301 /fruit/tomatoes.html http://joesfreshproduce.com/vegetables/tomatoes.html

 

More shoppers are finding Joe’s tomatoes now. The long-time customers who had bookmarked the old tomato page are automatically redirected to the new page. Links from other sites to the old tomato page automatically go to the new page. Joe’s tomato sales are up!

» back to top

Redirecting a web page with meta refresh

This help page explains how to redirect a single web page to a new web address, using the meta refresh method.

See Cruzio’s redirect overview to decide which redirect method you should use.

Please proceed with caution. If you make mistakes, your website may become unreachable.

What is a meta refresh redirect, and why should I use it?

With the meta refresh redirect method, you put some specific HTML code in your old web page.

When someone visits the old page, the redirect will automatically take them to the new address.

Benefits and drawbacks of a meta refresh redirect:

  • Does not require access to your website’s root directory
  • Requires that you access and edit each page that you want to redirect
  • Does not preserve search engine rankings or inbound links for the redirected page
  • Because spammers use this technique, search engines may penalize the page’s rank

A meta refresh redirect is not as good as a .htaccess redirect, which is more powerful and preserves search engine page rankings. However, sometimes only a meta refresh redirect is possible. For example, if you are moving from a free GeoCities site to Cruzio hosting, Yahoo! does not allow you to use a .htaccess redirect. A meta refresh redirect, done properly, is the right method in this case.

» back to top

Redirecting a page with meta refresh

  1. Log in to your Web space, using either an FTP Program (such as Filezilla or CyberDuck) or your website’s File Manager. (Note: if you have Cruzio Classic hosting, the File Manager is not available, and you must use FTP instead.)

    In your Web space, find the page you want to redirect.

  2. Open the page’s file for editing.

    Remove all existing code from the page. To replace it, paste in the following code:

    <html>
    <head>
    <title>Moved to new address: http://yourdomain/pathto/newpage.extension</title>
    <meta http-equiv=refresh content="0; url=http://yourdomain/pathto/newpage.extension" />
    <meta name="robots" content="noindex,follow" />
    </head>
    <body>
    <h1>This page has been moved to http://yourdomain/pathto/newpage.extension</h1>
    <p>If your browser doesn't redirect you to the new location, please <a href="http://yourdomain/pathto/newpage.extension"><b>click here</b></a>. Sorry for the inconvenience!</p>
    </body>
    </html>
    

     

    Note: it’s important that you do not add any keywords or advertising to this page, and that you do not delay the refresh by changing the number 0. If you do these things, you risk having your page be regarded as Web spam, and being penalized by search engines.

  3. In the new code, make these changes:
    For this: Substitute this:
    yourdomain the page’s domain at the new address
    (for example, “joeswebsite.com”)
    pathto the path to the directory containing the page
    (for example, “topics/news”)
    oldpage the filename of the page you are redirecting
    (include only a slash “/” in front of oldpage, creating a “relative address”)
    extension the page’s extension, if it has one
    (for example, “html” or “php”)
    newpage the filename of the new page
    (include the initial “http://” in front of newpage, creating an “absolute address”)

     

    Save the changes to your page.

    Your redirect is active! Test it by opening the old page in your browser, and making sure the browser takes you to the new location.

» back to top

Redirecting a website or web page: Overview

This help page is an overview of different methods for redirecting a website or web page, and the situations where each method is preferred.

Please proceed with caution. If you make mistakes, your website may become unreachable.

Redirect Methods

  • .htaccess

    A .htaccess (pronounced dot-aitch-tee-access) redirect is powerful, flexible, and preserves your search engine page ranking. In most cases, you should use this method.

  • Forwarding or an A Record

    Forwarding is a very good and easy redirect method if you just bought an extra domain name, and want to point it to an existing website.

    Redirecting with an A record has limitations, but can be used in some cases. In cases where an A record will not work, you can use the .htaccess method instead.

    Both of these methods can redirect entire websites, but not individual pages.

  • Meta Refresh

    A meta refresh redirect is not as good as a .htaccess redirect. However, some web hosts may not allow you to use a .htaccess file. In that case, use a meta refresh.

    A meta refresh can only redirect a single web page at a time.

Redirecting a website using Forwarding or an A Record

This article explains how to redirect an entire website to another website.

These instructions apply only to Cruzio Website Hosting services. If you have Cruzio’s Classic hosting, contact Cruzio to request a change to your A Record, or use a .htaccess redirect instead.

See Cruzio’s redirect overview to decide which redirect method you should use.

Please proceed with caution. If you make mistakes, your website may become unreachable.

Two methods; which should you choose?

If you have an extra domain and you simply want to point it to an existing website, then Standard or Frame Forwarding is the easiest way to do that.

Maybe you need to temporarily redirect a domain that already has a website on it, without destroying those website files. In this case, you may modify your A Record if you can. However, please note the limitations of this method in the A Record section below. You may want to use the .htaccess method instead, as it works in cases where an A Record will not.

» back to top

Redirecting with Standard or Frame Forwarding

To redirect a domain name to a website hosted on another domain:

  1. Login to your domain control panel at http://login.cruzio.com.
  2. In your Control Panel, look under Main Menu for the Domains section of your Home page. If you are on Host 6 or above, you will need to first click “Domains” under the Main Menu in the upper left hand corner. If the domain you want to redirect was previously set up for hosting, you will need to remove it. Back up any site files you want to keep, then remove that domain.

    If you do not know what Host number you are on, after you log into your control panel, look at the URL at the top of your browser. You will see it start with ‘https://host’ followed by a number. That is the Host number you are on.

  3. If you are on Host 1, 2, 3, 4, or 5, click the “Add New Domain” icon in the Tools section. Type in the domain name that you want to redirect. Leave the “www” check box selected. Leave the “Create domain without template” option selected. Make sure “Proceed to hosting setup” is checked. Click “OK”.

    If you are on Host 6 or above, click the “Create Domain icon” in the Tools section. Type in the domain name that you want to redirect. Leave the “www” check box selected. Change “Use domain template settings” to “Default Domain”.

  4. For Host 1, 2, 3, 4, or 5, choose either “Standard forwarding” or “Frame forwarding”, then click “OK”.

    For Host 6 or above, select “Forwarding” under Hosting Type. Then under “Forwarding Settings”, choose either “Standard forwarding” or “Frame forwarding”.

    With standard forwarding, a visitor is redirected to the site and the actual site’s URL is shown in the visitor’s browser, so the visitor always knows they were redirected to another URL.

    With frame forwarding, a visitor is redirected to the site without knowing that the site actually resides at another location.

  5. Specify the Destination URL: the website address that you would like this domain to point to. Click “OK” or “Finish”.
  6. To test the forwarding, enter the address of the forwarded domain into the address bar of your web browser. Your browser should take you to the destination URL.

» back to top

Redirecting with an A Record

Using an A Record as a method to redirect a website has serious limitations. Rather than redirecting to a different website, per se, you are redirecting to an IP address. If more than one website is at that IP address, you cannot control which website the redirect will go to.

To see which website a particular IP address will go to, simply enter that IP address in your browser’s address bar.

To redirect a website to another IP address:

  1. Login to your domain control panel at http://login.cruzio.com.
  2. On your Home page, click on the domain name of the website you would like to redirect. If you are on Host 6 or above, this can be accessed by first clicking “Domains” under the Main Menu in the upper left hand corner.
  3. For Host 1, 2, 3, 4, or 5, click “DNS Settings” under the Services section.

    For Host 6 or above, click “DNS Settings” under the Web Site section.

  4. There should be, among the other A records, an A record of the form:
    Host		Record Type	Value
    yourdomain.com	A		IP.address
    

    Where:

    • yourdomain.com is the name of your domain; and
    • IP.address is the IP address of the domain.
  5. Click the host name in this record.

    Leave the “Record type” menu set to “A”.

    Leave the box labeled “Enter domain name” blank.

    In the box labeled “Enter IP address *”, enter the IP address you are redirecting to.

    Click “OK”.

Note: Your new A record will take up to 24–48 hours to take effect. This is because a new A record is a DNS change, and all DNS servers worldwide need to be updated to reflect the change. To test whether the A Record has taken effect, enter the address of the redirected domain into the address bar of your web browser. If the record has taken effect, your browser will take you to the website at the destination IP address.

» back to top

Repair a MySQL Table from phpMyAdmin

To fix a corrupted MySQL database:

  1. Through the domain Control panel, log into phpMyAdmin.
  2. Click Databases.
  3. Click the database name.
  4. At the bottom of the table list, select “Check All”, so you can operate on all the tables at once.
  5. In the “With selected” drop down, click “Check table”. This will report any issues your tables are having.
  6. Now go back one screen. Select the tables that are corrupt.
  7. From the “with selected” dropdown, click “repair table”.
  8. Use “check table” again to see if the database is repaired.