Tableau Installation (Shared cPanel Servers)

Posted by Miraenda Sun, 18 Jun 2006 02:56:00 GMT

This version of Tableau requires FastCGI and Rails version 1.0 or greater as well as RMagick gem. The current servers that this will work on are Alcor, Gallifrey and Telos.

A. Creating your database for Tableau:

  1. Log into cPanel and click on MySQL Databases icon:
  2. MySQL Databases
  3. As per the example below, enter tab in the "New Database" field under Current Databases area, then click "Create Database" button. Your full database name will then show as cPaneluser_tab.
  4. Curent Databases
  5. Under Current Users area as seen in the example below, enter tab for the "Username" field and enter a password that you write in your notes for the "Password" field, then click "Create User" button. Your full database user's name will then show as cPaneluser_tab.
  6. Curent Users
  7. Under Add Users to Your Database area as shown below, select in the "User" dropdown cPaneluser_tab and select in the "Database" dropdown cPaneluser_tab, then click "Add User to Database" button.
  8. Add Users to Your Databases

B. Get a Copy of tableau.tar.gz

Download a copy of the current release (svn copy) from here. After obtaining a copy that you have saved to your system, you can then proceed with the next steps.

C. Upload Tableau Using cPanel:

  1. Log into cPanel.
  2. Click on "File Manager" icon:
  3. File Manager
  4. A new window will open. In that new window, click on "Upload File(s)" link toward the top:
  5. Upload File(s)

  6. The page will load new content. Click one of the "Browse..." buttons:
  7. Browse

  8. The Windows "File Upload" dialog prompt will open. Navigate to where you saved tableau.tar.gz on your system, highlight tableau.tar.gz, then click the "Open" button.
  9. File Upload

  10. Back at the File Manager screen where you have the "Browse..." button, click the "Upload" button:
  11. Upload button

  12. Tableau will begin uploading. Please note that it might take awhile for it to upload due to the size, usually around 3-15 minutes depending on your connection speed.

D. Upload Tableau via FTP:

If you prefer to use FTP to upload so you see the progress of the file upload, try the following instead

  1. Open your FTP client and access your account via FTP with most clients using the following to connect:
    Host/Address: domain.com
    Username: cPanelusername
    Password: cPanelpassword
  2. Highlight the file tableau.tar.gz on your system where you saved it and right click.
  3. Select upload (it needs to be uploaded to your main directory not inside public_html folder, so you should be at the level where you see public_html listed as a folder)
  4. Wait for the file to complete uploading.
  5. You can view an image of what Filezilla FTP client would look like for this process at this location.

E. Extracting Tableau:

  1. Log into cPanel if you aren't already logged into it.
  2. Click on "File Manager" icon if you aren't already in there:
  3. File Manager
  4. A new window will open for File Manager, then click on the tableau.tar.gz file name (not the icon):
  5. Tableau File

  6. In the upper right hand corner, there are a list of links. Select "Extract File Contents" link in that list:
  7. Extract File Contents

  8. A new window will open with the extracted files and folders listed as the extraction processes. Wait until this finishes (will say Done at the bottom left of most browsers once completed), then close the new window.
  9. In the File Manager window, refresh your browser. You should now see a folder called tableau there:
  10. Tableau Folder

F. Changing the database.yml file for your database details:

  1. In File Manager, click on the folder icon to the left of the tableau folder:
  2. Tableau Folder Icon

  3. Click on the folder icon to the left of the config folder:
  4. Config Folder Icon

  5. Click on the database.yml file name (not the icon):
  6. database.yml File

  7. In the upper right hand corner, click on "Edit File" link as shown below.
  8. Edit File

  9. A new window will open with the following in it:
    # MySQL (default setup). Versions 4.1 and 5.0 are recommended.
    development:
    adapter: mysql
    database: cPaneluser_tab
    username: cPaneluser_tab
    password: somepass
    # socket: /tmp/mysql.sock

    production:
    adapter: mysql
    database: cPaneluser_tab
    username: cPaneluser_tab
    password: somepass
    # socket: /tmp/mysql.sock

  10. Replace cPaneluser with your cpanel username (there are 4 instances of this on lines 4, 5, 11 and 12). Do not remove the _tab part. For example, I would replace cPaneluser_tab with rubyasyl_tab for my rubyasylum.com account.
  11. In the password: line (lines 6 and 13), input the password you used when creating your database user earlier.
  12. Click the "Save" button, then close that window (keep the File Manager Window open though).

G. Symlinking your folder to tableau:

  1. In cPanel main area, click on "Cron Jobs" icon:
  2. Cron Jobs
  3. Click "Advanced (Unix Style)" button:
  4. Advanced (Unix Style) Button
  5. Enter the following as an example in the Advanced area:
    Minute Hour Day Month Weekday
    10     7    *   *     * 
  6. This would run the cron at 7:10am Pacific time each day of the week. Change the 10 to a time 5 minutes from the current hour (so if it is currently 11:27am, change to 32 for the Minute). Change the hour to the current hour (so if it is currently 11:27am, change to 11).
  7. Enter the following for the Command field:
    cd /home/username/public_html && ln -s ../tableau/public gallery
  8. Replace username in the command path with your cPanel username, then click "Commit changes" button. See the image below for an example of what the area might look like before you click that button:
  9. Cron Jobs Advanced Screen

  10. After you click "Commit changes" button, then click the Go Back link on the new screen:
  11. Go Back link

  12. Wait for the cron job to process (around 10 minutes after you created it), then delete the cron using the "Delete" link to the far right of it in the "Advanced (Unix Style)" area:
    Delete

    Please note that it is very important that you perform this delete step so this cron does not keep running daily as you only want it to run this one time for the symlink creation.
  13. You can check if the symlink actually worked by going into "File Manager" area, clicking on the folder icon next to public_html, then on the folder icon next to the new gallery folder that should now be in public_html folder. It should have the same contents that /home/username/tableau/public does.

H. Running rake migrate in cron:

  1. In cPanel main area, click on "Cron Jobs" icon again:
  2. Cron Jobs
  3. Click "Advanced (Unix Style)" button:
  4. Advanced (Unix Style) Button
  5. Enter the following as an example in the Advanced area:
    Minute Hour Day Month Weekday
    10     7    *   *     * 
  6. As before, this would run the cron at 7:10am Pacific time each day of the week. Change the 10 to a time 5 minutes from the current hour (so if it is currently 11:27am, change to 32 for the Minute). Change the hour to the current hour (so if it is currently 11:27am, change to 11).
  7. Enter the following for the Command field:
    cd /home/username/tableau && /usr/local/bin/rake migrate
  8. Replace username in the command path with your cPanel username, then click "Commit changes" button.
  9. After you click "Commit changes" button, then click the Go Back link on the new screen:
  10. Go Back link

  11. Wait for the cron job to process (around 10 minutes after you created it), then delete the cron using the "Delete" link to the far right of it in the "Advanced (Unix Style)" area:
    Delete

    Please note that it is very important that you perform this delete step so this cron does not keep running daily as you only want it to run this one time for the database migration.

I. Loading up Tableau in a browser:

  1. Now you can load up your Tableau script in a browser using http://yourdomain.com/gallery/ (replace yourdomain.com with your actual domain name).
  2. You should a login link on the left hand side. Click this to sign up to the new gallery. For examples on administering your gallery, please see the tableau site. For a demo of Tableau, please see gallery.rubyasylum.com.

Have fun with your new gallery!

Posted in  | 3 comments | 90 trackbacks

Comments

  1. online casino said 527 days later:
    Lesen Sie alles über Internet Casino spielen und die Tücken des Spielens im Internet mit oder ohne Kreditkarte.
  2. dasong@gmail.com said 573 days later:
    hi Danielle, i followed this tutorial to the T and i am getting 404 errors. my account is on the LP lasair server. Could it be that there's something wrong with rails on that server? None of my rails apps are working on this server. thanks, David
  3. dasong@gmail.com said 573 days later:
    it's actually now a "Rails application failed to start properly" error.

Trackbacks

Use the following link to trackback from your own site:
http://rubyasylum.com/articles/trackback/14

(leave url/email »)

   Preview comment